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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors