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 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
    153,084 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
    153,084 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
    153,084 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

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