The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |