Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Weatherreport
Frequent Visitor

DAX expression with 2 filters returning value

Hi All,

 

I would need a DAX expression that would return "Avg Time" based on 2 filters "KDS Date=yesterday" and "Queue=K1":

 

Weatherreport_0-1622689144996.png

In the sample above, the value to be returned should be "09:50".

 

Please note that "Avg Time" is a custom column and has been calculated as per below:

 

Weatherreport_1-1622689282408.png

 

Thanks you so much

2 REPLIES 2
amitchandak
Super User
Super User

@Weatherreport , Create a measure like

calculate(sum(Table[Avergae Time]), filter(Table, [KDS Date]= today()-1 && [Queue]="K1"))

 

and convert to Min and second

@amitchandak 

Thanks for your answer.

Yes that definitely solves half of my issues. But how can I convert that measure into Min and Second?

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors