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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Distinct and filter Sh...
Power Apps
Answered

Distinct and filter SharePoint list based on Date Range in a Dropdown menu

(0) ShareShare
ReportReport
Posted on by 138

Hello,

I have a dropdown menu that filters a column in a SharePoint list the formula I used works, however I want to add start and end dates columns to this filter, so the Dropdown menu, by default, will show the item that match the current month dates Start and End.

 

the Formula I used that works: 

 

Distinct(Filter('SharePointList', Cohort = "51"), 'Course Name')

 

However when I try to add the filter by date start and end, seems I'm missing something, below is the what I'm trying to use:

 

With(
{
StartDate: Date(
Year(Today()),
Month(Today()),
1
),
EndDate: Date(
Year(Today()),
Month(Today())+1,
1
)-1
},
Distinct(Filter('SharePointList', Cohort = "51"), 'Course Name'),
StartDate >= StartDate,
EndDate <= EndDate
)
)

 

Any idea please?

Thanks for your support

Categories:
  • Verified answer
    SagarVIS96 Profile Picture
    212 on at

    Hi @Greg68 ,

     

    1. Give it a different name to start and end date which you are creating with "With" function to differentiate between the sharepoint start and end date field.

    2. You need to apply filter based on start and end date inside the filter function itself which I have mentioned below.

    With(
     {
     _startDate: Date(
     Year(Today()),
     Month(Today()),
     1
     ),
     _endDate: Date(
     Year(Today()),
     Month(Today()),
     1
     ) - 1
     },
     Distinct(
     Filter(
     'Power Apps Training',
     DueDate < _startDate,
     Created > _endDate
     ),
     Name
     )
    )

    Thanks and regards

  • soundarya Profile Picture
    16 on at

    Hello Greg68,

       Can you refer the link here is the solution for your question https://stackoverflow.com/questions/50005890/powerapps-filtering-drop-down-based-on-datepicker-selection

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard