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 Platform Community / Forums / Power Apps / Canvas App Gallery, So...
Power Apps
Unanswered

Canvas App Gallery, Sort, Group, and Filter a sharepoint list

(0) ShareShare
ReportReport
Posted on by 47

I'm trying to do something which should be very simple but I can't get the syntax right. I have a canvas app gallery connected to a sharepoint list. The list has the following columns: Client, Supply Item, Qty, Supply Shipped.

 

Forget the Supply Item and Qty columns for now. I simply want to display a vertical gallery that filters based on Supply Shipped = "No" and group the gallery by Client, and sort by Client asc. I can't figure out how to use GroupBy, Filter, and Sort in one formula for the Items property of the gallery. Any ideas?

Categories:
I have the same question (0)
  • Ngo-Cong-Tuyen Profile Picture
    91 on at

    Hi, @Rahul320 

    I have an idea for this: 

    Sort(
     GroupBy(
     Filter(
     TuyenDemoDS,
     Supply_Shipped = true
     ),
     "field_2",
     "GroupByName"
     ),
     field_2,
     SortOrder.Ascending
    )

    NgoCongTuyen_0-1683774980116.png

    Step 1: I filter my collection with return a table based on my condition:

    NgoCongTuyen_1-1683775252645.png

    Step 2: I group by this table and return other table below with group col name GroupByName:

    NgoCongTuyen_2-1683775376890.png

    Step 3: I sort table after group by:

    NgoCongTuyen_3-1683775472554.png

    Best regards,

    Tuyen

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard