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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 for the ID if it occured once that the Flag is Y.
so in my unique IDs table it will return the below:
888 Y
999 N
It is as if it searches if 888 has Y in the flag column and returns Y
Thanks,
Amr
Solved! Go to Solution.
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" )
)
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" )
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 12 | |
| 12 |