Forum Discussion

OnlyPhilip's avatar
OnlyPhilip
Frequent Visitor
6 years ago
Solved

Measure based on selected multiple values

Hi everybody, I have a calculated column that, to be used in a visual, should return either:

- 1 if the value of a different column of the same table is found selected in a slicer or table. Note that the slicer might have multiple values selected;

- BLANK if not

 

I'm trying with this, but it doesn't work:

Calculated column in Table1 = 
IF(
    Table1[Column1] IN VALUES(Table2[Batch]),
    1,
    BLANK()
)

 where Table2 is the one whose values are "sliced".

 

Thanks
Phil

3 Replies