I'm using a grid visual with a column that can have more than one value.. When I add this column to the grid as is, all works as expected and I get two rows: one with 'N' and one with 'Y' data values... However, I also have a need to blank out these values if my slicer is set Yes.. So I've created a measure where I "check the value of my slicer" and based on that would like to either return values of N, Y and/or blank.. However, I get error: A table of multiple values was supplied where a single value was expected..
How do I evaluate both values N and Y for the said column (one at a time) and still return N, Y and/or blank.. I tried using a GroupBy first to create a table but not sure how to tie all this together:
Here's my syntax:
VAR Y =
IF (
CONTAINS (
'table 1',
'table 1'[Column 1], "Y"
),
TRUE (),
FALSE ()
)
VAR N =
IF (
CONTAINS (
'table 1',
'table 1'[Column 1], "N"
),
TRUE (),
FALSE ()
)
RETURN
IF (
Y,
VALUES ( table[ColumntX] ),
IF ( N, VALUES (table[ColumnX] ), BLANK () )
)
ColumnX has more than one value, hence the error... Not sure how to loop through ColumnX...