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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date format convert issue

Hi Guys

I created one table as below's screenshot, you can see that, from column H to M, is date format.

Image 1.png

The problem is when I load into QlikView by script, the date column will display in number.

Image 2.png

So I modified the script:

Directory;

CrossTable(Month, Data, 7)

LOAD Dept,

    Section,

    [Job No],

    [Job Type],

    [Job Name],

    [Customer 1],

    [Customer 2],

    [42826],

    [42856],

    [42887],

    [42917],

    [42948],

    [42979]

FROM

[17A JOB List.xlsx]

(ooxml, embedded labels, table is job);

Test:

Load *,Date(Num#(Month),'YYYY-MM') as TestedDate Resident Directory;

DROP Table Directory;

However, when I reload, QlikView always pop-up error message:

Table not found

Test:

Load *,Date(Num#(Month),'YYYY-MM') as TestedDate Resident Directory


So I confused, I don't know how to revise the script. I have uploaded the QVW file in attachment. Does somebody can help me.

Thx a lot!

Labels (1)
1 Solution

Accepted Solutions
md_qlikview
Creator II
Creator II

Hi,

Try by giving Proper name to your first loaded table instead of Directory,

Say

Table1:

.

.

.

Final:

Load *,Date(Num#(Month),'YYYY-MM') as TestedDate Resident Table1

Drop Table Table1;

View solution in original post

2 Replies
md_qlikview
Creator II
Creator II

Hi,

Try by giving Proper name to your first loaded table instead of Directory,

Say

Table1:

.

.

.

Final:

Load *,Date(Num#(Month),'YYYY-MM') as TestedDate Resident Table1

Drop Table Table1;

Not applicable
Author

Hi Milind

You're right, seems need to change to another name, and it is working now.

Thx