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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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/

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


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.