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 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
    12,953 Super User 2025 Season 2 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard