Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
101 | |
52 | |
21 | |
12 | |
11 |