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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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]
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.