web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : V7xiQM8wu2TuwAd4V5GHUU
Power Apps - Building Power Apps
Answered

Return All Gallery Items Where Dropdown Filter Is Blank

Like (0) ShareShare
ReportReport
Posted on 20 Jun 2019 17:22:59 by 347

Good morning, everyone!

 

I have a dropdown that filters my gallery item when selected. For when there's something selected it works, but when it's blank, I'd like for it to return all the values. I think my formula is solid but the records returning are all empty.

 

I have a collection called DetailList and within my dropdown Items Property I am searching for distinct AcctUnit:

Sort(Distinct(Filter(DetailList, GM = _FindGM), AcctUnit), Ascending)

which gives me the right results:
right_dropdown_results.png
In my gallery in the Items Property I have this to filter and return the records:

Filter(DetailList, GM = _FindGM, If(!IsBlank(Dropdown1_1.SelectedText.Value), AcctUnit = Dropdown1_1.SelectedText.Value))

If I choose let's say 1413900 I return the all the filtered items:
returned_right_items.png
but when I don't choose anything I get a blank gallery:
blank_gallery.png

Any help would be greatly appreciated!

Categories:
I have the same question (0)
  • FacundoGorla Profile Picture
    293 on 02 Jul 2020 at 13:40:59
    Re: Return All Gallery Items Where Dropdown Filter Is Blank

    I used the same logic but it has a delegation problem on SP lists. Any idea on how to solve it?

  • hnguy71 Profile Picture
    347 on 20 Jun 2019 at 18:55:50
    Re: Return All Gallery Items Where Dropdown Filter Is Blank

    Omg thank you so much! Much appreciated! @RandyHayes I keep on learning new things everyday thanks to you!

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 20 Jun 2019 at 17:43:38
    Re: Return All Gallery Items Where Dropdown Filter Is Blank

    @hnguy71 

    Try to adjust your Formula as follows:

    Filter(DetailList, 
    GM = _FindGM &&
    If(!IsBlank(Dropdown1_1.SelectedText.Value), AcctUnit = Dropdown1_1.SelectedText.Value, true)
    )

    You want the result of your If statement to return a true if the dropdown is blank so that the other records are matched.

     

    I hope this is helpful for you.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete