Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hallo Zusammen,
ich habe eine Excel Tabelle bei der ich zwei Spalten mit Date und Time habe
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 |
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
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
];
Try
Timestamp(Fieldname,'DD.MM.YYYY hh:mm:ss')
you mean like this:
Timestamp(Date&Time, 'DD.MM.YYYY hh:mm:ss')
But then I get no results
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
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];
Two fields? Then something like this:
TimeStamp(Date#([Date], 'dd.MM.yyyy') + Time#([Time], hh:mm:ss'), 'dd.MM.yyyy hh:mm:ss')
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;
Hi,
check this
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
];
Thanks for the answers, but why is the Date incorrect with 31.12.3068?