cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

How to filter base on text box, dropdown and date picker?

I have a gallery filtered by current user, text box (search), dropdown list with values from a sharepoint column, and date picker. 

 

I am not sure how to plug all filters so that by default shows all data for current user and either search or dropdown or date picker date. 

 

Can you please help?

 

Sort(Filter('Travel Requests List','Primary Contact' = varPrimaryContact.Email Or 'Secondary Contact' = varSecondaryContact.Email , StartsWith('Employee Name', TextInput1.Text )  Or 'Ship Code' = Dropdown1.Selected.Result ) ,'Date of Travel',Ascending)
1 ACCEPTED SOLUTION

Accepted Solutions
Community Champion
Community Champion

Re: How to filter base on text box, dropdown and date picker?

Hi @andygp25 ,

Sorry - missed the date picker - a bit more manipulation required here

Sort(
   Filter(
      'Travel Requests List',
      ( 
         'Primary Contact' = varPrimaryContact.Email ||
         'Secondary Contact' = varSecondaryContact.Email
      ), 
      StartsWith('Employee Name', TextInput1.Text),
      'Ship Code' = Dropdown1.Selected.Result,
      DateDiff(
         YourDatePickerName.SelectedDate,
         'Date of Travel',
         Days
      )=0
   ),
   'Date of Travel',
   Ascending
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  

View solution in original post

3 REPLIES 3
Highlighted
Community Champion
Community Champion

Re: How to filter base on text box, dropdown and date picker?

Hi @andygp25 ,

Depends a bit on what and/or combinations you want, but the below should take a list matching either of the two emails and then filter by a combination of the other two controls.

Sort(
   Filter(
      'Travel Requests List',
      ( 
         'Primary Contact' = varPrimaryContact.Email ||
         'Secondary Contact' = varSecondaryContact.Email
      ), 
      StartsWith('Employee Name', TextInput1.Text),
      'Ship Code' = Dropdown1.Selected.Result 
   ),
   'Date of Travel',
   Ascending
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Highlighted
Helper II
Helper II

Re: How to filter base on text box, dropdown and date picker?

How do I add a datepicker value in the StartsWith?

Community Champion
Community Champion

Re: How to filter base on text box, dropdown and date picker?

Hi @andygp25 ,

Sorry - missed the date picker - a bit more manipulation required here

Sort(
   Filter(
      'Travel Requests List',
      ( 
         'Primary Contact' = varPrimaryContact.Email ||
         'Secondary Contact' = varSecondaryContact.Email
      ), 
      StartsWith('Employee Name', TextInput1.Text),
      'Ship Code' = Dropdown1.Selected.Result,
      DateDiff(
         YourDatePickerName.SelectedDate,
         'Date of Travel',
         Days
      )=0
   ),
   'Date of Travel',
   Ascending
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,945)