Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Replacing values in column with 1 of 4 options

Hello I need to replace the value from a column with one of 4 options based on a different column.

 

Ex:

Value replacing in first column: SPE (Sourcing Process Exellence)

Value in other column on the same row: Facilitation

New value in first column: SPE - Facilitation

 

Value replacing in first column: SPE (Sourcing Process Exellence)

Value in other column on the same row: Project

New value in first column: SPE - Project

 

Value replacing in first column: SPE (Sourcing Process Exellence)

Value in other column on the same row: Coaching

New value in first column: SPE - Coaching

 

Value replacing in first column: SPE (Sourcing Process Exellence)

Value in other column on the same row: Training

New value in first column: SPE - Training

 

The text input wasn't allowing me to add pictures so I apologize for the lack of image context, but if anyone can help it would be greatly appreciated.

 

Thanks

 

 

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @Anonymous 

try to create a column

Column = LEFT(Table[first column], 3) & " - " & Table[second column]

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
lbendlin
Super User
Super User

a calculated column with a SWITCH(TRUE())  statement should get you what you need.

 

Or you could do that in Power Query...

Anonymous
Not applicable

Thank you for your answer.

 

I didn't explain my issue well, but I need to keep this data in the first column because new data will continue to be entered in the original column under those new categories I described and will be used in a visualization.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.