Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to join fields to one in QV?

Hello,

I have date and time data stored in two separate columns in my datasource. In QV I'd like to concatenate them as one timestamp for gettting comparable timestamps. I quess this is possible, but can not figure out how? Definig a new variable maybe?

Thanks!

-dzeidzei

1 Solution

Accepted Solutions
Not applicable
Author

use this :

date(num(datefieldname) + frac(timestamp(timefieldname, hh:mm:ss')), 'DD/MM/YYYY hh:mm:ss')

Hope it helps.

Regards

View solution in original post

5 Replies
er_mohit
Master II
Master II

are you trying to see date and time in one column??

plz can you clarify it with an example ? whats you want in output

Not applicable
Author

use this :

date(num(datefieldname) + frac(timestamp(timefieldname, hh:mm:ss')), 'DD/MM/YYYY hh:mm:ss')

Hope it helps.

Regards

Not applicable
Author

I have data in database columns like SOME_DATE whichc contaisns values in format dd.mm.yyyy and SOME_TIME with values in format hh:mm:ss. In QV I'd like to have one timestamp style field where thiose tvo separate feils should be joined to one timestamp SOME_TIMESTAMP with values in format dd.mm.yyyy hh:mm.ss

SunilChauhan
Champion
Champion

try this out

date#(somedate&' '&sometime,'dd.mm.yyyy hh:mm:ss')

Hope this helps

Sunil Chauhan
Not applicable
Author

Thanks qlik_techie. That one did the trick.