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

How to convert the num into Date

Hi All,

I have the following excel, which includes the YearMonth, but when I load the it into QV, it shows the Int format, could you help me on how to convert it into Date by

script?

I have attached the Excel file and QVW as attached, could you help me out?

Thanks.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

TestTable:

CrossTable(YearMonth, Revenue)
LOAD Region,
     [40452],
     [40483],
     [40513],
     [40544]
FROM
Test.xlsx
(ooxml, embedded labels, table is Sheet1);

NoConcatenate
Load MonthName((num#(YearMonth))) as YearMonth1,Revenue,Region Resident TestTable;


drop table TestTable;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

TestTable:

CrossTable(YearMonth, Revenue)
LOAD Region,
     [40452],
     [40483],
     [40513],
     [40544]
FROM
Test.xlsx
(ooxml, embedded labels, table is Sheet1);

NoConcatenate
Load MonthName((num#(YearMonth))) as YearMonth1,Revenue,Region Resident TestTable;


drop table TestTable;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
er_mohit
Master II
Master II

See the attached file

A:

CrossTable( Date,Value)

LOAD Region,

    [40452]  ,

     [40483],

     [40513],

   [40544]

FROM

(ooxml, embedded labels, table is Sheet1);

B:

LOAD Region as REGION,Value AS VALUE, dATE(Num#(Date)) AS DATE

Resident A;

DROP Table A;