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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Set end date calendar to next 3 months

Hello,

I have a calendar table in Power Query with the end date dynamically calculated using the following step:

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

But i want to change this expression to be always 3 months from today, so that means it should also go forward to the next year, for example, if today is 10 December 2022, then it should go forward 3 months into March 2023.

Is that possible? Any help is much appreciated.

1 ACCEPTED SOLUTION
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 Date.AddMonths(DateTime.Date(DateTime.FixedLocalNow()),3)

View solution in original post

1 REPLY 1
Vera_33
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 Date.AddMonths(DateTime.Date(DateTime.FixedLocalNow()),3)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors