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 / Do NOT show certain it...
Power Apps
Answered

Do NOT show certain items in Gallery from SharePoint

(0) ShareShare
ReportReport
Posted on by 2

Hello

I managed to build this app by watching countless YouTube videos. However my skills are limited and I’m trying to do the following. Really could use your help.

 

I need to add code that will NOT display specific items in the gallery.

 

  1. The first item is a text field from SharePoint that will always be Green OK. If Green OK on SharePoint do not display in the Gallery.
  2. Status is a choice field on SharePoint.  If Status is CLOSED do not display in the Gallery.

I’ve tried several ways but I crash the gallery. Any help is truly appreciated.

 

Gallery ITEMS code is as follows. This currently works to generate the gallery (see attachment)

 

 

Search (

 

Filter ('ESW Repair Tracker ETT',

 

(Ownership.Value = cbRepairFilter.Selected.Value Or If(cbRepairFilter.Selected.Value = "- Select -",

true,false)) 

 

And (Status.Value = cbStatusFilter.Selected.Value Or If(cbStatusFilter.Selected.Value = "- Select -",true,false))),

 

 

txtNameFilter.Text,

    "Title"

)

Gallery.JPG
Sharepoint.JPG
Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @mchaney 

    Set the Visible property of your Datacard in your form to resolve this.

    Example, on your Status Datacard Visible property:

    ThisItem.Status.Value <> "Closed"

     

    I hope this is helpful for you.

  • mchaney Profile Picture
    2 on at

    Thank You Randy!   It never crossed my mind to use the visible property. Worked Great. 

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @mchaney ,

     

    Glad to see your problem have been solved !

    You could mark @RandyHayes 's reply as a solution to close this case.

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard