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 / Filter with Sort retur...
Power Apps
Unanswered

Filter with Sort returning incorrect data from SharePoint list

(0) ShareShare
ReportReport
Posted on by 406

Users of an app I developed some time ago have recently reported that data is missing from a gallery view. On investigation I have found that the gallery's Items property seems to be the problem. The property was set to:

Sort(Filter('Forms processing', Outcome.Value = "Waiting correction" ), Submission)

The Forms processing table is a SharePoint list, Outcome is a Choice column, and Submission is a date column. The gallery is returning no data even through one record matches the Filter criterion. If I remove the Sort element in the property, the matching record is shown:

Filter('Forms processing', Outcome.Value = "Waiting correction" )

This was working fine until recently and I have recently encountered a similar problem in Power Automate where sorting on a date field caused an incorrect data set to be returned. Has something broken in SharePoint?

 

Categories:
I have the same question (0)
  • Shravyashree_01 Profile Picture
    174 Moderator on at

    Hi @biterbit  ,

    Sort(Filter('Forms processing', Outcome.Value = "Waiting correction" ), Submission,SortOrder.Descending))

     

    Could you please try the above.

     

    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.

  • biterbit Profile Picture
    406 on at

    @Shravyashree_01 Thanks for your quick response. I tried adding the SortOrder parameter, but this too returned no data.

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