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
zerebro
Regular Visitor

Measure with switch with thousant, millions shows wrong sum in matrix

I want in a matrix show the values in "Default Value","Thousands" and "Millions", it works but the total amount is not right, if i have 228.000 from the original value the measure shows 266.000.

 

Help plz...

 

MeasureAnalysisLastFullYear =
SWITCH (
SELECTEDVALUE ( Units[MeasureUnit] );
"Default Value"; SUM('vAnalysisLastFullYear'[SumLocalCurrencyAmount]);
"Millions"; DIVIDE(SUM ( 'vAnalysisLastFullYear'[SumLocalCurrencyAmount] );1000000);
"Thousands"; DIVIDE(SUM ( 'vAnalysisLastFullYear'[SumLocalCurrencyAmount] );1000); SUM('vAnalysisLastFullYear'[SumLocalCurrencyAmount])
)
3 REPLIES 3
v-cherch-msft
Employee
Employee

Hi @zerebro 

I would suggest you create a measure like below to check if this measure's total is correct.If it is not your case,please refer to How to Get Your Question Answered Quickly to share your sample data which could reproduce your scenario and your desired output.

Measure =
SUMX ( 'vAnalysisLastFullYear', [MeasureAnalysisLastFullYear] )

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Now i tried that but the sum is 265 when it shuld be 228...

 

Is there any "hidden" rows that are included in the sum?

Hi @zerebro 

Without looking at sample data,it is very hard to provide an accurate solution.Please check if the workaround in below post could help you.

https://community.powerbi.com/t5/Desktop/Grand-total-not-showing-the-result-I-was-expecting/m-p/6378...

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.