cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

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 (8,980)