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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
Ive got a problem. I want to get multiple rules in a switch statement.. But its not working, only if u use OR-statement i can add 1 more rule..
Sample of the data/formula(its anonymized):
Solved! Go to Solution.
Thanks, this is exactly what i wanted.
I was so close to the solution haha
I have a template i use for adding a switch with muliple criteria
you can replace the && with a || to get an or statment. and just use as many colunms as is needed
Proud to be a Super User!
Thanks for your reply, but this isnt working for me. Doesnt give the output i need..
Are you able to give some sample data showing the data you have and your desired outcome
If you have a PBIX file that i could down load i can try and impliment this for you
Proud to be a Super User!
Give back a TRUE if ReferredID equals 1 of the 4 desired ID's and if the match with 1 of the UserID's...
If ReferredByID equals 1073 OR 440190 OR 39050 OR 28536
AND UserID equals 1028 OR 383575 OR 93233 OR 1013 then TRUE
else will give back FALSE everytime.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.