Disable Filter condition in a slice

Hi there!

My question is โ€œHow do you intentionally disable the filter in case of a condition is false?โ€

Iโ€™m looking forward to seeing the data not filtered if donโ€™t select any value from another table.

I have a data table and a filter table. Whenever I click on a color the filter works beautifully but if I donโ€™t select any color the data is not shown.

IF(ISNOTBLANK([filter_Color]), ANY(Filter[Data_Color]) = [Data_Color], โ€œHereโ€™s where I would like to see all colorsโ€)

I have already read a few articles about slices but Iโ€™ve not been lucky so farโ€ฆ I have tried words like: False, No, auto. But they donโ€™t seem to work.

Thanks for reading and contribute to this thread.

Solved Solved
0 2 276
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Either of the following should do what you want:

IF(ISNOTBLANK([filter_Color]), ANY(Filter[Data_Color]) = [Data_Color], TRUE)

or:

OR(ISBLANK([filter_Color]), ANY(Filter[Data_Color]) = [Data_Color])

View solution in original post

2 REPLIES 2

You FILTER() expression is semantically not correct.

Steve
Platinum 4
Platinum 4

Either of the following should do what you want:

IF(ISNOTBLANK([filter_Color]), ANY(Filter[Data_Color]) = [Data_Color], TRUE)

or:

OR(ISBLANK([filter_Color]), ANY(Filter[Data_Color]) = [Data_Color])
Top Labels in this Space