Forum Discussion
AndreaSo
3 years agoFrequent Visitor
pie chart and distinct count
Hi, I went through several similar solutions but I still did not get to understand how to solve the problem. From data below, I have 5 different products (a1,a2,a3,a4,a5) and some of them are cat...
- 3 years ago
Hi,
could you create 2 measures to calculate to totals e.g:
Issue = VAR __Table = ADDCOLUMNS('Table',"Categort",[Category])RETURNCOUNTROWS(DISTINCT(SELECTCOLUMNS(FILTER(__Table,NOT([Category]="")),"Serial number",[Serial number])))No Issue = CALCULATE(DISTINCTCOUNT('Table'[Serial number]))-[Issue]If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
DOLEARY85
3 years agoResident Rockstar
Hi,
could you create 2 measures to calculate to totals e.g:
Issue = VAR __Table = ADDCOLUMNS('Table',"Categort",[Category])
RETURN
COUNTROWS(DISTINCT(SELECTCOLUMNS(FILTER(__Table,NOT([Category]="")),"Serial number",[Serial number])))
No Issue = CALCULATE(DISTINCTCOUNT('Table'[Serial number]))-[Issue]
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
- AndreaSo3 years agoFrequent Visitor
You helped me! It works, thank you a lot. 🙂