Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a table that I am reporting on that includes a column IsEmployed. The chart shows those employed (green) and not employed (red) for each year.
I would like to display a percentage employed in each column for each year. Is this possible with Power bi?
Solved! Go to Solution.
Hi, try with this (modified accord to your tables and Fields)
%byType = DIVIDE ( CALCULATE ( COUNT ( Table1[Employee] ) ), CALCULATE ( COUNT ( Table1[Year] ), ALLSELECTED ( Table1[Employee] ) ) )
Regards
Victor
Lima - Peru
How did you get the value to show in the column?
Hi, try with this (modified accord to your tables and Fields)
%byType = DIVIDE ( CALCULATE ( COUNT ( Table1[Employee] ) ), CALCULATE ( COUNT ( Table1[Year] ), ALLSELECTED ( Table1[Employee] ) ) )
Regards
Victor
Lima - Peru
How did you get the value to show in the column?
I can't see an obvious way to do this simply (unless you're happy for it to be a tooltip), you could try working around it by making a measure that calculates your percentage, adding that as another value to your chart, then setting your percentage to the same colour as the chart background (so it doesn't show up) and customising the data labels so that your employed/unemployed labels are turned off but your percentage is turned on.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |