Forum Discussion

Jbeaman85's avatar
Jbeaman85
Regular Visitor
4 years ago

Ultimate Calendar - Avi Singh - End Date

Hi

 

I ahve downloaded this file, which is excellent. Made a few changes which givem me the financial year periods I require, etc.

 

What I want though is no end date on the report. No matter what I try this seems to fail to work. 

 

The current formula is this:

 

= Date.EndOfYear(DateTime.Date(DateTime.FixedLocalNow()))

 

What formula should I use to run the end date to, say 2100?? or no end date at all?

 

Thx !

2 Replies

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Icon for Most Valuable Professional rankMost Valuable Professional

    Replace current formula with if you want to go till 31-Dec-2100

    =#date(2100,12,31)

  • Hi, Jbeaman85 ; 

     

    Usually, every Calendar table has at least two parameters: 'Start Date' and 'End Date'.
    Although we know that there's no a real "end" date, we need this in order to make the Power Query stop creating new rows and to be able to move forward.

    So, a good way to solve your situation is to put the original formula into a Date.AddYears():

     

    Date.AddYears(Date.EndOfYear(DateTime.Date(DateTime.FixedLocalNow())), 10)

     

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

     

    Regards!