Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Problem with LOOKUPVALUE not searching multiple columns

Am I right in saying that I cannot use the same Search_ColumnName twice when using the LOOKUPVALUE function?

I have 4 columns in one table with values that match the Search_ColumnName values in another table and I am trying to use the same Search_ColumnName for all 4 Search_Values and its is giving me blanks in the new column. 

Example 1 (This works with the correct values in the new column)

 

Teamowner = LOOKUPVALUE(Owner[Owner],Owner[Team],S3SSL[tags2])

 
Example 2 (This one just gives me blanks in the new column)

Teamowner = LOOKUPVALUE(Owner[Owner],Owner[Team],S3SSL[tags1],Owner[Team],S3SSL[tags2],Owner[Team],[tags3],Owner[Team],S3SSL[tags4])
 
What is the best way to combine the 4 columns in the S3SSL table to one new column using the values in the Owner table?


 

5 REPLIES 5
Anonymous
Not applicable

The problem is with the final parameter but it gives no expalanation as to what the issue might be.

simcay_0-1690153364819.png

 

Anonymous
Not applicable

Still no joy on this one so I ended up creating a conditional column, which also gave me errors until I added a character to the blank spaces in each column and then it gave me what I needed. 

johnt75
Super User
Super User

If you know that there will only be 1 row which matches then you could use

Teamowner =
SELECTCOLUMNS (
    FILTER (
        Owner,
        Owner[Team] IN { S3SSL[tags1], S3SSL[tags2], S3SSL[tags3], S3SSL[tags4] }
    ),
    Owner[Owner]
)
Anonymous
Not applicable

Thank you for the reply but unfortunately that didnt work.

 

simcay_0-1689720623327.png

This is what I am trying to achieve

 

simcay_1-1689720726141.png

 

You need to filter out the blanks as well,

Teamowner =
SELECTCOLUMNS (
    FILTER (
        Owner,
        Owner[Team]
            IN { S3SSL[tags1], S3SSL[tags2], S3SSL[tags3], S3SSL[tags4] }
                && NOT ISBLANK ( Owner[Team] )
    ),
    Owner[Owner]
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.