Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
84 | |
57 | |
45 | |
44 | |
36 |