Forum Discussion
Distinctcount variable if
- Anonymous1 year ago
Hi JavierGomez
What do you mean by A and B?Here's the sample:
Table:
The _Count measure is:
_Count = DISTINCTCOUNT('Table'[Values])And it returens:
Then add a Measure:
Measure = IF([_Count]<=5,"A","B")The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523