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 this table:
Id | Date | Product | Running Total |
1 | 2017-01-01 | 0 | 3 |
2 | 2018-01-01 | 0 | 3 |
3 | 2019-01-01 | 0 | 3 |
4 | 2017-01-01 | 1 | 6 |
5 | 2020-01-01 | 1 | 6 |
6 | 2021-01-01 | 1 | 6 |
7 | 2021-01-01 | 2 | 7 |
8 | 2022-01-01 | 3 | 8 |
9 | 2022-01-01 | 4 | 9 |
10 | 2017-01-01 | 5 | 11 |
11 | 2022-01-01 | 5 | 11 |
When I apply a filter to the date dimension from 2018-01-01 to 2022-01-01, I get this data:
Id | Date | Product | Running Total |
2 | 2018-01-01 | 0 | 2 |
3 | 2019-01-01 | 0 | 2 |
5 | 2020-01-01 | 1 | 4 |
6 | 2021-01-01 | 1 | 4 |
7 | 2021-01-01 | 2 | 5 |
8 | 2022-01-01 | 3 | 6 |
9 | 2022-01-01 | 4 | 7 |
11 | 2022-01-01 | 5 | 8 |
"Running Total" is produced using this measure:
If I want to have "Running Total" displayed as a percentage out of the measure "TotalPopulation" (which is just a whole number that changes dynamically when filters are applied), how do I achieve this?
Expected output when "TotalPopulation" Measure = 200:
Id | Date | Product | Running Total |
2 | 2018-01-01 | 0 | 1% |
3 | 2019-01-01 | 0 | 1% |
5 | 2020-01-01 | 1 | 2% |
6 | 2021-01-01 | 1 | 2% |
7 | 2021-01-01 | 2 | 2,5% |
8 | 2022-01-01 | 3 | 3% |
9 | 2022-01-01 | 4 | 3,5% |
11 | 2022-01-01 | 5 | 4% |
Solved! Go to Solution.
@msuser48 , for % of the total divide it by
calculate(Countrows(Table), allselected(Table))
Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
@msuser48 , for % of the total divide it by
calculate(Countrows(Table), allselected(Table))
Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |