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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors