Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all,
I am looking for a solution that says:
if <condition> then <perform action> else <end query>
Is this possible in M?
Also there are a number of queries where if a condition is met, I effectively don't want the query to execute at all. Is that possible? For example:
if <Parameter A = "Disable"> then <end query without any content> else <query actions>
Cheers
Kirsty
Solved! Go to Solution.
Hi @KCinMelbourne,
Please check if below blog helpful to your scenario:
Conditional Code Branching in Power BI Query: if...then...else => then...else...if
Best regards,
Yuliana Gu
Hi @KCinMelbourne,
Please check if below blog helpful to your scenario:
Conditional Code Branching in Power BI Query: if...then...else => then...else...if
Best regards,
Yuliana Gu
Perfect, thank you!
User | Count |
---|---|
94 | |
77 | |
71 | |
62 | |
58 |
User | Count |
---|---|
110 | |
103 | |
84 | |
65 | |
62 |