Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Detect duplicate names selected from 2 person datacard

(1) ShareShare
ReportReport
Posted on by 278
Hi experts, please help me detect duplicate selected items from 2 different combo box (DataCard in Form)
Please see screenshot below for context: I just added the visibility of the label with: 
endorsers.Selected.DisplayName=approvers.Selected.DisplayName
 
however not working properly if there are 2 or more same names. Note that the Data Cards are multi-select.
 
 
Thank you in advance!
Categories:
  • scorpio24 Profile Picture
    278 on at
    Detect duplicate names selected from 2 person datacard
    Works Perfect! Thank you @WarrenBelz
  • Verified answer
    WarrenBelz Profile Picture
    148,042 Most Valuable Professional on at
    Detect duplicate names selected from 2 person datacard
    Not as simple as you would think
     
    CountRows(
       Filter(
          Ungroup(
             ForAll(
                Endorsers.SelectedItems As _Data,
                Filter(
                   Approvers.SelectedItems,
                   _Data.DisplayName in DisplayName
                )
             ),
             Value
          ),
          !IsBlank(DisplayName)
       )
    ) > 0

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399