Forum Discussion
Same count for different percent values.
- Anonymous4 years ago
Hi Anonymous ,
If you want to show 40% in 40 and show 60% in 60, please try this code.
Measure = VAR _COUNT = CALCULATE(COUNT('Table'[Count]),ALLEXCEPT('Table','Table'[Count])) VAR _TOTAL = CALCULATE(COUNT('Table'[Count]),ALL('Table')) RETURN DIVIDE(_COUNT,_TOTAL)Result is as below.
If this reply still couldn't help you solve your problem, please tell us more details about your table. Will you use columns A,B,C,D...in your calculation? Please share a same file and show us a screenshot with the result you want.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
If you want to show 40% in 40 and show 60% in 60, please try this code.
Measure =
VAR _COUNT = CALCULATE(COUNT('Table'[Count]),ALLEXCEPT('Table','Table'[Count]))
VAR _TOTAL = CALCULATE(COUNT('Table'[Count]),ALL('Table'))
RETURN
DIVIDE(_COUNT,_TOTAL)
Result is as below.
If this reply still couldn't help you solve your problem, please tell us more details about your table. Will you use columns A,B,C,D...in your calculation? Please share a same file and show us a screenshot with the result you want.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.