Skip to main content

Notifications

Power Apps - Power Apps Pro Dev & ISV
Unanswered

gallery filter starts with does not work with a date field but does work text field

(1) ShareShare
ReportReport
Posted on by 347
 
I have a gallery browse screen where I offer the option for the user to type in a search box to filter down by date or by pn.
The shareoint list is 3000 records
The filter starts with by PN works great
Same list the filter with by Mold date fails only returning some of the ones that fit the date
IDEAS?
 
If(searchmold="Y",SortByColumns(Filter('Livingston Molds',StartsWith('Mold Date',TextSearchBox1_1.Text) And Status="Storage"),"Mold_x0020_Date",SortOrder.Ascending),SortByColumns(Filter('Livingston Molds',StartsWith(P_x002f_N,TextSearchBox1_14.Text) And Status="Storage"),"P_x002f_N",SortOrder.Ascending))
  • Suggested answer
    Ravindra Jadhav Profile Picture
    Ravindra Jadhav 240 on at
    gallery filter starts with does not work with a date field but does work text field
    you can convert mold date column in text, and then you can use, like below
    If(searchmold="Y",SortByColumns(Filter('Livingston Molds',StartsWith(Text( 'Mold Date'),TextSearchBox1_1.Text) And Status="Storage"),"Mold_x0020_Date",SortOrder.Ascending),SortByColumns(Filter('Livingston Molds',StartsWith(P_x002f_N,TextSearchBox1_14.Text) And Status="Storage"),"P_x002f_N",SortOrder.Ascending))
    
     
    Please Closed the Question, Mark it Solved 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav
  • Suggested answer
    FLMike Profile Picture
    FLMike 29,419 on at
    gallery filter starts with does not work with a date field but does work text field
    hi
     
    Yeah it wont work its a date. you should have to turn the date into Text and I do NOT recommend that because you will have delegation screaming at you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard