Forum Discussion
Anonymous
6 years agoNot applicable
Long decision making trees using if then else ?
Hi PowerBI experts, I have a simple yet important and practical question: What is the best way to calculate a new column based on a number of if conditions? Please see the code below - this i...
- 6 years ago
Holy cow, use SWITCH(TRUE()...)
- 6 years ago
Hi Anonymous ,
You can refer to this blog:https://community.powerbi.com/t5/Community-Blog/SWITCH-True-Logic-In-Power-BI-What-s-Possible-With-This/ba-p/509753
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
V-lianl-msft
6 years agoCommunity Support
Hi Anonymous ,
You can refer to this blog:https://community.powerbi.com/t5/Community-Blog/SWITCH-True-Logic-In-Power-BI-What-s-Possible-With-This/ba-p/509753
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.