Forum Discussion
Anonymous
3 years agoNot applicable
LOOKUP VALUE FOR DUPLICATE IDs
Hey gurus, Appreciate your help on the below. I have a table that has IDs and flags ID Flag 888 Y 888 N 999 N 999 N I want to return Y ...
- 3 years ago
Hi,
Please check the below picture and the attached pbix file, whether it works.
It is for creating a new table.
New ID Table = ADDCOLUMNS ( SUMMARIZE ( Data, Data[ID] ), "@Flag", IF ( "Y" IN CALCULATETABLE ( DISTINCT ( Data[Flag] ) ), "Y", "N" ) )
Jihwan_Kim
Super User
3 years agoHi,
Please check the below picture and the attached pbix file, whether it works.
It is for creating a new table.
New ID Table =
ADDCOLUMNS (
SUMMARIZE ( Data, Data[ID] ),
"@Flag", IF ( "Y" IN CALCULATETABLE ( DISTINCT ( Data[Flag] ) ), "Y", "N" )
)