Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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" )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
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" )
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |