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! Get ahead of the game and start preparing now! Learn more
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"
)
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"
)
Thanks so much Jihwan, it worked perfectly. Much appreciated. Kind regards,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 18 | |
| 10 | |
| 9 | |
| 7 | |
| 7 |