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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Drop down gallery

(1) ShareShare
ReportReport
Posted on by

Hi 

I need help, I have a gallery in which I create buttons based on data from Sharepoint.

It works great for me on one procedure and when I wanted to implement it here and there it doesn't work for me and I don't know where the error could be.

And the only thing that changes there is the column in sharepoint which is defined as Choice

AndrejPavlik18_0-1721112957501.png

 

GroupBy(
    SortByColumns(
        AddColumns(
            'Best Practice Ideas',
            'New colum',
            'Inter-cluster Sharing'.Value
        ),
        "New colum",
        SortOrder.Ascending
    ),
    'New colum',
    Data
)
 
Here is an example where it works for me, the data source is the same, only the column in excel changes
 
AndrejPavlik18_1-1721112994275.png

 


GroupBy(
    SortByColumns(
        AddColumns(
            'Best Practice Ideas',
            'New colum',
            'Sub process'.Value
        ),
        "New colum",
        SortOrder.Ascending
    ),
    'New colum',
    Data
)
 
Thanks
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Hi @AndrejPavlik18 ,

    You mentioned Excel - if this is your data source type, what type of column is 'Inter-cluster Sharing' ?

     

  • AndrejPavlik18 Profile Picture
    on at

    Hi @WarrenBelz 

    thanks for your answer 

    No I don´t use like data source excel, the sharepoint is my data source.

    And the type of column is choice so you can select multiple options

     

  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    @AndrejPavlik18 ,

    OK - that explains the issue - you cannot use GroupBy with a multi-choice column. You can do this

    GroupBy(
     SortByColumns(
     AddColumns(
     'Best Practice Ideas',
     'New colum',
     Concat(
     'Sub process',
     Value,
     ","
     )
     ),
     "New colum",
     SortOrder.Ascending
     ),
     'New colum',
     Data
    )

     

    Please click Accept as solution 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 Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • AndrejPavlik18 Profile Picture
    on at

    I don't know why but it's doesn't work 😞

    All code give me the error

    AndrejPavlik18_0-1721128640279.png

    Here is my sharepoint list. 

    AndrejPavlik18_1-1721128688134.png

     

     

  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    @AndrejPavlik18 ,

    You are missing Value from the code I posted

    GroupBy(
     SortByColumns(
     AddColumns(
     'Best Practice Ideas';
     'New colum';
     Concat(
     'Intercluster Sharing';
     Value;
     ","
     )
     );
     "New colum";
     SortOrder.Ascending
     ),
     'New colum';
     Data
    )

     

    Please click Accept as solution 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 Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard