Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Transform a date to year-month

$
0
0

I have a question and i need your help.

 

I have a column with dates in the following format 3-2-2017 07:49:00 and i want to transform that to a year-weeknumber for example 2017-05.

 

My formula can get the year and month correctly but then it reads 2017-5 and it leaves the extra 0 because i want it to read 2017-05

If i do not get the extra 0 my visual will place the values wrong.

 

Because you get:

2016-1 - 2016-10 - 2016-11 - 2016-2 - 2016-3

instead of:

2016-1 - 2016-2 - 2016-3 - 2016-10 - 2016-11

 

That is why i need the extra 0, so i can get:

2016-01 - 2016-02 - 2016-03 - 2016-10 - 2016-11

I hope you guys understand what i am trying to do

 

Binnenkomst Ticket = Tickets[Startdatum].[Year]&"-"&Tickets[Startdatum].[MonthNo]


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>