Forum Discussion
Scocal123
3 years agoHelper I
Measure to exclude values split by another column
Hello, Struggling to describe my issue here so have put detail onto Excel for simplicity. I have a table like the below: ID Item A Item 1 A Item 2 B Item 3 C Item 2 D ...
- Anonymous3 years ago
Hi Scocal123 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a measure.
Measure = var a=SUMMARIZE(ALLSELECTED('Table'),[Item],"Distinct",DISTINCTCOUNT('Table'[ID ])) var b=SELECTCOLUMNS(FILTER(a,[Distinct]>=3),"item",[Item]) return COUNTROWS(FILTER('Table',[Item] in b))(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
Hi Scocal123 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a measure.
Measure =
var a=SUMMARIZE(ALLSELECTED('Table'),[Item],"Distinct",DISTINCTCOUNT('Table'[ID ]))
var b=SELECTCOLUMNS(FILTER(a,[Distinct]>=3),"item",[Item])
return COUNTROWS(FILTER('Table',[Item] in b))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.