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'm trying to display a % of total for each category, however I can't get it to work.
_% of Total measure is showing 100% for all... I tried to extract the part where the formula would need to return 493 for every row, regardless of category, however all my data is still filtered. How do I get the formula to work?
Here's what I have so far:
_% of Total = DISTINCTCOUNT('Billing Stats'[WO#]) / CALCULATE(DISTINCTCOUNT('Billing Stats'[WO#]),ALL('Billing Stats'[WO#]))
Solved! Go to Solution.
@Anonymous
use the below DAX for %
Total % = DIVIDE( CALCULATE( SUM('Producer'[Value]) ) , CALCULATE( SUM(Producer[Value]), ALL('Producer') ) )
attached Sample here
It's still showing 1 for each entry. BI seems to be ignoring the ALL() function.
_% of Total = DIVIDE( DISTINCTCOUNT('Billing Stats'[WO#]), CALCULATE( DISTINCTCOUNT('Billing Stats'[WO#]), ALL('Billing Stats'[WO#]) ) )
@Anonymous
Please share sample file, so it very useful to understand.
regards,
Chetan K
How did you get the values to display as %? Calclulation is invalid, percentages should add up to 100%. Here's what Excel comes up with:
Row Labels | N | Y | Grand Total | N | Y |
Aug | |||||
burnsl | 1152 | 124 | 1276 | 20.74% | 25.15% |
ferraiol | 613 | 265 | 878 | 11.04% | 53.75% |
garcong | 1448 | 33 | 1481 | 26.07% | 6.69% |
kingd3 | 4 | 5 | 9 | 0.07% | 1.01% |
maielloe | 2337 | 66 | 2403 | 42.07% | 13.39% |
stoleare | 1 | 1 | 0.02% | 0.00% | |
Aug Total | 5555 | 493 | 6048 |
Hi,
I get the correct result. Download the workbook from here.
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 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |