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! It's time to submit your entry. Live 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]
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 14 | |
| 13 | |
| 9 | |
| 8 | |
| 7 |