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 / How to hide items in a...
Power Apps
Answered

How to hide items in a Gallery with a label countif function as a condition?

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I need to hide some items in a gallery to create a menu selection. De items in the gallery have a diferent elements, one of them it's a Label that contain in his Text a formula CointIF(). So, when this Label.Text  = 0, the item will be hiden, and show the items that contains any other number.

 

I upload a photo of muy Gallery.

 

MenuGallery.png

 

Thank for yur help.

 

CCHH

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    You would need to filter the gallery items to keep those from appearing.

    What i might recommend is to Collect the items in a collection and AddColumns to the collection that have the CountIf formula.

    Then on your Gallery - Filter(dataSource, CountColumn>0)

     

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

    Hi @ClementeChH,

     

    You could just use filter function to extract items that the number field are not equal to 0.

    My app is based on SharePoint list and there is a Number column, I will use the following code to show items that number are not equal to 0:

    Filter(List11,Number<>0)

    Please take it for a reference.

    1.PNG

     

    Best regards,

    Mabel

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard