Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
Solved! Go to Solution.
@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
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 _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
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 _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@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
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |