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 All, help please, I want to add a Conditional Column as the sample below using DAX. I would appreciate your support. Thank U. Rosario.
Option | Column1 | Column2 | Conditional Column |
Green | 2 | 1 | Below |
Green | 2 | 2 | Same |
Green | 2 | 3 | Above |
Blue | 2 | 1 | Below |
Blue | 2 | 2 | Same |
Blue | 2 | 3 | Above |
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix fie.
Conditional column CC =
SWITCH (
TRUE (),
Data[Column1] > Data[Column2], "Below",
Data[Column1] < Data[Column2], "Above",
Data[Column1] = Data[Column2], "Same"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix fie.
Conditional column CC =
SWITCH (
TRUE (),
Data[Column1] > Data[Column2], "Below",
Data[Column1] < Data[Column2], "Above",
Data[Column1] = Data[Column2], "Same"
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thanks so much Jihwan, it worked perfectly. Much appreciated. Kind regards,
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
18 |