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 / Best Method to Compare...
Power Apps
Answered

Best Method to Compare values from a collecton?

(0) ShareShare
ReportReport
Posted on by 347

Hi All.

 

I have a list of records that have been concatenated. I want to be able to lookup / compare the current selection to see if it matches any of the record or not (and return either true or false). I've been trying to create another collection to grab the results and concatenate them but it seems like it's not working.  The comparison should run form submit or before submit to make the check.

 

error.PNGresult_should_return_true.PNG

 

Any help would be greatly appreciated!

Categories:
I have the same question (0)
  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @hnguy71 ,

     

    It might help to know a bit more about the context, but based on what you've written, you're trying to see whether any of the concatenated combinations in the Data grid on the left of your image match the current combination of text inputs on the right of the image - is that right?

     

    Based on the screenshot though, the left appears to be a collection of rows and the right appears to be fields that would make up one row, so - logically I would think that you'd want to check if the combination of fields on the right exists in the collection on the left before, presumably, adding them to the collection on the left as a concatenated rowset like the others?

     

    Take a look a the following to see if it sounds like what you're trying to do.

     

    Create a Label to see the output and set it's Text: property to:

     

    Concatenate(Geomarket.Text, "|", SubGeoMarket.Text, "|", ProductLine.Text) //and so for all your text fields on the right
    in
    Mycollection.ConcatenatedColumn

     

    Should resturn true based on the screenshot you showed.  I don't know what you're input fields are named, so substitute with your input text names.


    Hope this helps,


    RT

     

  • hnguy71 Profile Picture
    347 on at

    @RusselThomas 

     

    That works surprisingly well and looks easier than I expected. Thanks again!

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard