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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors