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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jinweitan
Frequent Visitor

Replacing Column Values based on what it is

Hi all,

 

I have a question regarding potential to replace values of a column to another based on what it is.

 

For example:

 

I have a table of:

IDItems
1A
2B
3A
4C

 

Where I want 

A = Apple

B = Orange

C = Mango

 

 

Replacing the Alphabet into items, end product having:

IDItems
1Apple
2Orange
3Apple
4Mango

 

I know I can simply replacing A, B, C through clicking "Replacing Values", however imagine if it is A to Z where there are a lot of other values, are there any easier method to achieve this?

 

Is there anyway to do that?

 

Many thanks.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
2 REPLIES 2
amitchandak
Super User
Super User

Greg_Deckler
Super User
Super User

@jinweitan - Sounds like you need a Merge query, Table.Join.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.