Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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,
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |