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 / Gallery checkbox follo...
Power Apps
Unanswered

Gallery checkbox follows sequence not the actual order

(0) ShareShare
ReportReport
Posted on by

I have this gallery checkbox that concatenates in a column in my SharePoint list. The problem is the order gets messy. For example, I have A, B, and C checkboxes. User 1 checked A, B, and C. The data in my SharePoint list will show A,B,C. User 2 checked C, B, and A. The value will show C,B,A. The thing is the values are the same but the order won't sort it properly.

 

How can I have the right values? The order should be A, B, and C regardless what user checks first.

 

Thanks!

Categories:
I have the same question (0)
  • biancadevera Profile Picture
    on at

    Please help @WarrenBelz @RandyHayes @Pstork1 @AJ_Z 

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    What formula are you using to concatenate and send the data to sharepoint :).

    Also just in case we need it what are we calling these checkboxes?. What are you expecting it to look like in sharepoint

     

  • biancadevera Profile Picture
    on at

    Here's my formula:

     

    Checkbox within the gallery (galCompany):

    Default: ThisItem.Value in colBuilding

     

    galCompany

    Items: Choices ([@Corp].'Management')

     

    Data card

    Default: colCompany

    Update: colCompany

     

    What I want to see in SharePoint are the values checked (collected) The order should be A, B, and C regardless what user checks first. With gallery checkbox, it captures what you select first then throw it to the list.

     

    If gallery checkbox doesn't work for this, do you have any suggestions? I'm trying to add multiple checkboxes within the data card but I can't get it to work.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @biancadevera ,

     

    The point is you need to sort the collection before the values get concatenated like below:

    Concat(Sort(colCompany, CompanyName, acsending), CompanyName)

      

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • biancadevera Profile Picture
    on at

    Hi @v-jefferni I'll try this. Another concern I have is whenever I export my SharePoint to Excel file, it concatenates but the data is like this A;#B;#C.

     

    Will concat fix this as well?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @biancadevera ,

     

    If it is a Choices column in your SP list, when export the list to Excel, the ;# symbols among the choice values will always be there by design. If it is a People column you will even see the Id value for each value. You could manage to remove them in Excel.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard