Forum

Rolling Calendar mo...
 
Notifications
Clear all

Rolling Calendar month incremental for a period of years

6 Posts
2 Users
0 Reactions
64 Views
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

Hi,

I was told that if I followed these steps below, i can get a rolling calendar that starts on 1-1-2018. And it ends on TODAYs date.

   1 . Click on Data > New Query > From Other Sources > Blank Query

   2 . In the formula Bar type =#date(2018,1,1)

   3. Press Enter on your keyboard.

   4. Click on the fx icon on the formula bar

   5. Type this formula   List.Dates (Source, Number.From(DateTime.LocalNow()) - Number.From(Source), #duration(1,0,0,0))

   6. Convert the resulting list into a table List Tools > To Table

Is there any way I change this so it starts on 1-1-2018 and it:

a) continues 2-1-2018, 3-1-2018, etc

b) and it ends on 12-1-2028?

Please advise.

Thank you

Celeste

 
Posted : 16/05/2018 1:14 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Celeste,

It's even easier than that. Create a new blank query. In the formula bar type:

= { Number.From( #date(2018,1,1) ) . . Number.From( #date(2028,12,1) ) }

 

Press enter. Convert to Table.

Mynda

 
Posted : 16/05/2018 9:05 pm
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

if you meant List.Dates (Source, Number.From(#date(2018,1,1)) - Number.From(#date(2028,12,1), #duration(1,0,0,0))

that didnt work.

 
Posted : 17/05/2018 7:32 am
(@mynda)
Posts: 4761
Member Admin
 

No, I mean literally type:

= { Number.From( #date(2018,1,1) )..Number.From( #date(2028,12,1) ) }

Press Enter. Convert to table. Set data type to 'Date'.

Mynda
 
Posted : 17/05/2018 8:43 pm
(@cbenitez)
Posts: 45
Trusted Member
Topic starter
 

YOU ROCK!!!!!!!! LaughLaughLaughLaughLaugh

Thank You!

 
Posted : 18/05/2018 7:23 am
(@mynda)
Posts: 4761
Member Admin
 

Aw, thank you 🙂

 
Posted : 18/05/2018 7:45 pm
Share: