Forum Discussion

GoingIncognito's avatar
GoingIncognito
Icon for Advocate III rankAdvocate III
7 years ago
Solved

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!

  • GoingIncognito Please try this as a "New Table" 

     

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

2 Replies

  • PattemManohar's avatar
    PattemManohar
    Icon for Community Champion rankCommunity Champion

    GoingIncognito Please try this as a "New Table" 

     

    Test73DynamicDimDate = 
    VAR _StartDate = EDATE(TODAY(),-6)
    VAR _EndDate = EDATE(TODAY(),12)
    RETURN CALENDAR(_StartDate,_EndDate) 
    • GoingIncognito's avatar
      GoingIncognito
      Icon for Advocate III rankAdvocate III

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