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 / I have a filter on Pow...
Power Apps
Answered

I have a filter on PowerApps in the custom gallery

(0) ShareShare
ReportReport
Posted on by

I have a filter in the powerapps gallery...

 

I have 3 dropdowns...

 

The first is called: "Regional", the second: "Grupo" and the third: "Litragem"...

 


So ... The first one if it is blank shows all the data in the gallery, if it selects any value, it shows the data and the second filter, and so it shows the values ​​of the first and second filter, which I haven't been able to do so far is when the third filter is activated ...

 

The third filter does not show exactly the results of the 3 dropdowns ....


I want it to show the values ​​of exactly the 3 filters if they are activated, or if not the two filters, or just the first filter.

 

My database is CDS

 

My code:

 

If(IsBlank(dropdownRegional)&&IsBlank(dropdownGrupo);Metas;Filter(Metas; Regional = dropdownRegional.Selected.Result && Grupo = dropdownGrupo.Selected.Result || Litragem = dropdownLitragem.Selected.Result))

 

Categories:
I have the same question (0)
  • Verified answer
    Vijay Tailor Profile Picture
    2,961 on at

    Hi @Gorilla_8 ,

    For the below mentioned Issue,

    you can try with the below approach.

    1st Approach - 

    Add 3 Toggle and set the Default value based on condition like below

    if(IsBlank(Dropdown2.Selected.Value),true,false)

    Do the Same for all 3.

    Hide them.

    Now Filter the Data based on Toggle Value.
    Like First Toggle always true so Show All the Data.

    if(Toggle1.Value=true && Togle2.Value=true && Togle2.Value=true,Filter(Filter code goes here),Toggle1.Value=true && Togle2.Value=true,Filter(Filter code for 2 selected Drop Down goes here),DisplayAllData)


    Another Approach is you can implement all possible combination Condition for Selected DropDown.

    Thanks,


    Vijay

  • Gorilla_8 Profile Picture
    on at

    @VijayTailor 

     

    I am impressed with your logic, it worked correctly here!

     

    Thank you very much!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard