Forum Discussion

Scocal123's avatar
Scocal123
Helper I
3 years ago
Solved

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 ...
  • Anonymous's avatar
    Anonymous
    3 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.