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

Matrix Total Wrong and How to calculate percentages of each cell

1.PNG

 

Hi so this is how my work looks like. This has thousands of columns and millions of rows. I wanted to be able to get a result like this. try2.PNG

 

Can you suggest the next steps? I am new to using power bi so I am very sorry 😞 

1 ACCEPTED SOLUTION
BILASolution
Solution Specialist
Solution Specialist

Hi @mdvillanueva

 

Try this steps...

 

1. This is my sample data with a table called "Table" (You need to replace it by your table's name)

 

data.png

 

 

2. Create the next measures

 

Total Value = SUM('Table'[Value]) 
Total per Row = CALCULATE([Total Value];ALLEXCEPT('Table';'Table'[C1])) 
Percentage = DIVIDE([Total Value];[Total per Row]) 

NOTE: "C1" becomes rows in the matrix visual and "C2" becomes columns.

 

3. This is how the result look like...

 

resultado.png

 

 

I hope this helps

 

Regards

BILASolution

View solution in original post

12 REPLIES 12

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.