cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Super User II
Super User II

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

@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 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Super User II
Super User II

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

@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 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Super User IV
Super User IV

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

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.

 

Allan77R2V1 Helper II
Helper II

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

@vimal_parmar  worked perfectly, thanks so much.

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors