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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jbeaman85
Regular Visitor

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 2
flath
Helper II
Helper II

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!

 

 

Vijay_A_Verma
Super User
Super User

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

=#date(2100,12,31)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors