web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter gallery by drop...
Power Apps
Unanswered

Filter gallery by dropdown and date range

(0) ShareShare
ReportReport
Posted on by 407

Hi, 

 

I have a gallery that iam trying to filter by a few drop downs, as well as by date range. The dropdown works fine, just having some troubles getting the date range to filter. Any advice would be much appreciated

 

Filter(EngineTimeSheet,
(Len(JNdrop.Selected.Value)= 0 ||
JobNumber = JNdrop.Selected.Value
) &&
(
Len(TYPEdrop.Selected.Value)=0 ||
TypeOfWork = TYPEdrop.Selected.Value
)&&
(
Len(USERdrop.Selected.Value)=0 ||
Name = USERdrop.Selected.Value

)

Spoiler (Highlight to read)

&&

Date( >=StartDate.SelectedDate && Date <=EndDate.SelectedDate

&&Date( >=StartDate.SelectedDate && Date <=EndDate.SelectedDate



)))

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    152,847 Most Valuable Professional on at
    Re: Filter gallery by dropdown and date range

    Hi @Matt383 ,

    Apart from Date being a very bad name for a field and you had a bracket in the wrong place in the bottom code, this is correct structure assuming your values are valid

    Filter(
     EngineTimeSheet,
     (
     Len(JNdrop.Selected.Value)= 0 ||
     JobNumber = JNdrop.Selected.Value
     ) &&
     (
     Len(TYPEdrop.Selected.Value) = 0 ||
     TypeOfWork = TYPEdrop.Selected.Value
     )&&
     (
     Len(USERdrop.Selected.Value) = 0 ||
     Name = USERdrop.Selected.Value
     ) &&
     Date >= StartDate.SelectedDate && 
     Date <= EndDate.SelectedDate
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Matt383 Profile Picture
    407 on at
    Re: Filter gallery by dropdown and date range

    Thanks Warren, the date name was just in a test environment, will be re-naming to something more suitable, cheers

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard