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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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