Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting from one time format to another

In my initial TEMP load Im converting the timestamp into time as per the below format:

Text(Time(round([Settlement timestamp], (1/8640000)), 'hh:mm:ss:ffffff')) as SettlementTime,

However in the final load I need to convert it again as per below,

Time(SettlementTime, 'hh:mm:ss') as SettlementTime_FINAL,

but Im getting null values.

any ideas?

1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

You don't need to create a text from it. If you just use

   Time(round([Settlement timestamp], 1/8640000 ), 'hh:mm:ss:ffffff') as SettlementTime,

it should work directly. You will see the text, but it will also have a numeric value.

HIC

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Provide sample data or file where you have problem in getting correct result.

hic
Former Employee
Former Employee

You don't need to create a text from it. If you just use

   Time(round([Settlement timestamp], 1/8640000 ), 'hh:mm:ss:ffffff') as SettlementTime,

it should work directly. You will see the text, but it will also have a numeric value.

HIC