Forum Discussion
justine0812
3 years agoFrequent Visitor
SWITCH and IF statements
Hi, I am trying to create a DAX measure that follows a slicer whether the selected currency is EUR or GBP. I have the following DAX measure but it doesn't seem to work. I'm just a bit confused ho...
lbendlin
3 years agoSuper User
Use DAXFormatter.com to make sense of your rather complex code and then refactor it . Note that you can have nested SWITCH statements. Also note that SWITCH only improves readability. It is technically the same as nested IFs (sometimes also called "syntax sugar").