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

Community site session details

Session Id : bN89CV+0r8GlRCzgL3Dt/O
Power Apps - Building Power Apps
Answered

How to compare all rows of a sharepoint list in powerapps

Like (0) ShareShare
ReportReport
Posted on 5 Dec 2021 16:24:21 by 101

I am building an app where I want to compare each row in the sharepoint list against one another to find matches.  Each row signifies a specific product with multiple columns that are choice columns and some are just single line text.

 

The canvas app I have made takes each row in the sharepoint list and creates a cpreview card.  I have created and Checkbox on each care for the user to selcet it to comapre.  

Thus, how do i get the data to display once the user has selected the items they wish to compare?  I have attached image of cards and sharepoint data list.

I have the same question (0)
  • glucero1975 Profile Picture
    101 on 06 Dec 2021 at 17:10:01
    Re: How to compare all rows of a sharepoint list in powerapps

    I got it working.  Thank you for all your time and support.  Greatly appreciated.

  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on 05 Dec 2021 at 22:44:11
    Re: How to compare all rows of a sharepoint list in powerapps

    Are you referring to other choice columns that are single select only?

     

    If so, you will need to include the following in your label:

     

    'ThisItem.YourSingleChoiceColumn.Value' 

  • glucero1975 Profile Picture
    101 on 05 Dec 2021 at 22:31:48
    Re: How to compare all rows of a sharepoint list in powerapps

    For some reason, my single choice ones still will not show? It seems taht when I select the multichoice columns, the one thare are in 'Columnname' show up and the ones not in ' do not show?

     

  • Gerard Simpson Profile Picture
    2,987 Moderator on 05 Dec 2021 at 22:16:03
    Re: How to compare all rows of a sharepoint list in powerapps

    Yes, you can just delete ; and leave just the space(" ").

     

    I have tested and this also works if you select just one choice in a column that has multi selection enabled.

  • glucero1975 Profile Picture
    101 on 05 Dec 2021 at 21:59:34
    Re: How to compare all rows of a sharepoint list in powerapps

    For the Concat items with multipoe vlaues, if I remove the  ";" will it remove the ; after each choice?  I want all choices to display but not the ;

     

  • glucero1975 Profile Picture
    101 on 05 Dec 2021 at 21:56:25
    Re: How to compare all rows of a sharepoint list in powerapps

    When I check collection and click on nested tables, they do show allchoices as Value like your screen shot. So,

     it works when there are multiple itens for the column that have been selected.  How do I now disply when only one choice is selected?

  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on 05 Dec 2021 at 21:38:34
    Re: How to compare all rows of a sharepoint list in powerapps

    Hi @glucero1975  - The error you have forwarded seems to only be related to the combo box - If you just want to view the items chosen in that field as a joined string in the comparison view, just use the label with the formula I gave you. 

     

    It should work as is, but to troubleshoot can you check to make sure multiselections have been made in the record you collected?

     

    Also, can you go to View\collections and click into the nested table in your collection to reveal the contents of that nested table (i.e. your selected items). For example in the following scenario, I have clicked through in to view the contents of my multiple selection in a choice column called 'ChoiceMulti' within my collection, 'colTESTING'

     

    AmDev_0-1638740119136.png

     

    You can see the header is 'Value', so when I added the following code into the label in the gallery row:

    AmDev_1-1638740196816.png

    .....

     

    I got the following result in the label:

    AmDev_2-1638740230519.png

     

    Is the header in your nested table called 'Value' or is it something else?

  • glucero1975 Profile Picture
    101 on 05 Dec 2021 at 20:58:16
    Re: How to compare all rows of a sharepoint list in powerapps

    Get error in formula.   Combobox items =ThisItem.'Opportunity Area'

    Tried to set label items = Concat(ThisItem.'Opportunity Area',Value,";")

     

    Issue: Invalid argument type

    Locstion ComboBox1.Items

  • Gerard Simpson Profile Picture
    2,987 Moderator on 05 Dec 2021 at 20:27:19
    Re: How to compare all rows of a sharepoint list in powerapps

    In that case and if you are only ever viewing the info, go for a label control and add the following to display the items in a single deliminated string:

     

    Concat(ThisItem.YourMultiSelectColumn, Value, "; ")

  • glucero1975 Profile Picture
    101 on 05 Dec 2021 at 20:07:57
    Re: How to compare all rows of a sharepoint list in powerapps

    OK. How do you get it to automatically display valeu/values?  I can select the dropdown and it give me the value but I wanted t he gallery to just show all values like itdoes if it is a singletext item?

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 688 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 499 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading started
Loading complete