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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
i'm trying to create a column in query editor, using this code:
if [A] = [A.1]
&& [B] = [B.1]
&& [C] = [C.1]
then [X]
else [Y].
Similar code worked with the DAX column here:
This is how he dat looks like:
| value 1 | value 2 | Condition | Condition1 | Condition2 | Condition2 | New column |
| x1 | y1 | c1 | c1 | e1 | m1 | |
| x2 | y2 | c2 | c2 | e2 | m2 | |
| x… | y… | c3… | c… | e… | m… |
Solved! Go to Solution.
Hi @JuliaF
Change && to and, if you do have many conditions, try List.AllTrue
if List.AllTrue({[A] = [A.1],[B] = [B.1],[C] = [C.1]}) then [X]
else [Y]
Hi @JuliaF
Change && to and, if you do have many conditions, try List.AllTrue
if List.AllTrue({[A] = [A.1],[B] = [B.1],[C] = [C.1]}) then [X]
else [Y]
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.