- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change value based on value in other column
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 12-28-2023 06:37 PM | ||
08-12-2024 10:10 PM | |||
05-16-2024 08:47 AM | |||
10-12-2021 12:33 AM | |||
05-29-2023 02:23 PM |
User | Count |
---|---|
83 | |
81 | |
52 | |
37 | |
36 |
User | Count |
---|---|
104 | |
85 | |
47 | |
43 | |
42 |