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!Get Fabric certified for FREE! Don't miss your chance! Learn more
Solved! Go to Solution.
Hi @tgfauzan9303,
Power Query doesn't have switch function, you can use DAX Switch() function instead.
If you want to create a custom column in Query Editor use Power Query, you can use If... then... else... or use custom function, see: https://www.excelguru.ca/blog/2014/09/03/multi-condition-logic-in-power-query/
Best Regards,
Qiuyun Yu
Hi @tgfauzan9303,
It looks like the issue happens in Power BI desktop, right?
Would you please clarify the detail steps that you are taking cause the issue? It would be better if you could provide some screenshots. Do mask sensitive information in screenshots before uploading here.
Best Regards,
Qiuyun Yu
I add custom column as below
Edit Query -> Add customn column
Hi @tgfauzan9303,
Power Query doesn't have switch function, you can use DAX Switch() function instead.
If you want to create a custom column in Query Editor use Power Query, you can use If... then... else... or use custom function, see: https://www.excelguru.ca/blog/2014/09/03/multi-condition-logic-in-power-query/
Best Regards,
Qiuyun Yu
Hi Qiuyun Yu
Thanks for the information.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |