We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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,
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 12 | |
| 10 | |
| 10 | |
| 6 | |
| 5 |