March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
New to the Power BI world..
I am looking to create a new column that takes the value from another column if the column has a specific value.
Example:
If the home_station column has the name XYZ I would like my new column to return the value from the work_station. If the value is not XYZ, then I want to keep the value from from home_station. Please see example below
Solved! Go to Solution.
Thank you. Now, one question, if there are multiple values I want to change do I include "and,if" and if so how do I set that up? Been working on that and its not working
HI @sccoleman1189,
Maybe you can try to use 'in' operator to handle multiple values.
OR Condition= IF ( PBI_Report[HOME_STATION] IN { "XYZ", "MNO" }, PBI_Report[WORK_STATION], PBI_Report[HOME_STATION] ) AND Condition = IF ( PBI_Report[HOME_STATION] = "XYZ" && PBI_Report[BU] = "XXX", PBI_Report[WORK_STATION], PBI_Report[HOME_STATION] )
Reference links:
Regards,
Xiaoxin Sheng
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |