Forum Discussion
hnguyen76
5 years agoResolver II
Conditional Filter On Different Tables
Hi All. I have an optimization question. Currently I have a measure that returns the correct values in which I'm looking for. The measure is as followed: VAR _DateFilter = DATESBETWEEN(Dim_Calen...
ImkeF
5 years agoCommunity Champion
Hi hnguyen76 ,
your code will probably work if you replace the Blank() (which returns a scalar value) by an empty table {} :
VAR _FilterCriteria = // Of course, this does not work
SWITCH( _SelectedValue,
"AB", ALL(Dim_PL_Hierarchy),
"CB", ALL(Dim_Geo_Hierarchy),
"ZY", {}
)