Forum Discussion
taylorb
5 years agoHelper I
Measure Using SWITCH Not Applying Filters to Underlying Measures
I am trying to minimize the number of measures I am using in a dashboard. I ended up creating several that are nearly identical so I thought I could use some IF statements to reduce the amount of mea...
amitchandak
5 years agoSuper User
taylorb , if it is a measure then it should be like this assuming all other are measures too
Avg Rate =
SWITCH(max('Summary Cards'[Line of Business]),
"External", [!ExternalAvgRates],
"Internal", [!InteralAvgRates],
"Interdepartmental", [!InterdeptAvgRates],
"New Hire", [!NewHireAvgRates],
"Tenured", [!TenuredAvgRates],
)
- taylorb5 years agoHelper I
Sorry, I made a mistake in my original post (I have corrected it). The SWITCH is in a calculated column not a measure. Sorry for the confusion
- taylorb5 years agoHelper I
I think I answered my own question... obviously a calculated column wont take a filter into its calculation.