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 / Canvas Power App galle...
Power Apps
Unanswered

Canvas Power App gallery stopped displaying any items, issue with SortByColumns date field

(1) ShareShare
ReportReport
Posted on by 310
My gallery has stopped displaying items and I can't figure out why.  There's no delegation warning or visible error I can find.  I've not changed the properties of this gallery, it was working fine before.     Any help is appreciated. 
 
Canvas Power App has connections to multiple SharePoint lists.  The SharePoint list in question is 'ActivityLog' which has 5000+ items.  The ActivityLog recently surpassed 5000 items, I'm not sure if that's the cause of this issue.  
ActivityLog has columns:
  • CrossReference [single line of text]
  • EventDate [Date/time]
  • Created [Date/time]
  • Title [single line of text]
  • Description [single line of text]
  • Type [single line of text]
 
Properties for this gallery are: 
  1. DisplayMode: DisplayMode.View
  2. Items: 
    SortByColumns(
        Filter(
            ActivityLog,
            StartsWith(
                CrossReference,
                DataCardValue134.Text
            )
        ),
        "EventDate",
        If(
            ascendingOrder = true,
            SortOrder.Ascending,
            SortOrder.Descending
        )
    )
 
The CrossReference is the text field in the SharePoint list 'ActivityLog'.  The DataCardValue134.Text is the text value of a control on the page, this filters the items displayed on the page from the ActivityLog. There's a sort icon on the page that will switch the ascendingOrder variable from true to false or vice versa, this enables the user to sort the items in descending or ascending date order.  
 
If I click on the Filter function in the formula bar, the preview illustrates there are items matching the filter condition, refer screenshot 1. 
Screenshot 1
 
 
What baffles me is if I change the SortByColumns in the gallery items formula from 'EventDate' to 'Created', the gallery works, items are displayed, albeit in the Created date order, rather than the EventDate order.  Any idea on what's causing this issue for EventDate/SortByColumns?  Thanks.  
Categories:
I have the same question (0)
  • David_MA Profile Picture
    13,889 Super User 2026 Season 1 on at
    I would suggest that you post your question in the Power Apps forum rather than the Power Automate forum as you will have better luck in getting it answered. You can get to the Power Apps forums at Microsoft Power Platform Community Forum Thread

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard