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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jessetaylor89
Frequent Visitor

Cost associated with DAX Measure

I created a measure to calculate how many events took longer than 90 minutes. Now I want to see what is the total cost of those events. When I add cost its showing me the total cost for all events. 

 

jessetaylor89_0-1686497487854.png

 

jessetaylor89_1-1686497515777.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @jessetaylor89 

please try

Cost > 90 =
SUMX (
FILTER ( RoadsideInfo, RoadsideInfo[EventDuration] > 90 ),
RoadsideInfo[InvoiceCharges]
)

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @jessetaylor89 

please try

Cost > 90 =
SUMX (
FILTER ( RoadsideInfo, RoadsideInfo[EventDuration] > 90 ),
RoadsideInfo[InvoiceCharges]
)

If I want to look at charges from April - current date. how do I add that to the dax measure

 

Thank you 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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