Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
abhijith28
Creator II
Creator II

Data loading

Hi,

I have an issue with the data cleaning

There are two tables.

I have to implement crosstable along with conditional delete of the rows.

And also i have a issue with the date format, while loading the date column is showing as integer values.

Please find the attachment.

Labels (1)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

try below script

 

Temp:
CrossTable(Date,Value,1)
LOAD
    F1 as Name,
    "43466",
    "43497",
    "43525",
    "43556",
    "43586",
    "43617",
    "43647",
    "43678"
FROM [lib://Downloads/New Microsoft Excel Worksheet (3).xlsx]
(ooxml, embedded labels, header is 1 lines, table is Sheet1);

MyTable:
NoConcatenate
load Name
	,Date(Num#(Date), 'MMM-YY') as Date
    ,Value
resident Temp
where not IsNull(Name);

drop table Temp;

 

 

output below

 

NameDateValue
AJan-1912.00
AFeb-192.00
AMar-1924.00
AApr-1944.00
AMay-192.00
AJun-1943.00
AJul-198.00
AAug-1967.00
BJan-1913.00
BFeb-195.00
BMar-1966.00
BApr-1966.00
BMay-1978.00
BJun-1988.00
BJul-1955.00
BAug-1967.00
CJan-1956.00
CFeb-19677.00
CMar-19777.00
CApr-1975.00
CMay-1946.00
CJun-1945.00
CJul-1934.00
CAug-19334.00
xJan-194.00
xFeb-192.00
xMar-1924.00
xApr-1944.00
xMay-192.00
xJun-1943.00
xJul-198.00
xAug-1923.00
yJan-195.00
yFeb-195.00
yMar-1966.00
yApr-1966.00
yMay-1978.00
yJun-1988.00
yJul-1955.00
yAug-19566.00
zJan-1956.00
zFeb-196.00
zMar-197.00
zApr-198.00
zMay-1946.00
zJun-1945.00
zJul-1934.00
zAug-19334.00

View solution in original post

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

try below script

 

Temp:
CrossTable(Date,Value,1)
LOAD
    F1 as Name,
    "43466",
    "43497",
    "43525",
    "43556",
    "43586",
    "43617",
    "43647",
    "43678"
FROM [lib://Downloads/New Microsoft Excel Worksheet (3).xlsx]
(ooxml, embedded labels, header is 1 lines, table is Sheet1);

MyTable:
NoConcatenate
load Name
	,Date(Num#(Date), 'MMM-YY') as Date
    ,Value
resident Temp
where not IsNull(Name);

drop table Temp;

 

 

output below

 

NameDateValue
AJan-1912.00
AFeb-192.00
AMar-1924.00
AApr-1944.00
AMay-192.00
AJun-1943.00
AJul-198.00
AAug-1967.00
BJan-1913.00
BFeb-195.00
BMar-1966.00
BApr-1966.00
BMay-1978.00
BJun-1988.00
BJul-1955.00
BAug-1967.00
CJan-1956.00
CFeb-19677.00
CMar-19777.00
CApr-1975.00
CMay-1946.00
CJun-1945.00
CJul-1934.00
CAug-19334.00
xJan-194.00
xFeb-192.00
xMar-1924.00
xApr-1944.00
xMay-192.00
xJun-1943.00
xJul-198.00
xAug-1923.00
yJan-195.00
yFeb-195.00
yMar-1966.00
yApr-1966.00
yMay-1978.00
yJun-1988.00
yJul-1955.00
yAug-19566.00
zJan-1956.00
zFeb-196.00
zMar-197.00
zApr-198.00
zMay-1946.00
zJun-1945.00
zJul-1934.00
zAug-19334.00
abhijith28
Creator II
Creator II
Author

Thank you for your response