Forum Discussion
How to replace one column value with another column value from another table?
- 1 year ago
I'd recommend filtering Table2 for only rows with superscripts and adding a column to that filtered table that strips off the super script.
You can then merge this with Table1 on that custom column and expand Col3. Then replace Col1 with Col3 ?? Col1.
Remove Col3 if you like as a final step.
I've added these tables/queries to the file ray shared. See attached.
Note: There are many different ways to solve this problem. I recommend searching power query multiple replace online for additional ideas.
Hi,
Table1 and Table2 do not have the same number of columns. Table1 has 200 records and Table2 has 150.
The desired output is modification of the column in Table1. I want Table1.Col1 to be replaced with the values of Table2.Col3.
Table1 has other columns as well.
I want to replace the values. But I cannot find the right solution to do so.
I'd recommend filtering Table2 for only rows with superscripts and adding a column to that filtered table that strips off the super script.
You can then merge this with Table1 on that custom column and expand Col3. Then replace Col1 with Col3 ?? Col1.
Remove Col3 if you like as a final step.
I've added these tables/queries to the file ray shared. See attached.
Note: There are many different ways to solve this problem. I recommend searching power query multiple replace online for additional ideas.
- Kiteretsu1 year agoRegular Visitor
This did the work! I used added a new column called flag that tags those with superscripts as Yes and the rest No.
Removed special characters and then did a ReplaceValue for those that had the superscripts and got the expected results.- Anonymous1 year agoNot applicable
Hello Kiteretsu ,
Thankyou for details and It seems that you have gotten a solution.
If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you for your contribution!
- Anonymous1 year agoNot applicable
Hi Kiteretsu ,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.