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 / Dropdown Filter in Gal...
Power Apps
Suggested Answer

Dropdown Filter in Gallery not working

(1) ShareShare
ReportReport
Posted on by 203
Hi community 
 
Unfortunately, the filters in the corresponding dropdowns do not work as soon as I make a selection. The search via the text input works.
 
 
 
Filter(Demo_Vertragsmanagement;
  StartsWith(
    Titel;
    TextInput1.Text
  ) || StartsWith('Verantwortlicher Mitarbeiter'.DisplayName;
  TextInput1.Text
  ) && ( Lieferant.Value = Dropdown1.Selected.Value || Dropdown1.Selected.Value = Blank() )
   && ( Status.Value = Dropdown1_1.Selected.Value || Dropdown1_1.Selected.Value = Blank() )
   && ( VertragArt.Value = Dropdown1_2.Selected.Value || Dropdown1_2.Selected.Value = Blank() )
   
   
   )  
 
 
I am grateful for any help or tips.
 
Greetings 
 
Categories:
I have the same question (0)
  • gulshankhurana Profile Picture
    1,397 Moderator on at
    Hi
     
    Sorry, marked your post as spam by mistake as I was marking hundreds of spam posts as spam so my fingers kinda went mechanical and I mistakenly marked your post as spam too. So sorry. Please could you post your query again in a new post so that it could be looked into and answered by the community members.
     
    Kind regards 
    Gulshan 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at
    Hi,
     
    Based on what I see, you forgot to add ( ) around the to Starts With I added them in Mine, you had the II but you want that Or to be one thing, versus the &&'s.
     
    Filter(Demo_Vertragsmanagement;
      (StartsWith(
        Titel;
        TextInput1.Text
      ) || StartsWith('Verantwortlicher Mitarbeiter'.DisplayName;
      TextInput1.Text
      )) && ( Lieferant.Value = Dropdown1.Selected.Value || Dropdown1.Selected.Value = Blank() )
       && ( Status.Value = Dropdown1_1.Selected.Value || Dropdown1_1.Selected.Value = Blank() )
       && ( VertragArt.Value = Dropdown1_2.Selected.Value || Dropdown1_2.Selected.Value = Blank() )
       
       
       )  
     
  • bob_taylor_pp Profile Picture
    203 on at
    I have adjusted the formula. Unfortunately, it still does not work. How would you build the formula? To use all relevant controls. TextBox, Dropdown, etc...

    Filter(
    'Demo_Vertragsmanagement',
    StartsWith(Titel, TextInput1.Text) &&
    (Dropdown1.Selected.Value = Blank() || Lieferant.Value = Dropdown1.Selected.Value) &&
    (Dropdown1_1.Selected.Value = Blank() || Status.Value = Dropdown1_1.Selected.Value) &&
    (Dropdown1_2.Selected.Value = Blank() || Status.Value = Dropdown1_2.Selected.Value)
    )
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi Bob, 

    You can try splitting the search and dropdown filtering into two separate activities. Collect the records based on the search text in the textinput control then use this collection as the Data Source for your Gallery. 

    OnChange property of your TextInput1 control - 
    ClearCollect(Records, ForAll(Distinct(Filter(Split(TextInput1.Text," "), Value <> ""), Value),
    Search(Demo_Vertragsmanagement , Value, Titel)))
     
    Items property of the gallery
    Filter(Records, (Dropdown1.Selected.Value = Blank() || Lieferant.Value = Dropdown1.Selected.Value) &&
    (Dropdown1_1.Selected.Value = Blank() || Status.Value = Dropdown1_1.Selected.Value) &&
    (Dropdown1_2.Selected.Value = Blank() || Status.Value = Dropdown1_2.Selected.Value)
    )
    I have not tried this but do let me know if you face any issues. Thanks. 

    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
     
  • Suggested answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at
    hey
     
    can u also try this:
    Filter(
      Demo_Vertragsmanagement,
      (StartsWith(Titel, TextInput1.Text) ||
       StartsWith('Verantwortlicher Mitarbeiter', TextInput1.Text)),
      (Dropdown1.Selected.Value = Blank() || Lieferant.Value = Dropdown1.Selected.Value),
      (Dropdown1_1.Selected.Value = Blank() || Status.Value = Dropdown1_1.Selected.Value),
      (Dropdown1_2.Selected.Value = Blank() || VertragArt.Value = Dropdown1_2.Selected.Value)
    )
    
    please mark as verified if it helped

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard