Forum Discussion
mark_carlisle
8 years agoAdvocate IV
Lookup a value within a table
I have a table in Power BI which looks similar to below (unable to post the actual table as this contains confidential information). Essentially it collates all of the different logins/user names fro...
- 8 years ago
Zubair_Muhammad
8 years agoCommunity Champion
Hopefully this would work
Column =
VAR mytable =
SUMMARIZE ( Table1, [Full Name], [Email] )
VAR mymanager = Table1[Manager Name]
RETURN
LOOKUPVALUE ( [Email], [Full Name], mymanager )- Zubair_Muhammad8 years agoCommunity Champion
- mark_carlisle8 years agoAdvocate IV
Thanks for this, however I get an error;
A table of multiple values was supplied where a single value was expected.
TeamManagerEmail = VAR mytable=SUMMARIZE('DV_STAFF2:DV_STAFFBY_EMPNO',[FullName],[SageEmailAddress]) VAR mymanager='DV_STAFF2:DV_STAFFBY_EMPNO'[Team Manager] RETURN LOOKUPVALUE([SageEmailAddress],[FullName],mymanager)The only difference between mine and yours is the '' marks around the table name.
Any suggestions?
- v-chuncz-msft8 years agoCommunity Support
As mentioned here, if multiple rows match the search values and in all cases result_column values are identical then that value is returned. However, if result_column returns different values an error is returned.