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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

 

v-stephen-msft
Community Support
Community Support

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors