cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Search by Date and Text

Hello,

 

HELP! I would like to add the capability to search for a date contained in a datepicker.

 

When I added it, the gallery went blank.

 

SortByColumns(Search('1022 Operations Dashboard',TextSearchBox1.Text & DataCard21.SelectedDate,"WorkerName","JobOrderNumber","Title","JobStartDate"),"JobStartDate",Descending)

24 REPLIES 24
Anonymous
Not applicable

Re: Search by Date and Text

Hi @Anonymous

 

You need something like this:

 

SortByColumns(
    Search(
        Filter(
            '1022 Operations Dashboard',
            JobStartDate = DataCard21.SelectedDate
        ),
        TextSearchBox1.Text,
        "WorkerName",
"JobOrderNumber",
"Title" ), "JobStartDate", Descending )

 

 

Sienna
Level 10

Re: Search by Date and Text

Insert filter inside search. Search in date filtered table

SortByColumns(Search(Filter('1022 Operations Dashboard', DateColumnName=DataCard21.SelectedDate) ,TextSearchBox1.Text,"WorkerName","JobOrderNumber","Title","JobStartDate"),"JobStartDate",Descending)
Anonymous
Not applicable

Re: Search by Date and Text

Hi @Anonymous, @Sienna

 

I have tried inserting filter before with the same result. Smiley Sad

Sienna
Level 10

Re: Search by Date and Text

Ok then try it again and send a screenshot of that code. If it won’t work then I would guess there might be problem with date formating in your datasource.
Sienna
Level 10

Re: Search by Date and Text

Also screenshot of the gallery result
Anonymous
Not applicable

Re: Search by Date and Text

Hi @Sienna

 

I just noticed that Data  says No Data but when I select to link it it is there. Hmmm? I'll send screen shot 

Anonymous
Not applicable

Re: Search by Date and Text

Capture2.PNGCapture.PNG

Sienna
Level 10

Re: Search by Date and Text

What the blue warning icon says when you hover above it in the left top corner of your gallery
Anonymous
Not applicable

Re: Search by Date and Text

Capture3.png

Helpful resources

Announcements
SecondImage

Join our Live PowerApps Webinar

Tomorrow, September 24st at 10am PDT

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 318 members 5,076 guests
Please welcome our newest community members: