Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Combobox filter in powerapps : how to select nothing if no selection

Like (1) ShareShare
ReportReport
Posted on 20 Sep 2024 12:51:20 by 19
Hi everyone
 
i have a Galary with a ComboBox  as a filter and i have different user
 
when the user did not select any selection in combobox he will see all the items in the gallery 
my question here is how can make the filter work as if no selection in combobox do not show any item in gallery
 
the reason i need this because have a specific combobox category for every user and i don't all user see the whole items
  • CU27081315-0 Profile Picture
    CU27081315-0 19 on 23 Sep 2024 at 07:27:23
    Combobox filter in powerapps : how to select nothing if no selection
    Thanks That's work perfect 
  • Verified answer
    FLMike Profile Picture
    FLMike 27,286 on 20 Sep 2024 at 14:59:45
    Combobox filter in powerapps : how to select nothing if no selection
    Hi
     
    In your filter, you need to either Start with an If to check if the combobox is empty and then do thing like

    If(!IsBlank(ComboBox.Selected) if its a single select
     
    or
     
    If(!IsEmpty(ComboBox.SelectedItems) if its multi

    Or you need to And it to your filter statement

    !IsBlank(ComboBox.Selected) And XYZ = 3 and ABC = "Test" or whatever your filter is

    This way those have to have a value or your filter won't return anything, just make sure to And it to the rest off your stuff
     
    Please in the future share your Code and names of the combox etc 
     
     
    Please Mark as the answer please and maybe a like

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

End of Year Newsletter…

End of Year Community Newsletter…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #11 New Opportunities…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,654

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,440

Leaderboard
Loading started
Loading complete