Forum Discussion
Measure with rowwise IN operator
- 2 years ago
Hi tt211595 - Create a table that contains all unique colors
uniquecolors = VALUES('MyTable'[Color])
create a measure and pass your uniquecolors :
MyMeasure =
VAR SelectedColors = VALUES('AllColors'[Color])
RETURN
IF(
SELECTEDVALUE('MyTable'[Color]) IN SelectedColors,
TRUE,
FALSE
)Ensures that the measure MyMeasure evaluates each row of MyTable and returns TRUE if the color is selected in the slicer otherwise FALSE
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Hi tt211595 - Create a table that contains all unique colors
uniquecolors = VALUES('MyTable'[Color])
create a measure and pass your uniquecolors :
MyMeasure =
VAR SelectedColors = VALUES('AllColors'[Color])
RETURN
IF(
SELECTEDVALUE('MyTable'[Color]) IN SelectedColors,
TRUE,
FALSE
)
Ensures that the measure MyMeasure evaluates each row of MyTable and returns TRUE if the color is selected in the slicer otherwise FALSE
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!