Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
As of now, experiments I realized with DAX on SSAS Level 1500, make me think that in the expression :
SWITCH(intValue,
value_1, expr1,
value_2, expr2,
...
value_N, exprN
)
the evaluation engine first evaluate all expr1, expr2, ..., exprN before selecting the correct expression to return.
My questions are : does it really is the case ? Is there any workaround ?
Solved! Go to Solution.
Read all about it here. https://www.sqlbi.com/articles/optimizing-if-and-switch-expressions-using-variables/
Read all about it here. https://www.sqlbi.com/articles/optimizing-if-and-switch-expressions-using-variables/
Thank you, I finally found this paper this morning.
Anyway strange behavior.
Again thanks for your help.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 9 | |
| 7 | |
| 6 |