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

Strange problems in calculating totals

Hello,

I'm facing strange problems when calculating total values.

 

I have a measure which calculate the row values right, but the total is null.

When i add a new measure, the total value is right, but the row values are null.

Another measure, right row values but a strange total value

And so on...

 

I don't see what is going wrong? I hope you can help me!

 

Table.png

Measures are

 

 

Productmix1 = ([Tonnen CY %]-[Tonnen LY %])*[Tonnen CY All]*[Prijs LY]
Row values are right!
 
Productmix2 = SUMX(values(Artikelen[Artikelgroep]);[Productmix1])
 
Productmix effect = If(hasonefilter(Artikelen[Artikelgroep]);[productmix1];sumx(Artikelen;[Productmix1]))
 
Productmix3 = SUMX( SUMMARIZE(values(Artikelen[Artikelgroep]);[Artikelgroep];"ABCD";[Productmix1]);[ABCD])

 

 

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

=IF(HASONEVALUE(Artikelen[Artikelgroep]),[ProductMix1],SUMX(SUMMARIZE(VALUES(Artikelen[Artikelgroep]),Artikelen[Artikelgroep],"ABCD",[ProductMix1]),[ABCD]))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Does this measure work?

=IF(HASONEVALUE(Artikelen[Artikelgroep]),[ProductMix1],SUMX(SUMMARIZE(VALUES(Artikelen[Artikelgroep]),Artikelen[Artikelgroep],"ABCD",[ProductMix1]),[ABCD]))


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

 

Unbelievable! This one works! Really thank you!

Nevertheless, i find it really hard to find the right way how Power Bi calculates the different totals.

 

Thank you again!

Kind regards Marcel

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @marsclone ,

 

could you post your calculation of the measures.

[Tonnen CY %]

[Tonnen LY %]

[Tonnen CY All]

[Prijs LY]

 

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


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