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
Allan77R2V1
Helper II
Helper II

Replace a cell in one column if another columns cell equals something

I have the following two columns

Current State
Service TypeResource Type
SCM301FT101
SCM301GT101
SCM100FT101
SCM100HM500
SCM075KL102
SCM050KL102
SCM100KL103
GL200FT101

 

I want to do the following

If "Resource Type" = FT101 Then "Service Type" =  FX008, Else keep Service Type as is

 

Here is what I want to end up with

 

Desired State
Service TypeResource Type
FX008FT101
SCM301GT101
FX008FT101
SCM100HM500
SCM075KL102
SCM050KL102
SCM100KL103
FX008FT101

 

Any suggests on how to go about this? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Allan77R2V1 Please create a calculated column desired service type as 

Desired Service Type = IF('Table'[Resource Type]="FT101","FX008",'Table'[Service Type])

Please let me know if you have any question. If it help accept as solution 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @Allan77R2V1 

 

You can do it in Power Query as an alternative.

Select Yor column, go to Transform Ribbon > Replace Values > Value to Find = FT101  and Replace with = FX008 then Click Close and Apply

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

@Allan77R2V1 Please create a calculated column desired service type as 

Desired Service Type = IF('Table'[Resource Type]="FT101","FX008",'Table'[Service Type])

Please let me know if you have any question. If it help accept as solution 

@Anonymous  worked perfectly, thanks so much.

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