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

Row subtotals are displayed wrong for negative values

Dear Team,

 

The row subtotal in the matrix is displaying wrong summation values for columns with negative values.

Please have a look at the below table. Could you please let me know how to resolve this?

 

AsihwaryaS_0-1681288952076.png

 

5 REPLIES 5
joaoribeiro
Kudo Kingpin
Kudo Kingpin

Hi @AsihwaryaS , in this case what's the desired total? Should it be the sum of all rows? Currently, Power BI is replicating the summarization, which means that it's recalculating the "bud %" for all values.

Also, please share some data sample if you can, to help solving the issue 🙂


If you need any additional help please @ me in your reply.

Thanks!

Best regards,
Joao Ribeiro

Hello,

 

The desired total would be -9.20% for Bud% and 30.0% for LY%

 

Normal summation of all the values in a column

 

Regards,

Aishwarya S

Hi @AsihwaryaS , thank you.

 

In this case, you can use the IF(ISINSCOPE()) to check if you are in a line or in the total, and if you're in the total you consider the sum instead of the normal calculation. Please, consider the code below as starting point, replicate for the LY%, and adjust as you need:

bud % sum = 
IF(
// Check if it is in the item lines, if so, consider the normal 'bud %' measure
ISINSCOPE('Table'[Item]),
[bud %],
// If it is not in the lines, consider the sum of the lines
SUMX('Table', [bud %])
)

Example of result:

joaoribeiro_0-1681291109965.png


Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️or giving it a kudoe 👍

Thanks!

Best regards,
Joao Ribeiro

Hi,

 

I applied the above formula but my total is blank, not sure if its because my values are in percentage

Hi @AsihwaryaS , can you plase share a small sample of the data? Thank you.

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.

Top Solution Authors