Forum Discussion
Anya_T
5 years agoFrequent Visitor
Column Condition
Hi, I have data in two column. I want to compare them and make a new column as per condition. Please find below the data of 2 column User ID Classifier a a b null c c d f ...
- 5 years ago
Anya_T maybe even a simple version:
Column = IF ( YourTable[User ID] = YourTable[Classifier] || ISBLANK ( YourTable[Classifier] ), YourTable[User ID] )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Greg_Deckler
5 years agoCommunity Champion
Anya_T Perhaps:
Column =
SWITCH(TRUE(),
[User ID] = [Classifier] || ISBLANK([Classifier],[User ID],
BLANK()
)