Forum Discussion
Anonymous
7 years agoNot applicable
Mergin a single column in table X with multiple columns table Y - Need help with M/SQL code
Hi all, I have two tables, X and Y. Table X contains four different levels of code. 1 digit codes, 2 digit codes, 3 digit codes and 4 digit codes. (levels of company hierarchy) looks like th...
Anonymous
7 years agoNot applicable
Thank you! Will try it out as soon as possible and then I'll get back to you asap
Anonymous
7 years agoNot applicable
Actually, you could have imported X and Y tables and add the following calculated columns to your Y table. It is much simpler.
Level 1 Name = LOOKUPVALUE(X[Name],X[Code],Y[level 1])
Level 2 Name = LOOKUPVALUE(X[Name],X[Code],Y[level 2])
Level 3 Name = LOOKUPVALUE(X[Name],X[Code],Y[level 3])
Level 4 Name = LOOKUPVALUE(X[Name],X[Code],Y[level 4])