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
Fidzi8
Helper IV
Helper IV

Wrong SUM

Hi,

please. I don´t know how I edit formula. Total sum is wrong. 
2020-09-07_13h26_00.png

Thank you,
Ondřej

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

HI @Fidzi8 ,

 

Try using SUMX

 

Measure = SUMX(Table, Other MEasure Created)

 

or 

 

Measure = SUMX ( SUMMARIZE(Table, Table[Plant],Table[Customer]) ,"Calc lost" ,  Other Measure Created)), Calc lost)

 

 

or

 

Measure  = SUMX(VALUES(Table[Plant]) , Other Measures)

 

https://community.powerbi.com/t5/Desktop/Total-Measure-Wrong/m-p/1200928

 

 

Regards,

Harsh Nathani

 

 

 

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@Fidzi8 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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
harshnathani
Community Champion
Community Champion

HI @Fidzi8 ,

 

Try using SUMX

 

Measure = SUMX(Table, Other MEasure Created)

 

or 

 

Measure = SUMX ( SUMMARIZE(Table, Table[Plant],Table[Customer]) ,"Calc lost" ,  Other Measure Created)), Calc lost)

 

 

or

 

Measure  = SUMX(VALUES(Table[Plant]) , Other Measures)

 

https://community.powerbi.com/t5/Desktop/Total-Measure-Wrong/m-p/1200928

 

 

Regards,

Harsh Nathani

 

 

 

amitchandak
Super User
Super User

@Fidzi8 , Try like

sumx(Summarize(table, Table[plant], table[customer], "_1",([Cost/tn]-[CostP])*[Qty]),"_1")

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.