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

Notifications

Announcements

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:
I have the same question (0)
  • StretchFredrik Profile Picture
    3,395 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard