Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |