web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flag duplicate item in...
Power Apps
Unanswered

Flag duplicate item in a gallery

(0) ShareShare
ReportReport
Posted on by

Hi

 

I have a gallery where I can add multiple blank rows using the DEFAULTS function. 

 

I am trying to check for duplicate rows based on certain criteria but I only seem to be able to get an accurate result once the gallery is patched back to the data source? How can I check for duplicate rows in the gallery as the items are added. Here is my current formal:

 

CountRows(

Filter(MYGALLERY,

TaskType=4,

CrewName.DisplayName=ComboBox2_1.Selected.DisplayName))

 

As I understand it, this is only checking against rows which have been patched back to the original data source (in this case, CrewName.DisplayName). How can I flag and count the duplicate rows in realtime as each new line in the gallery is added?

Categories:
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    Hello,

     

    Try this:

     

    ForAll(
     Distinct(
     YourDataSource,
     TheNameColumn
     ),
     LookUp(
     YourDataSource,
     TheNameColumn= Result
     )
    )

    If this solved your issue please mark the post as Solved. 
    Also, if you appreciated my answer, don't forget to give it a Thumbs Up 😃

  • jed76 Profile Picture
    on at

    Many thanks. 

     

    I have tried this and I am getting "expected text value"?

  • jed76 Profile Picture
    on at

    I think that it because I am putting the formula into the TEXT property of a label. Where should I place it please and how can I use it notify the flag?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard