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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
whodis118
Frequent Visitor

Simple sum calculation for each equipment item

I need the sum of all "utilization" values, and if the sum is positive, I need this measure to evaluate to "Over", if negative, it should evaluate to "Under"

 

So lets say for 'Utilization'[Equipment], there are years worth of daily [Utilization] entries, both positive and negative. If the date slicer on my report is filtered to "Last 1 Week", I want this measure to sum up the utilization for each piece of equipment in time frame, and evaluate to either "Over" or "Under" based on whether or not the calculated sum is > 0.

 

For this to work, the only columns I would need to work with are 'Utilization'[Equipment] and 'Utilization'[Utilization], right? Or do I need to include the date filter somewhere in the calculation? Could someone walk me through the logic behind this?

 

I am new to Power BI and DAX, so I am not totally sure how to accomplish this.

 

 

 

EDIT:

 

Ok I not thinking about this exactly right.

 

Here is the code that created an acurate measure:

 

UtilStatus = IF(SUM(Utilization[Utilization]) = 0, "", IF(SUM(Utilization[Utilization]) > 0, "Over", "Under"))

 

So if the row evaluates to Zero, it does nothing, If it is greater than Zero, it is over, and it is under if negative.

 

 

How can I use this in a slicer? I want to filter on rows that evaluate to Over or Under with a two button slicer. Is this doable?

1 REPLY 1
amitchandak
Super User
Super User

@whodis118 , For slicer, you need dynamic Segmentation like

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://www.youtube.com/watch?v=W4EF1f_k6iY

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.