cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Wieuwzak
New Member

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
New Member

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors