Forum Discussion
Create the date range list based on date slicer selection
Hi all,
I need to show the date range list based on the slicer selection and the starting date should be from the beginning of the month and end date should be the date selected in the slicer.
ex: if i selected a date in date slicer as 24th November , the date list should show list of dates from 1st of November to 24th of November.
1st Novmeber 2021
2nd Novmeber 2021
.
.
.
24th November 2021
Can you help me figureout how to achieve this.
Anonymous , If you select a one date and want more than one date to display you need one independent date table
// Independent Date table - Date1 and Joined Table Date - MTD
measure =
var _max = maxx(allselected('Date1'),'Date1'[Date]) //
var _min = eomonth(_max,-1) +1
return
CALCULATE(SUM(Sales[Sales Amount]),filter(Date, Date[Date]>=_min && Date[Date] <=_max ))refer if needed
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
- Anonymous4 years ago
Hi Anonymous ,
Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!
Hope it helps,
Community Support Team _ CaitlynIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- amitchandak
Super User
Anonymous , If you select a one date and want more than one date to display you need one independent date table
// Independent Date table - Date1 and Joined Table Date - MTD
measure =
var _max = maxx(allselected('Date1'),'Date1'[Date]) //
var _min = eomonth(_max,-1) +1
return
CALCULATE(SUM(Sales[Sales Amount]),filter(Date, Date[Date]>=_min && Date[Date] <=_max ))refer if needed
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
- AnonymousNot applicable
Hi Anonymous ,
Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!
Hope it helps,
Community Support Team _ CaitlynIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.