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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jinyli
New Member

Different Aggregation for Matrix Columns

Hi everyone!

 

I'm running into a problem when using matrix. I want to show 3 fields: value, total count and the percentage. Percentage is a calculated column computed with value/total. 

 

Screen Shot 2019-08-29 at 4.52.03 PM.png

 

The problem is that each field has to be summarized in some way since there are slicers on the data. I used Sum for value and total acount, and there's no issue. However I don't know how I should summarize the percentage. Simply taking average of them, like I did in the picture,  is clearly wrong. You see that the percentages aren't equal to value/total count. Ideally I want the percentage to be dynamic, always reflecting value/total count. Is there any way to do it in matrix? If not, what visualization should I choose, if I want to see the 3 fields in 2 dimensions(date and product) ?

 

Thanks!

 

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

 

 

Hi @jinyli ,

Two pictures below. First a table named Matrix with truncated portion of your values. Second contains the measure P1 and the matrix visual. Instead of using the column PERCENT use the measure to show the percentage. Just remember to format your measure  as a percentage.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

Product percent.PNG 

 

Product percent2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Nathaniel_C
Community Champion
Community Champion

 

 

Hi @jinyli ,

Two pictures below. First a table named Matrix with truncated portion of your values. Second contains the measure P1 and the matrix visual. Instead of using the column PERCENT use the measure to show the percentage. Just remember to format your measure  as a percentage.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

Product percent.PNG 

 

Product percent2.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Solved my problem. Thank you so much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors