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 Platform Community / Forums / Power Apps / Filter gallery based o...
Power Apps
Answered

Filter gallery based on ComboBox choices

(0) ShareShare
ReportReport
Posted on by 361

I have a gallery to make a filter, but I don't know how to make the second filter, the first one already worked.

Joaoandrebs_0-1685544166753.png

 

I have two options, "Turno 1" or "Turno 2" to filter in ComboBox2.

 

If the user selects Turno 1, it will display the records that have "Ambos" - Column - and "1" in the column.

 

Ambos would equal Both.

 

Now if the user selects Turno 2, the gallery will display the records that have "Ambos" and "2". How can I do it?

Joaoandrebs_1-1685544184992.png

Joaoandrebs_2-1685544238144.png

Filter(
 ListaEditavelOperacoes;
 Len(ComboBox1.Selected.Value) = 0 || Time = ComboBox1.Selected.Value;
 (ComboBox2.Selected.Value) = "Turno 2" & Turno = "2" && "Ambos";
 (ComboBox2.Selected.Value) = "Turno 1" & Turno = "1" && "Ambos")

##my code ...

 

Categories:
I have the same question (0)
  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    @Joaoandrebs 

     

    please use this code . i edited code in notepad so i did not check the syntax.

    Filter(
     ListaEditavelOperacoes;
     Len(ComboBox1.Selected.Value) = 0 || Time = ComboBox1.Selected.Value;
     if(ComboBox2.Selected.Value= "Turno 2"; Turno = "2" ||Turno ="Ambos";ComboBox2.Selected.Value= "Turno 2"; Turno = "1" ||Turno ="Ambos")
  • Joaoandrebs Profile Picture
    361 on at

    @developerAJ thanks, that was the logic, I had to adapt some things but it worked.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard