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

Missing column totals and how to add %

My post title sure seems like an easy to solve problem, but I cannot figure it out.

 

My data looks like:

Existing columnsCustom columns
YearFTETypeStatusDurationD <= 4 yrD <= 4,25 yrD <= 4,5 yrD <= 5 yrD > 5 yrDropout < 1yrDropout => 1yrActive
20121INTActive3       1
20121INTDone41       
20131INTDone4,25 1      
20140,5INTDone4,5  0,5     
20140,75INTDropout0,8     0,75  
20141INTDropout6      1 
20140,4EXTDropout0,9     0,4  
20141EXTDropout5,5      1 

 

 

I have made a matrix table in PowerBI and it looks like this:

Wieuwzak_0-1654013055502.png

Wieuwzak_1-1654013068503.png

 

How to add totals? -> settings Column subtotals is enabled, does nothing
How to add percentage? e.g 2012 D <= 4yr (14) as a % of the total row of 2012 (14+8+10+10+5+10). So (14/57) = 24,6%
I  have some filters on the visual: Year (2012-2017) and Type (INT)

 

If someone can point me in the right direction that would be so helpful. Ps. I need this table in a chart later so that's the reason I didn't use a division measure formatted as %.

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Wieuwzak 

You can unpivot these columns values in 'Transform Data'.

veasonfmsft_0-1654235676961.png

Then apply new fields 'Attribute' and 'Value' to matirx.

In this way, the total value of the rows in the matrix can be easily obtained without any coding.

veasonfmsft_1-1654235724026.png

If you need to add percentage, plase show value as percent of row total.

veasonfmsft_2-1654236521968.png

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
Wieuwzak
Frequent Visitor

Thank you, that is perfect! 

v-easonf-msft
Community Support
Community Support

Hi, @Wieuwzak 

You can unpivot these columns values in 'Transform Data'.

veasonfmsft_0-1654235676961.png

Then apply new fields 'Attribute' and 'Value' to matirx.

In this way, the total value of the rows in the matrix can be easily obtained without any coding.

veasonfmsft_1-1654235724026.png

If you need to add percentage, plase show value as percent of row total.

veasonfmsft_2-1654236521968.png

Best Regards,
Community Support Team _ Eason

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.