Forum Discussion
Donut chart problem
- Anonymous5 years ago
Hi Kalachuchi
Build a sample table to have a test.
You may try this measure.
Measure = Var _Discount = CALCULATE(DISTINCTCOUNT(Table2[EID]),FILTER(ALL(Table2),Table2[Status]=MAX(Table2[Status]))) Var _Total = CALCULATE(DISTINCTCOUNT(Table2[EID]),ALL(Table2)) Return _Discount/_TotalBuild a donut visual and select Data value in Detail labels in Format. Result is as below.
Use a Slicer it will still show the perentage of total.
You can download the pbix file from this link: Donut chart problem
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.
Hi Kalachuchi
Build a sample table to have a test.
You may try this measure.
Measure =
Var _Discount = CALCULATE(DISTINCTCOUNT(Table2[EID]),FILTER(ALL(Table2),Table2[Status]=MAX(Table2[Status])))
Var _Total = CALCULATE(DISTINCTCOUNT(Table2[EID]),ALL(Table2))
Return
_Discount/_TotalBuild a donut visual and select Data value in Detail labels in Format. Result is as below.
Use a Slicer it will still show the perentage of total.
You can download the pbix file from this link: Donut chart problem
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.