Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all, I have a few hundred thousand rows with names in two columns.
I'm trying to get the following output:
ID | Names | Surnames | Unique Names | Unique Surnames |
1 | Anna | Jorge | Anna | Jorge |
1 | Richard | Michael | ||
1 | Michael | Richard | ||
2 | Hammadh | Anna | Hammadh | Anna |
I'm using a LOOKUPVALUE formula:
IF(LOOKUPVALUE(Table1[Surnames],Table1[Surnames],Table1[Names])=BLANK(),Table1[Names],BLANK())
This works in evaluating the names in the Names column, comparing with the Surnames, and returning the unique values. If there's only 1 single ID.
However, I need to contain the operation of the LOOKUPVALUE based on the ID. That way, Anna would show up twice as in the above table, but currently, it doesn't since it ignores IDs and does locate the matching surname on ID: 2
How can I contain this LOOKUPVALUE to the rows with the same ID only, as opposed to evaluating the entire column regardless of ID?
Thanks!
Hi, @peterpm
Add the ID column in the lookup value like this,
IF(
LOOKUPVALUE(
Table1[Surnames],
Table1[Surnames], Table1[Names],
Table1[ID], Table1[ID]
) = BLANK(),
Table1[Names],
BLANK()
)
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
89 | |
79 | |
70 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
84 | |
77 |