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 / Filter gallery based o...
Power Apps
Answered

Filter gallery based on choice column Value

(0) ShareShare
ReportReport
Posted on by 102

Hi there

 

I have 2 galleries pulling data from a sharepoint library data source. One gallery I want to only display Policy which is one of the choices from the sharepoint library column 'Thetypeofdoc' column. and the other gallery i want to show SOP, Forms and Guidance Documents which are the other options within the 'thetypeofdoc' choice column.

Anyone know how i can filter a gallery to only show specific choice options?

 

I thought using below will work but does not work as 

 

Filter('Published Policies',Thetypeofdoc.Value="Policy") 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @BianceBee ,

    What type of field is Thetypeofdoc ? If it is Text you do not need .Value after it. 

  • BianceBee Profile Picture
    102 on at

    Hi @WarrenBelz it is a choice column

  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    Hi @BianceBee ,

    Assuming it is a single choice column, what result do you get as your code should work.

  • BianceBee Profile Picture
    102 on at

    Thanks for the prompt reply @WarrenBelz . Getting name not recognized error. Below are the columns and the type. The one i am wanting to filter is the choice column with the value Policy.

    BianceBee_1-1698626459495.png

     

    BianceBee_0-1698626398288.png

     

  • Verified answer
    WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at

    @BianceBee ,

    Missing the Capitals

    Filter(
     'Published Policies',
     TheTypeofDoc.Value = "Policy"
    ) 

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • BianceBee Profile Picture
    102 on at

    OMG thanks didnt realise it wasn't capitals. Sorry to have wasted your time 😞

  • BianceBee Profile Picture
    102 on at

    OMG didnt even realise it wasn't in capitals. Sorry to have wasted your time 😞

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard