Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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]
)