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
PaulHallam
Helper III
Helper III

Help with SUMMARISE measure

Hi,

I have the following table 'DATA'

CATEGORYITEMDATETIMEVALUES
1A01/01/2020 09:00:001
1A01/01/2020 09:00:000
1A01/01/2020 09:00:001
1A01/01/2020 09:00:000
1B01/01/2020 09:00:000
1B01/01/2020 09:00:000
1B01/01/2020 09:00:000
1B01/01/2020 09:00:000
1A01/01/2020 09:05:001
1A01/01/2020 09:05:001
1A01/01/2020 09:05:001
1A01/01/2020 09:05:000
1B01/01/2020 09:05:000
1B01/01/2020 09:05:000
1B01/01/2020 09:05:000
1B01/01/2020 09:05:001
1A01/01/2020 09:10:000
1A01/01/2020 09:10:000
1A01/01/2020 09:10:000
1A01/01/2020 09:10:000
1B01/01/2020 09:10:000
1B01/01/2020 09:10:000
1B01/01/2020 09:10:000
1B01/01/2020 09:10:000

 

If the sum of the [VALUES] for an [ITEM] in any given 5 minute period >0 then the [ITEM] is deemed to have been used, so effectively creating this table below;

CATEGORYITEMDATETIMEVALUE
1A01/01/2020 09:00:001
1B01/01/2020 09:00:000
1A01/01/2020 09:05:001
1B01/01/2020 09:05:001
1A01/01/2020 09:10:000
1B01/01/2020 09:10:000


I want to know the utilisation of each item over the periods so;

ITEM A has been used on two of its three periods giving utilisation of 66.6%

ITEM B has been used on one of its three periods giving utilisation of 33.3%


Using this Measure in a matrix;

Utilisation% =
     (SUMX(
         SUMMARIZE(
            DATA,
            DATA[DATETIME],
                 "Count", if (SUM(DATA[VALUES])>0,1,if (SUM(DATA[VALUES])=0,0,0))),[Count]))/(DISTINCTCOUNT(DATA[DATETIME])*DISTINCTCOUNT(DATA[ITEM])

gives the correct utilisations at the individual [ITEM] level

BUT

at the [CATEGORY] level the measure is wrong showing 33.3% (2 uses out of 6) instead of (3 uses out of 6) 50.0%. This is because it is applying the measure at the [CATEGORY LEVEL] and when A & B are used together giving 2 uses at 09:005:00 it is converting this total to a 1.

Can anyone help to make the totals correct.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

All sorted, thanks Greg

Thansk Greg,

All makes sense, but im having trouble with the measure to achieve the desired results. Fancy having a look and see if you can solve?

Appreciate any help at all

Paul

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors