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.
Considering this data:
Key | Name | Flag |
ABC1 | John | No |
ABC1 | Mary | Yes |
ABC1 | Tony | No |
ABC2 | Thorm | No |
ABC2 | Relph | Yes |
How do I add a column that returns the Name from another row with the same key where that other row has TRUE for the flag:
Key | Name | Flag | The Flagged Name |
ABC1 | John | No | Mary |
ABC1 | Mary | Yes | Mary |
ABC1 | Tony | No | Mary |
ABC2 | Thorm | No | Relph |
ABC2 | Relph | Yes | Relph |
Solved! Go to Solution.
Hi @akurate
Please use
Flagged Name =
MAXX (
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Key] ) ),
'Table'[Flag] = "Yes"
),
'Table'[Name]
)
you may also try like:
Hi @akurate
Please use
Flagged Name =
MAXX (
FILTER (
CALCULATETABLE ( 'Table', ALLEXCEPT ( 'Table', 'Table'[Key] ) ),
'Table'[Flag] = "Yes"
),
'Table'[Name]
)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |