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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Dunner2020
Post Prodigy
Post Prodigy

sum of measure

Hi there,

 

I have a measure which looks like below:

 

Normalised 30 Mins Values = IF([Raw value 24 hrs ] > 5.69 && [Raw value 30 Mins ] > 5.69/48,5.69/48,[Raw value 30 Mins])
 
Now I want to create another measure that sums up the values created by the above-mentioned measure. I tired sum function but it did not work. Could anyone help me please?
 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Dunner2020 

try 

SUMX(table,[Normalised 30 Mins Values])

OR

SUMX('Table',IF([Raw value 24 hrs ] > 5.69 && [Raw value 30 Mins ] > 5.69/48,5.69/48,[Raw value 30 Mins]))

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@Dunner2020 - This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.



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...
amitchandak
Super User
Super User

@Dunner2020 , Try a measure like

sumx(Table ,IF([Raw value 24 hrs ] > 5.69 && [Raw value 30 Mins ] > 5.69/48,5.69/48,[Raw value 30 Mins]))

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
Anonymous
Not applicable

HI @Dunner2020 

try 

SUMX(table,[Normalised 30 Mins Values])

OR

SUMX('Table',IF([Raw value 24 hrs ] > 5.69 && [Raw value 30 Mins ] > 5.69/48,5.69/48,[Raw value 30 Mins]))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.