Forum Discussion
Lookupvalue help
- 7 years ago
Thanks JSH, I will experiment with that. Might be a cleaner method and I can gain some education in it.
I did find a solution just a minute ago. A combination of IF and ISBLANK works.
= IF(ISBLANK(LOOKUPVALUE(Excel[Clean_Name], Excel[Customer_Name], 'Server'[Customer_Name])), 'Server'[Customer_Name],LOOKUPVALUE(Excel[Clean_Name], Excel[Customer_Name], 'Server'[Customer_Name])), 'Server'[Customer_Name]))
Hi Anonymous ,
I created a plain pbix to test the syntax/logic and it seemed to work fine with both a value (7) not found in table and a value with a blank status.
I will try to take a peek at your file here shortly.
TrentS
Thank you TrentS! I also tried it in another sample file and the following logic works fine.
I was able to assign values. In that case, am not sure why its not working for my main file. Do you have any guesses? The error is "A table of multiple values was supplied where a single value was expected."
Thanks for your help!
- Ashish_Mathur6 years agoSuper User
Hi,
That error means that there are repetitions in the ID column on Table2.
- Anonymous6 years agoNot applicable
Thank you Ashish_Mathur. It works fine once i removed the duplicates
- Ashish_Mathur6 years agoSuper User
You are welcome.