Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])
The problem is with the final parameter but it gives no expalanation as to what the issue might be.
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.
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]
)
Thank you for the reply but unfortunately that didnt work.
This is what I am trying to achieve
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]
)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
7 | |
6 |