Forum Discussion
Exclude duplicate reference from a calculation
- 5 years ago
Hi Cednok ,
In my understanding, You could create a measure by the following formula:
anomaly percentage = DISTINCTCOUNT([REF])/CALCULATE(COUNT([REF]),FILTER(ALL('Table'),[Article Type]="Sold to"))The final output is shown below:
If it is incorrect, you could try to another measure by the following formula:
anomaly percentage2 = DISTINCTCOUNT([REF])/COUNT([REF])The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Cednok ,
In my understanding, You could create a measure by the following formula:
anomaly percentage = DISTINCTCOUNT([REF])/CALCULATE(COUNT([REF]),FILTER(ALL('Table'),[Article Type]="Sold to"))
The final output is shown below:
If it is incorrect, you could try to another measure by the following formula:
anomaly percentage2 = DISTINCTCOUNT([REF])/COUNT([REF])
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much