Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date format-exporting to excel

Hi,

On my document I am able to export data to excel. The date on the excel spreadsheet appears as a numbers rather than date.

The code for the consumption period is:

date(MonthStart(CI_BSEG.END_DT),'MMM/YYYY') as ConsumptionPeriod

Should this not work in keeping the date in the date format once exported?

Am I doing something wrong on this?

Thanks in advance,
mckay9999

2 Replies
Not applicable
Author

This is normal, Dates format are numbers.

You can change format cell in Excel do display dates directly OR you change the Qlikview dimension to display it as TEXT.

For example TEXT(Date(MyDate,'DD/MM/YYYY')).

In this case export will be done as text and Excel will see it as text too.

Regards,

Sébastien

Not applicable
Author

I'd like to add: I think it's fair to call this a bug. If QlikView is asked to export data to Excel which it knows to be date data, it should format it as a date. The awesome one-click convenience of the XL button is ruined when the results are unreadable, and only fairly advanced Excel users will recognize that serial numbers in the range of 40,000+ are probably dates.

Formatting the value as text is a workaround, not a solution, since it ruins sorting.