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 Apps - Building Power Apps
Answered

Filter gallery by dropdown and date range

(0) ShareShare
ReportReport
Posted on by 405

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
    151,883 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
    405 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard