Forum Discussion
ovetteabejuela
Impactful Individual
9 years agoExporting | Date(Text Format) reverts to Date(Date Format)
Hi Community, I have this calculated column: WeekEnding = FORMAT(DimCalendar[Date] - MOD(DimCalendar[Date]-1,7) + 6,"YYYY-MM-DD") So my intention is really to have a date i...
Anonymous
9 years agoNot applicable
Try adding an apostrophe infront of the data.
EDIT: apostrophe is '
ovetteabejuela
Impactful Individual
9 years agoYes, I know what you mean by this but this won't work because you'll not lose the apostrophe.
Example:
WeekEnding = CONCATENATE("'",FORMAT(DimCalendar[Date] - MOD(DimCalendar[Date]-1,7) + 6,"YYYY-MM-DD"))
Expected output(when CSV file is opened in Excel):
YYYY-MM-DD where aposthrope should have forced the date to a text type
But what you'll see is:
'YYYY-MM-DD, aposthrope is retained. It will only disappear if you select the cell, hit F2 and press enter key.
- LesProud8 years agoNew Member
Did you every get a solution to this, I have the same problem.