Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Format not recognised when exporting to Excel


I have run some data in our company server and exported as QVD. I can reload the QVD into my Personal Desktop edition of QlikView and it is fine. I do this with about 70 individual QVD files using concatenate load. Sometimes when I export some data (in particular when I select WeekDay or Month aggregates, but also when I choose certain reports daily) some of the data rows are not recognized as dates in the date field. If for example I export a report from PE to Excel and data filter the column headers, when I drop down the date filter I can see year and months followed by individual days which are obviously not date recognized. If I deselect the years and delete the remainder it is fine, and only a small number of rows are affected. However, each individual file when loaded on its own works perfectly.

Because the incorrect dates are all throughout the data then it cannot be a single QVD file with errors. And because each QVD file works on its own I wouldn't think there is a problem with the original server data either. Also same data, same date range (full data set) one report is fine another has this date issue.

Does anyone have any idea why this happens? I have tested on two separate computers with same output.

qv.jpg

5 Replies
marcus_sommer

I assume you load this files with a loop and perhaps not all datas in your sources are really date-values. QV takes the first row from a field to determine which datatype it is - not always is this right. I suggest you load this field with a format and/or convert statement like date(date#(yourdate, 'yourformat'), 'yourformat').

- Marcus

abeyphilip
Creator II
Creator II

Hi Darren,

Does date formats look similar in the front end before exporting? You can try explicitly making it date using - date()  (number tab in case of expressions) and see if it helps.

Regards,

Abey

Not applicable
Author

I just load it as *.qvd and there are daily data files for every day from 1st June to present. Given that only a small number of rows are affected I don't think that would be the issue.

Are you suggesting I change the Load script from

[Call Date],

to

Date(date#([Call Date],'DD-MM-YYYY'),'DD-MM-YYYY)

Not applicable
Author

Yes, the date works fine in the Server based reports before exporting. Are you also suggest the same as Marcus above?

Not applicable
Author

The -1- is an error by the way that shouldn't be there !