Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi
I'm interested in moving this DAX formular into Power Query:
Solved! Go to Solution.
Please note, you can also use "and" "or". An example of a simple one:-
If
(
[Column1] = "A"
and
[Column2] = "B"
)
then "Confirmed A & B"
else if
"not A&B"
else
"something else"
Hi @Thorstedt,
jop, it is possible. Just add a new column in PowerQuery Editor UI and rewrite your many ifs. A documentation for IF can be found here: https://docs.microsoft.com/en-us/powerquery-m/expressions-values-and-let-expression#If
Hi @Nolock
Thanks, I figured out the different formulation: If((if [a] >x THEN y ELSE z)+(If [b] >x THEN y ELSE z) .... ) >x THEN "True" ELSE "False")
Thanks!
Please note, you can also use "and" "or". An example of a simple one:-
If
(
[Column1] = "A"
and
[Column2] = "B"
)
then "Confirmed A & B"
else if
"not A&B"
else
"something else"
That might be a simpler solution than my first attempt. Thanks!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.