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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.