Forum Discussion
Use filter to exclude
- Anonymous6 years ago
hi rkouwenhoven ,
Please check following steps as below:
1. Create Measure =
var s_h = MAX(Table1[show_hide])
return
IF(s_h = "1" &&
MAX(Table2[client_name]) in VALUES(Table1[client_name]),
1,
IF(s_h = "0"&&
NOT(MAX(Table2[client_name])) in VALUES(Table1[client_name]),
1,
BLANK()))
2. Filters on visual measure is not blank.
Results would be shown as below:
BTW, PBIX file as attached, hopefully works for you.
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous ,
I can't seem to get this reproduced. I followed your steps but the measure is not allowed as a filter, neither as a value in the visual. it gives me a failure message. Do I need to have a specific relationship between the 2 tables?
Anonymous ,
After some testing it is doing the magic. The 0 and 1 were set up as a whole number in the table but had to change it to a text field. No relation in tables, so now it is working.
Thanks a lot for your help.