Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn 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.
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 9 | |
| 8 | |
| 6 |