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 by 4 dr...
Power Apps
Answered

Filter Gallery by 4 dropdowns/Text Box with &&& combined

(0) ShareShare
ReportReport
Posted on by 19

Hello all,

 

I have an connection to a database and I want to Filter by:

  • 2 text boxes
  • 1 radio
  • 1 drop box

I am looking not for an "OR" filter I am looking for and AND/&& filter like:

Screenshot 2024-06-28 141819.jpg

 

 

SortByColumns(
 If(
 IsBlank(ProjectNo.Text);
 Dokumentenverwaltung;
 If(
 IsBlank(DokuPrefixDrop.SelectedText.Value);
 If(
 IsBlank(DocumentNo.Text);
 If(
 IsBlank(Radio1.Selected.Value);
 Dokumentenverwaltung;
 Filter(
 Dokumentenverwaltung;
 ProjectNo.Text = Auftragsnummer
 )
 );
 If(
 IsBlank(Radio1.Selected.Value);
 Filter(
 Dokumentenverwaltung;
 DocumentNo.Text in DokuNummer
 );
 Filter(
 Dokumentenverwaltung;
 ProjectNo.Text = Auftragsnummer

 

 

 

 

Is there an easy fix ?

 

Please help

Categories:
I have the same question (0)
  • Verified answer
    anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @RSST-SOR ,

    To achieve the desired AND filter functionality, you can use nested If statements to check the conditions for each filter. If all conditions are met, the data should be filtered accordingly. If any of the conditions are blank, it should not filter based on that condition

     

    SortByColumns(
     Filter(
     Dokumentenverwaltung,
     (IsBlank(ProjectNo.Text) || ProjectNo.Text = Auftragsnummer) &&
     (IsBlank(DokuPrefixDrop.SelectedText.Value) || DokuPrefixDrop.SelectedText.Value in DokuPrefix) &&
     (IsBlank(DocumentNo.Text) || DocumentNo.Text in DokuNummer) &&
     (IsBlank(Radio1.Selected.Value) || Radio1.Selected.Value = SomeField) // Replace SomeField with the appropriate field to compare with the radio button value
     ),
     "SomeColumn" // Replace SomeColumn with the column you want to sort by
    )

     

  • RSST-SOR Profile Picture
    19 on at

    THX - I have done the required modifications and it works brilliant

  • RSST-SOR Profile Picture
    19 on at

    In one Dropdown I filter Distinct the items with

     

    Distinct(
     Filter(
     DRAReport;
     DD_ProjectNoClient_II.Selected.Value in KundenProjektnummer
     );
     Gefahrenursprung
    )

     

    But it is not working proper due to there are to less results - only 3 and there should be 9

     

    Whats wrong?

     

    Please help

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

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard