Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
newtopbitoo
Frequent Visitor

create flag when other same id in table has value "x"

I have a table containing rows with same Id's.
I want to flag every Id when one of the rows with the same Id when column  y has value x.

I found several options to do it in Dax but would like to have this in power query. Did not find a solution so far.

3 REPLIES 3
noobtopowerbi
Frequent Visitor

I am afraid that my question was not clear.
See screenshot. I want to flag all same id's when one of those id's meets a condition

noobtopowerbi_0-1701944473133.png

 

Anonymous
Not applicable

Hi @newtopbitoo ,

 

Here's the solution in Power Query:

Sample data:

vstephenmsft_1-1701421604170.png

 

Steps:

1.Group by

vstephenmsft_0-1701421597543.png

vstephenmsft_2-1701421640121.png

vstephenmsft_5-1701421768125.png

 

2.Add a conditional column.

vstephenmsft_4-1701421751065.png

vstephenmsft_6-1701421780027.png

3.Expand the column contains tables and remove the unneeded columns.

vstephenmsft_7-1701421830677.png

vstephenmsft_8-1701421843533.png

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

 

PijushRoy
Super User
Super User

@newtopbitoo 
Can you please share screenshot of your data and expected result




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors