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 / How to compare all row...
Power Apps
Answered

How to compare all rows of a sharepoint list in powerapps

(0) ShareShare
ReportReport
Posted on 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.

Card page with compare button.jpg
Sharepoint list to compare.jpg
Categories:
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @glucero1975 

     

    Is your plan to allow users to isolate 2 items by selecting the checkbox in 2 cards and this then allows the users to manually compare the two items side by side?

  • glucero1975 Profile Picture
    101 on at

    yes.  The can select up to 3 cardsto compare side by side.  The flow would be to select the individual cards.  Those popluate a pop up modal with the selected cards. Then there is a button on that modal to slected compare which will navigate to screen with side by side comparison of like items from the selcted cards.

    Compare modal.jpg
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    When you check the box for each item, collect that entire record to your compare collection. Also set up logic in your Controls based on the count of that collection so they are disabled if count rows of colCompare is >3.

     

    Once you have your rows in your collection, you can just create a comparison gallery which surfaces those three rows side by side using a horizontal gallery or vertical gallery with wrap count pf 3.

     

    Hope this helps

  • glucero1975 Profile Picture
    101 on at

    I have displah mode for gallery of crds set to:

    If(Self.Value || (Value(CountLabel_1.Text)=2)|| (Value(CountLabel_1.Text)=1) || (Value(CountLabel_1.Text)=0), DisplayMode.Edit, Disabled)

    This disables any selections over 3 items. 

     

    What do I need to do to set up collection? 

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    You can add the following to the 'oncheck' property of your checkboxes to add the selected record to the collection

     

    Collect(colCompare, This.Item)

     

    In the 'onuncheck' property of the checkbook you can add the following to remove the record you unchecked from the collection

     

    Remove(colCompare, ThisItem)

     

    Just add the collection (colCompare) as the items property of your compare gallery and add the necessary controls and position accordingly to display the comparison gallery how you wish.

     

    Have your compare button take you to this compare screen.

     

    Hope this makes sense, but let me  know if not.

  • glucero1975 Profile Picture
    101 on at

    How to I show those columns that multiple choice columns?  I can get the single line text ones to show by adding label and setting item=ThisItem.ColumnName.  TYhe columns that have multiple choice entries do not display and in the Collections view they just havesymbol of a table.

     

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Go for a combobox. 

  • glucero1975 Profile Picture
    101 on at

    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?

     

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    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 at

    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

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard