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 / Filter a Gallery based...
Power Apps
Answered

Filter a Gallery based upon a True/False Choice Column on a SP list

(0) ShareShare
ReportReport
Posted on by 112

I have a gallery on my app which I want to be filtered to only show those candidates that are marked as true or blank on a VIAble column within my SP list. What do I need to input into the items property of my gallery to only show those that are marked as true or as a blank on that column? The user will never need to see those marked as false. 

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi  @kat7777777 


    The condition VIAble = true || IsBlank(VIAble) filters the records where the VIAble column is either true or blank. The || operator represents the logical OR condition. This ensures that only the records marked as true or blank in the VIAble column will be displayed in the gallery.


    Make sure to update the 'VIAble' in the formula with the actual column name in your SharePoint list.

     

    Filter( 'MDMA Suppliers', 'VIAble' = true || IsBlank('VIAble') ) 


    Thanks!
     
    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • kat7777777 Profile Picture
    112 on at

    This is what I currently have input: Filter([@'Journey Resumes'], Or(IsBlank(Dropdown_Major.Selected),Major2=Dropdown_Major.Selected.Value)) 

     

    I have a drop down as well for my gallery to select the different majors for different candidates. I tried placing that code into the current that I have and received an error message. Any tips?

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Could you provide more context about the error message you received? This will help me better understand the issue

  • kat7777777 Profile Picture
    112 on at

    It said " = true || IsBlank isn't recognized"

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    What is the data type of your VIAble column ?

  • kat7777777 Profile Picture
    112 on at

    It is a choice column on a SharePoint list. It only has

    two choices which are true or false. 

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    @kat7777777  Try this

     

    Filter( 
    'MDMA Suppliers',
    'VIAble'.Value in true || IsBlank('VIAble'.Value)
    ) 

    (Or)

     

    Filter( 
    'MDMA Suppliers',
    'VIAble'.Value in true || IsBlank('VIAble')
    ) 


    Thanks! 

  • kat7777777 Profile Picture
    112 on at

    It is still giving me an error message that says "Invalid number of arguments, received 1 expected 2 or more." Any suggestions?

  • kat7777777 Profile Picture
    112 on at

    This is what I have currently. The first part is where the error is.

     

     

    Filter.PNG

     

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    I think in your given formula you missed comma in-between data source and column, so consider adding the comma. And try this formula.

     

    Filter(
    [@Journey Resumes],
    'VIAble'.Value = true || IsBlank('VIAble'.Value), Or (IsBlank(Dropdown_Major_1.Selected),
    Major2 = Dropdown_Major_1.Selected.Value))

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard