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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.