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 Apps
Unanswered

Search in dropdown

(0) ShareShare
ReportReport
Posted on by 102

Hello!

 

The checkbox is in a gallery that collects it's data from a collection, column Status is the only one that didn't collect data from a collection.

 

I make this dropdown, how can I make to see:

  1. - all the solved data when selected "Solved"
  2. - all the unsolved data when selected "Unsolved"
  3. -all data when nothing is selected ?

Alice23_1-1630410089711.png

Thanks

 

 

 

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    If(DropDown1.Selected.Value="Solved",

    Filter(ListName,CheckBox1.Value=true),

    If(DropDown1.Selected.Value="UnSolved",

    Filter(ListName,CheckBox1.Value=false),

    If(DropDown1.Selected.Value=Blank(),

    ListName)))

  • Alice23 Profile Picture
    102 on at

    @zmansuri  what I am supposed to replace ListName with? 

     

    This is the code that I have in gallery:

    With(
     {
     wList:
     If(
     IsBlank(TextInput_lista_4.Text),
     Sort(
     Cerere, 
     Titlul || Data_crearii_cererii || Adresa || Destinatar || Numarul_de_mijloace_de_transport_solicitate, 
     Ascending
     ), 
     Search(
     Cerere,
     TextInput_lista_4.Text, 
     ("Titlul"),
     ("Adresa"), 
     ("Destinatar"),
     ("Numarul_de_mijloace_de_transport_solicitate")
     )
     )
     },
    
    
     If(Dropdown4_2.Selected.Value="Solved",
    
    Filter(ListName ,Checkbox3_6.Value=true),
    
    If(Dropdown4_2.Selected.Value="UnSolved",
    
    Filter(ListName ,Checkbox3_6.Value=false),
    
    If(Dropdown4_2.Selected.Value=Blank(),
    
    ListName))), 
    
    
    
    
    
    
    
    
     ForAll(
     Sequence(CountRows(wList)),
     Patch(
     Last(
     FirstN(
     wList,
     Value
     )
     ),
     {RowNo: Value}
     )
     )
    )

     

  • Krishna_R Profile Picture
    525 on at

    Hi @Alice23 

    you can give a try with switch as shown below in the gallery items property:

     

     

    switch(Dropdown.selected.value,
    "Solved",Filter(Gallery1.Allitems,checbox.value),
    "UnSolved",Filter(Gallery1.Allitems,!checbox.value),Your Default DataSource Here))

     

  • Alice23 Profile Picture
    102 on at

    @Krishna_R

     

    'Your Default DataSource Here ' should be replaced with the name of collection I made the gallery? If yes, it's does work, I have errors

    Alice23_0-1630412808045.pngAlice23_1-1630412834768.png

     

     

  • Alice23 Profile Picture
    102 on at

    @Krishna_R

     

    'Your Default DataSource Here ' should be replaced with the name of collection I made the gallery? If yes, it's does work, I have errors

    Alice23_0-1630412808045.pngAlice23_1-1630412834768.png

     

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard