cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Srinath
Helper III
Helper III

Working with multiple filter in Power Apps

Hi Guys,

 

I am working on a power apps application where i have 3 filters on top of the screen. (2 Combo boxes and one one datepicker)

I have a gallery below it which should ideally filter according the options selected from the above filters. I want it to be more like Power BI slicer and the gallery below also to behave the same way a table visual will do in Power BI.

 

If i choose option A from combo box 1, then options in combo box 2 should be changing accordingly and vice versa.---- This is working fine.

The gallery content should display only those details which satisfy the conditions from all 3 filters. -- This i'm not too sure how to do.

 

Please find attached a screenshot for reference.

 

How do i achieve this. Kindly help me out. 

 

Regards

 

Sri

1 REPLY 1
gabibalaban
Super User II
Super User II

Hi @Srinath ,

On Items property of the gallery use filter() function, this should solve your problem:

Filter(galleryDatasource,
         BoENumberColumn=ComboBox1.Selected.Value &&
         MaterialColumn=Combobox2.Selected.Value &&
         StartDate <=StartDatePicker.SelectedDate &&
        EndDate >= EndDatePicker.SelectedDate
)

Please note that this formula is at the concept level and may vary depending on the data source used and needs to be adapt to your specific app.

 

Hope it helps. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (27,599)