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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sohb2015
Contributor III
Contributor III

Sorting Data and Time

Hello All,

I got a requirement of sorting date and time in a trend chart. The date and time are in different columns. So, I have created a calculated dimension. To sort the chart according to this calculated dimension, I put the date column name in the expression. It sorts the dates properly, however, times are not sorted properly.

Can anyone suggest something that will sort the date and time properly.

Thanks

1 Solution

Accepted Solutions
rubenmarin1

Hi Sohini, can you try using both in sort expression?:

=DateField + TimeField

View solution in original post

3 Replies
rubenmarin1

Hi Sohini, can you try using both in sort expression?:

=DateField + TimeField

sunny_talwar

I think it would be even better if the Timestamp is created like this:

TimeStamp(DateField + TimeField)

QlikView will read it as a number and hence will sort is correctly

sohb2015
Contributor III
Contributor III
Author

Thanks Ruben. It worked.

Thank you Guys.