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 / Filter Collection Blan...
Power Apps
Answered

Filter Collection Blank Text input not showing all items

(0) ShareShare
ReportReport
Posted on by 57

Hello,

 

I am having trouble figuring out the syntax for my problem. I have figured out the error and why it is happening, but I cannot figure out the correct way to get around it. 

 

APP:  Users type information into fields and save in sharepoint list. Later go to an edit item page, where a gallery shows a collection of the sharepoint list and can be filtered using textinput fields. There are 6 possible filter fields. 

 

PROBLEM: User leaves field blank at "add item" stage. When navigating to edit page, item with blank field does not show on gallery. 

Example: Latest item ID number should be 534 but does not show because SLNumber field was left blank, intentionally. SLNumber is a filter textinput field. 

ASSUMPTION: By process of elimination, I found that this is caused only by the "Filter(Collection...." function. I think I need some sort of IF function. (If SLNumber is blank then do not filter using SLNumtextinput box)

Can anyone help me with the correct wording? 

jbaggett_0-1602082762196.png

 



Categories:
I have the same question (0)
  • Verified answer
    SkiDK Profile Picture
    1,016 on at

    Hi @jbaggett 

    It's basically as you're assuming. By using Or you can choose whether to filter on blank value or not. As below, if the value is blank, then it will not filter, and if the value is not blank, the filtering part will do its job.

     

    Filter(
     ColEng,
     Or(
     IsBlank(SLnumInput_1),
     SLnumInput_1.Text in SLNumber
     ),
     Or(
     ...
     ),
     ...
    )

     

     Hope this helps.

  • jbaggett Profile Picture
    57 on at

    Thanks for the quick response! That worked perfectly. I don't think I would have ever figured that out. 

     

    My actual formula was slightly different since it was the collection data that was empty and not he textinput box.

     

    Filter(
     ColEng,
     Or(
     IsBlank(SLNumber),
     SLnumInput_1.Text in SLNumber
     )
    )

     

    But the theory behind it was the same. Thanks again!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard