Forum Discussion
convert date to integer
I have created a DateKey in my calendar datatable that work.
Try use following FORMAT ( [Date]; "YYYYMMDD" ) as DateKey column in your table. The value has to be converted to Whole Number by change column datatype.
this worked. i did the same thing, but did not include the " " around my format, so it did not takerecognize it. I tried to use 0000, but it gave the generic 4681 that it always gives
=FORMAT ([Date], "YYYYMMDD" ) does work to convert DateTime data format to text.
Thanks for correcting my error!
- ArneHoefkens5 years agoAdvocate I
You could wrap a VALUE function around it
= VALUE(FORMAT ([Date], "YYYYMMDD" ) ) - gselvag7 years agoHelper I
The " " is used to name the column when create a calendar table.
As you create column it's name without " ". Am pleased to hear the you managed to resolve your issue with changetype. Please mark the issue as resolved. Thanks :-)