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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Imported Excel date is displayed as a number in QV, not a date.

I have read few posts and tried a few things, but nothing has solved my problem.

I have a date function in Excel, like this: =DATE(2011, 2, 22). That then shows up as a 40597 number in QV.

I understand that i can convert that in QV, so i tried this code in QV Date(ExcelDate, 'DD/MM/YYYY') as PeriodDate. Where ExcelDate is the column from excel, and PeriodDate as the new column name.

Any help would be much appreciated.

Zach

3 Replies
matt_crowther
Specialist
Specialist

Zach,

What versions of Qv and Excel are you using?

I've tried to replicate your situation (date(2011,2,22)) in Excel but 'unfortunately' it always comes through as a formatted date in Qlikview? - I'm running v9 SR6 and Excel 2003.

You can try putting the date() function in both the script and/or the front end and as long as your 'Set' at the start of the script is in place you shouldn't need the 'DD/MM/YYYY' after the Excel column as Qv will default the format.

Apologies I can't be more help but hopefully the above will help in some way.

All the best,

Matt - Visual Analytics Ltd

matt_crowther
Specialist
Specialist

Zach,

What versions of Qv and Excel are you using?

I've tried to replicate your situation (date(2011,2,22)) in Excel but 'unfortunately' it always comes through as a formatted date in Qlikview? - I'm running v9 SR6 and Excel 2003.

You can try putting the date() function in both the script and/or the front end and as long as your 'Set' at the start of the script is in place you shouldn't need the 'DD/MM/YYYY' after the Excel column as Qv will default the format.

Apologies I can't be more help but hopefully the above will help in some way.

All the best,

Matt - Visual Analytics Ltd

Not applicable
Author

i am running QV10 and Excel 2007/2010.

Could you please explain what you mean by the front end and the script?

Thanks

Zach