March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I am trying to reclass/replace values in Table A column GTIN based on what is stated in Table B column GTIN.NEW
I am loading some data (500.00 rows and 10 columns to power bi) in Table A and Table B has 2 columns and a few rows.
In example this is what table a looks like:
Productname | GTIN | Value | Volume |
Bikes | 123 | 100 | 1 |
Cars | 456 | 300 | 1 |
This is my data table A.
Now I have a second table B which has to columns:
GTIN | GTIN.NEW |
123 | 111 |
456 | 222 |
I know i could do this after loading all the data and create a calculated column and use the lookupvalue function but is there a way to do this before loading the data into the model using power query? Would you recommend it in terms of performance?
Kr 🙂
Solved! Go to Solution.
It will still work. You will get null for rows where the GTINs values do not coincide. You can the create a new conditional column to select either the new or the old value, and finally delete the previous GTIN columns
Proud to be a Super User!
Paul on Linkedin.
I might add that table B does not have the same amount of entries ass Table A. Table B only consists of the GTINs that need to be changed
From the sound of it you could merge both tables in Power Query by linking the GTIN columns.
Then delete the old GTIN column once the merge table is created
Proud to be a Super User!
Paul on Linkedin.
@PaulDBrown that would only work if table B has the same GTIN entries as table A, or?
It will still work. You will get null for rows where the GTINs values do not coincide. You can the create a new conditional column to select either the new or the old value, and finally delete the previous GTIN columns
Proud to be a Super User!
Paul on Linkedin.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |