Forum Discussion
selimovd
Most Valuable Professional
4 years agoPerformance with many SWITCH or IFs slow. Is there a solution with good performance?
Hello everyone,
I have a kind of complex scenario and don't really know how I can solve that with appropriate performance.
I have a master measure that is, depending on a slicer, calculating ...
- 4 years ago
Calculation groups may not help, the best performance can be obtained by using SWITCH but you have to pay attention to the details. See this article+video: Understanding the optimization of SWITCH - SQLBI
marcorusso
Most Valuable Professional
4 years agoCalculation groups may not help, the best performance can be obtained by using SWITCH but you have to pay attention to the details. See this article+video: Understanding the optimization of SWITCH - SQLBI
selimovd
Most Valuable Professional
4 years agoThank you very much marcorusso , the approach mentioned in the article could solve the issue.
The visual with 20 measures that all of them use a SWITCH with 19 options went from 40 seconds to 1.8 seconds after optimization!