cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gabbey
Level: Powered On

Have issue with gallery, filter and datepicker.

Hello,

Can someone help me to do multi filtering/search with text input and date picker.

I have 1 Text input called: TextSearch

I have 1 Date picker called: DateSearch

What i want is to be able to combine both in searches, to only view specific date in DateSearch and be able to Search or filter out entrys "Datacards".

I tried with a ComboBox but thats Not something that i want to use.

My sharepoint list is [@'My_SP_List']

My colums in splist is:

At the moment I'm using the filter below but it only does the "StartsWith" and i would like to be able to search with different criterias and not only one column:

Filter([@'My_SP_List'],StartsWith('Reporting user?'.Email,TextSearch.Text))

 

1 REPLY 1
Super User
Super User

Re: Have issue with gallery, filter and datepicker.

Hey @Gabbey, try this:

Filter(
    'My_SP_List',
    StartsWith(
        'Reporting user?'.Email,
        TextSearch.Text
    ),
    (DateColumn = DateSearch.SelectedDate || IsBlank(DateSearch.SelectedDate))
)


The IsBlank part checks if the date picker is blank and returns true. What this does is skip the date filter part if that is the case, only using the StartsWith portion of the filter. You could also simplify it (if you will always have a date in the date picker), like so:

 

Filter(
    'My_SP_List',
    StartsWith(
        'Reporting user?'.Email,
        TextSearch.Text
    ),
    DateColumn = DateSearch.SelectedDate
)


Please let me know if that doesn't work or if I can try to help out further!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,863)