Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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.

2 ACCEPTED SOLUTIONS
amitchandak
Super User
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

View solution in original post

v-xiaoyan-msft
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

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.

amitchandak
Super User
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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.