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: 
tincholiver
Creator III
Creator III

time format

Hi everyone, i have some problems with time format:

xls file has next header

Fecha08:0008:3009:0009:3010:0010:30
01/08/20208059420852
02/08/2020621267366314
03/08/2020434119434260
04/08/2020299321425822
05/08/202046394539793

 

but when i want to load i get next data

 

LOAD
Fecha,
[0.33333333333333331],
[0.35416666666666669],
[0.375],
[0.39583333333333298],
[0.41666666666666702],
[0.4375],
FROM...

 

i tried with Time and Time# function but not works.

 

any idea??

 

thanks a lot!

1 Solution

Accepted Solutions
QFabian
MVP
MVP

Hi @tincholiver , here an example that i made with yor data, the words in red are the new ones :

The script transforms the Time columns in rows, using crosstable() function.

Then cratres a valid num time format, replacing a character from '.' to ','.

Aux:
CrossTable(Time, Data)
LOAD Fecha,
[0.33333333333333331],
[0.35416666666666669],
[0.375],
[0.39583333333333331],
[0.41666666666666669],
[0.4375]
FROM
[..\Desktop\Libro1.xlsx]
(ooxml, embedded labels, table is Hoja1);

Data:
Load
Fecha,
replace(Time,'.',',') as Hora,
Data
Resident Aux;
drop table Aux;

 

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

2 Replies
QFabian
MVP
MVP

Hi @tincholiver , here an example that i made with yor data, the words in red are the new ones :

The script transforms the Time columns in rows, using crosstable() function.

Then cratres a valid num time format, replacing a character from '.' to ','.

Aux:
CrossTable(Time, Data)
LOAD Fecha,
[0.33333333333333331],
[0.35416666666666669],
[0.375],
[0.39583333333333331],
[0.41666666666666669],
[0.4375]
FROM
[..\Desktop\Libro1.xlsx]
(ooxml, embedded labels, table is Hoja1);

Data:
Load
Fecha,
replace(Time,'.',',') as Hora,
Data
Resident Aux;
drop table Aux;

 

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
tincholiver
Creator III
Creator III
Author

thanks Fabian!! 

it works!

Regards