This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Below is my requirement in sql. can anyone please give that equivalent SWITCH IN DAX. Both Tables in Powerbi are having a join relationship
in the model already.
CASE WHEN TableA.customertype = 'New' AND TableB.flag = 'NO' THEN 'New Customer'
,WHEN TableA.customertype = 'Existing' AND TableB.flag = 'NO' THEN 'Existing Customer'
,WHEN TableB.flag = 'Yes' THEN 'Employee'
Many Thanks
Solved! Go to Solution.
I have resolved this using RELATIVETABLE function in DAX.
I have resolved this using RELATIVETABLE function in DAX.
Hi Denis, the Condtional column which you suggeseted only allows me to add conditions based on the current table but not from other tables. Basically i need to write SWITCH statement joining another table. Can you please help me on that ? Thanks
Hi Denis, thanks for this. but can you please provide me with that DAX SWITCH statement for creating that condtional column ?
Many Thanks
Hello @Anonymous ,
join the tables in Power Query and then add a conditional column:
In the upcoming dialogue you can do the required statements.
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 39 | |
| 28 | |
| 28 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |