March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
My post title sure seems like an easy to solve problem, but I cannot figure it out.
My data looks like:
Existing columns | Custom columns | |||||||||||
Year | FTE | Type | Status | Duration | D <= 4 yr | D <= 4,25 yr | D <= 4,5 yr | D <= 5 yr | D > 5 yr | Dropout < 1yr | Dropout => 1yr | Active |
2012 | 1 | INT | Active | 3 | 1 | |||||||
2012 | 1 | INT | Done | 4 | 1 | |||||||
2013 | 1 | INT | Done | 4,25 | 1 | |||||||
2014 | 0,5 | INT | Done | 4,5 | 0,5 | |||||||
2014 | 0,75 | INT | Dropout | 0,8 | 0,75 | |||||||
2014 | 1 | INT | Dropout | 6 | 1 | |||||||
2014 | 0,4 | EXT | Dropout | 0,9 | 0,4 | |||||||
2014 | 1 | EXT | Dropout | 5,5 | 1 |
I have made a matrix table in PowerBI and it looks like this:
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 %.
Solved! Go to Solution.
Hi, @Wieuwzak
You can unpivot these columns values in 'Transform Data'.
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.
If you need to add percentage, plase show value as percent of row total.
Best Regards,
Community Support Team _ Eason
Thank you, that is perfect!
Hi, @Wieuwzak
You can unpivot these columns values in 'Transform Data'.
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.
If you need to add percentage, plase show value as percent of row total.
Best Regards,
Community Support Team _ Eason
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
93 | |
87 | |
86 | |
75 | |
49 |
User | Count |
---|---|
164 | |
149 | |
101 | |
73 | |
55 |