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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
AlwaysLearn
Frequent Visitor

Power Query for Check If Any Duplicate Rows Contain Specific Value

Hi, I am starting to use Power Query, which getting data from a Microsoft Excel in a SharePoint and containing 30k rows data.

 

It has following data:

 

Project Name | Gate | Reapproval Number | Value

A | 1 | 0 | 1

A | 3 | 0 | 1

B | 1 | 0 | 2

B | 3 | 0 | 2

B | 7 | 1 | 2.5

B | 7 | 2 | 3

C | 1 | 0 | 1

C | 3 | 0 | 1

 

In Power Query, I want to detect if there is any Gate 7 for specific Project Name, if yes then will pick up the Value, else will pick up the value of Gate 3. Also, if there is Gate 7, the value to be picked up will be the one with larger Reapproval Number (Project B, Gate 7, Reapproval Number 2, Value 3). Finally will combine all duplicated project names into one common row after above exercise.

 

 

 

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @AlwaysLearn 

 

What do you want to do with Projects that don't have a Gate 7?  Keep them?  Discard them?

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy thanks for response. Would like to keep Max Gate number, Gate 3.

Thanks.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.