cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver I
Resolver I

Hiding Blank Records in Gallery

 

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@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."

View solution in original post

2 REPLIES 2
Dual Super User II
Dual Super User II

Hi @AGS94 

 

Screenshot of error and where is it ocurring

 

 

Super User III
Super User III

@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."

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,931)