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
GoingIncognito
Advocate III
Advocate III

Dynamic or relative calendar

This must be a silly question, but as I am new to DAX I've to ask:

I would like to do calendar that shows dates half a year back AND one year onwards from today? And also use it as either a filter or slicer? How do I manage this?
Thank you so much!

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@GoingIncognito Please try this as a "New Table" 

 

Test73DynamicDimDate = 
VAR _StartDate = EDATE(TODAY(),-6)
VAR _EndDate = EDATE(TODAY(),12)
RETURN CALENDAR(_StartDate,_EndDate) 




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

2 REPLIES 2
PattemManohar
Community Champion
Community Champion

@GoingIncognito Please try this as a "New Table" 

 

Test73DynamicDimDate = 
VAR _StartDate = EDATE(TODAY(),-6)
VAR _EndDate = EDATE(TODAY(),12)
RETURN CALENDAR(_StartDate,_EndDate) 




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Thank you so much! I have to say about you that not all heros wear a cape!

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.