Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date und Time

Hallo Zusammen,

ich habe eine Excel Tabelle bei der ich zwei Spalten mit Date und Time habe

          Date:           Time:

 

23.11.201622:56:34
23.11.201616:56:29
23.11.201604:59:27
22.11.201622:59:20
22.11.201616:59:15
22.11.201610:59:09
22.11.201604:59:04
21.11.201622:58:58
21.11.201616:58:53
21.11.201610:58:48
21.11.201604:58:37

Ich möchte jetzt im Datenmanager die zwei Spalten in eine Integrieren, so dass ich bei einem Balkendiagramm die Dimension Date+Time stehen habe (23.11.2016 22:56:34 usw.)

Nachdem ich die Daten Integriert habe wird jedoch eine Zahl ausgegeben wie 426970,9555949... usw.

Wie kann ich das ganze realisieren

1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

Load *,timestamp(timestamp#(Date&' '&Time,'DD.MM.YYYY hh:mm:ss'),'DD-MM-YYYY hh:mm:ss') as NewTime;
Load * Inline [
Date,Time
23.11.2016,22:56:34
23.11.2016,16:56:29
23.11.2016,04:59:27
22.11.2016,22:59:20
22.11.2016,16:59:15
22.11.2016,10:59:09
22.11.2016,04:59:04
21.11.2016,22:58:58
21.11.2016,16:58:53
21.11.2016,10:58:48
21.11.2016,04:58:37

];

View solution in original post

16 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try

Timestamp(Fieldname,'DD.MM.YYYY hh:mm:ss')

Not applicable
Author

you mean like this:

Timestamp(Date&Time, 'DD.MM.YYYY hh:mm:ss')

But then I get no results

Not applicable
Author

So I get results, but wih a wrong date and year.

So the 23.11.2016 with 22:56:34 is integrate to 31.12.3068 22:56:34

The time is correct but not the date

vinieme12
Champion III
Champion III

TRY below

LOAD *,

     DATE(DATE(Date,'dd.mm.yyyy')&TIME(Time,'h:mm:ss'),'DD.MM.YYYY h:mm:ss')  as DateTime INLINE [

Date,Time

23.11.2016,22:56:34

23.11.2016,16:56:29

23.11.2016,04:59:27

22.11.2016,22:59:20

22.11.2016,16:59:15

22.11.2016,10:59:09

22.11.2016,04:59:04

21.11.2016,22:58:58

21.11.2016,16:58:53

21.11.2016,10:58:48

21.11.2016,04:58:37];

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
jonathandienst
Partner - Champion III
Partner - Champion III

Two fields? Then something like this:

TimeStamp(Date#([Date], 'dd.MM.yyyy') + Time#([Time], hh:mm:ss'), 'dd.MM.yyyy hh:mm:ss')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Chanty4u
MVP
MVP

try this

a:

LOAD * INLINE [

    Date, Time

    23.11.2016, 22:56:34

    23.11.2016, 16:56:29

    23.11.2016, 04:59:27

    22.11.2016, 22:59:20

    22.11.2016, 16:59:15

    22.11.2016, 10:59:09

    22.11.2016, 04:59:04

    21.11.2016, 22:58:58

    21.11.2016, 16:58:53

    21.11.2016, 10:58:48

    21.11.2016, 04:58:37

];

Result:

LOAD *,

Timestamp(Timestamp#(Date &' '& Time,'DD.MM.YYYY hh:mm:ss')) as new

Resident a;

Chanty4u
MVP
MVP

Hi,

check this

resul.PNG

shraddha_g
Partner - Master III
Partner - Master III

Load *,timestamp(timestamp#(Date&' '&Time,'DD.MM.YYYY hh:mm:ss'),'DD-MM-YYYY hh:mm:ss') as NewTime;
Load * Inline [
Date,Time
23.11.2016,22:56:34
23.11.2016,16:56:29
23.11.2016,04:59:27
22.11.2016,22:59:20
22.11.2016,16:59:15
22.11.2016,10:59:09
22.11.2016,04:59:04
21.11.2016,22:58:58
21.11.2016,16:58:53
21.11.2016,10:58:48
21.11.2016,04:58:37

];

Not applicable
Author

Thanks for the answers, but why is the Date incorrect with 31.12.3068?