Forum Discussion
supervkc
9 years agoNew Member
Percentage with Count Quantity
New user to Power BI here, and I am trying to calculate the percentage of each count of Qty from the total quantity count. I am missing something in my formula, and my percentages are off. I ...
- 9 years ago
Hi supervkc,
In your scenario, you can create a measure with the DAX like below:
% = DIVIDE(COUNT('18'[Qty]),CALCULATE(COUNT('18'[Qty]),ALL('18')),0)
Assume the sample data like this:
Best Regards,
Qiuyun Yu - 9 years ago
Hi,
There is another easy way to do it. Right click the metric or measure. Click Quik calc. In the dialog box, choose percentage of grand total.
v-qiuyu-msft
9 years agoCommunity Support
Hi supervkc,
In your scenario, you can create a measure with the DAX like below:
% = DIVIDE(COUNT('18'[Qty]),CALCULATE(COUNT('18'[Qty]),ALL('18')),0)
Assume the sample data like this:
Best Regards,
Qiuyun Yu
Thiyags
9 years agoHelper II
Hi,
There is another easy way to do it. Right click the metric or measure. Click Quik calc. In the dialog box, choose percentage of grand total.