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