Dax filter on time

sanket_sk

Board Regular
Joined
Dec 27, 2016
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

Hope all are doing fine!!!

I'm working on a Power BI desktop, where I want to filter closed cases within 5 minutes, so I want to apply the filter to the column "Time Duration", but it looks like I'm missing something, this query doesn't give the expected result, can you please help me complete this query.

Filtering Column = Time Duration
Column Data Type = Duration

5 Mins Cases = CALCULATE(COUNTROWS(Closed_Calls),FILTER(Closed_Calls,Closed_Calls[Time Duration]<=0.05))

Thanks in Advance.

Sanket
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi Everyone,

Hope all are doing fine!!!

I'm working on a Power BI desktop, where I want to filter closed cases within 5 minutes, so I want to apply the filter to the column "Time Duration", but it looks like I'm missing something, this query doesn't give the expected result, can you please help me complete this query.

Filtering Column = Time Duration
Column Data Type = Duration

5 Mins Cases = CALCULATE(COUNTROWS(Closed_Calls),FILTER(Closed_Calls,Closed_Calls[Time Duration]<=0.05))

Thanks in Advance.

Sanket
You need to use the time() function, not a decimal number
 
Upvote 0

Forum statistics

Threads
1,223,700
Messages
6,173,909
Members
452,536
Latest member
Chiz511

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top