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 / Hiding Blank Records i...
Power Apps
Unanswered

Hiding Blank Records in Gallery

(0) ShareShare
ReportReport
Posted on by 197

 

I have a gallery with a datasource FavMix which is an Excel table on OneDrive. There are several blank rows in this table which are showing up as blank records within the gallery that I would like to hide. One of the column names is MixName I have the following formula within the Visible property of the gallery:

 

Filter(FavMix,!IsBlank(MixName))

I have tried several different ways of doing this filter based on other posts with similar issues but continue to get errors.

 

The error I am getting is: Expected Boolean value.

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    Hi @AGS94 

     

    Screenshot of error and where is it ocurring

     

     

  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at

    @AGS94 

    I think you'll want to put your code in the Items property of the gallery instead.

     

    Filter(FavMix,!IsBlank(MixName))

     

    The Visible property of the gallery makes the entire gallery Visible or Not Visible.  It accepts only true or false as an argument.  You are getting an error because the Filter() function returns a table. 

     

    The Items property controls what records are shown in the gallery.  It accept Table values as an argument.  By using the Filter() function here you are only showing rows that meet the criteria you defined.

     

    You have the right idea, you're just using the incorrect property to try to achieve it.

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard