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 / Limit Gallery View by ...
Power Apps
Answered

Limit Gallery View by Filter or Search?

(0) ShareShare
ReportReport
Posted on by 93

New Power App builder here. I'm attempting to create a document approval app. In this I would like to have multiple galleries that only show documents that are in a stage or approval. I created a drop down list with the following choices in SharePoint:
Power App 1.png

I would like one gallery to only show 'First Approval', then another for 'Second Approval', etc. When I attempted to create the filter, it failed:
Power App 3.png

I created a dummy column that I inserted #s in to see if I had the write line of thought. This worked.

Power App 2.png

However I need it to function on the drop down menu for functionality, as I don't want the users to have to type in the selection. I'm assuming that I am not utilizing the Filter function correctly with the drop down menu. If Search( is a better option, that is fine as well! I don't need the galleries to be selectable, but only show the documents that have a specific Approval status. The columns is called 'ApprovalStatus'. In SharePoint its actual name is: Approval_x0020_Status. I'm not sure if that would effect the line of code.

 

BONUS!: Can I sort the output by dates, oldest at the top, newest at the bottom. The column is the default 'Created'.

Thank you!

Categories:
I have the same question (0)
  • rsaikrishna Profile Picture
    3,703 on at

    @A-IT 

     

    Filter('Power App Test','Approval Status'="First Approval")

     

    Place double quotes before and after First Approval.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • A-IT Profile Picture
    93 on at

    Power App 4.png

    I forgot to mention I tried this as well, but it still gives an error. I believe it may be due to the dropdown list? 

  • A-IT Profile Picture
    93 on at

    I was hoping this would be an easy solve 😕

  • Verified answer
    A-IT Profile Picture
    93 on at

    Alright, I figured it out!

     

    In my case the code is: Filter('Power App Test','Approval Status'.Value="First Approval")

    So, if you want to code a gallery to only display outputs based on a value (even from a dropdown menu):

    Filter( 'List Name' , 'Column Name'.Value = "Filter") 

  • Waxy Profile Picture
    26 on at
    Would anyone be able to helpful in answering why discrepancies surface where the view may have 243 records and when the Filter expression is used for the gallery in powerapps, the gallery has a different total?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard