Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |