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
ngut47
Frequent Visitor

Percentage of row total with another sum value measure

Hello, 

 

I trying to figure out on how to solve this problem, if it's even possible. 

 

I have a table Date - with years, another table Category (a,b,c) and facts table with value.

 

YearA(PC)B(PC)C(PC)
20008988
200151555
2002234511
2003693522
2004142233
20058225

 

I want to make a matrix with new calculated fields and the add percentage of row total to it. Firstly I've created a measure where I sum up values from the category A with Category B - that gives me the column A+B(PC). 

 

And then create another measure to get the percentage of row total.

 

The problem is I'm not sure on how to get the calculated filed A+B(PC) into the matrix as a seperate column and include it in the sum of row total. 

 

YearA(PC)A(%)B(PC)B(%)A+B(PC)A+B(%)C(PC)C(%)TotalTotal %
200086,697,41713,98872,1122100
200155,31515,82021,15557,995100
20022315,64530,66846,3117,5147100
20036930,03515,210445,2229,6230100
20041413,32221,03634,33331,4105100
2005812,32233,83046,257,765100

 

Thank you for all the advice!!

1 REPLY 1
v-kkf-msft
Community Support
Community Support

Hi @ngut47 ,

 

Not being clear about the logic of your calculation, I created the following measures as I understand and added them to the Values pane of the matrix.

 

Total = SUM(Category[A(PC)]) + SUM(Category[B(PC)]) + SUM(Category[C(PC)])
Total(%) = [A+B(%)] + [C(%)]

vkkfmsft_0-1653298484858.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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.

Top Solution Authors