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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

times in order

Hi,

Can anyone highlight how we can get the follwoing times to go in order:

Standrad sorting of frequency, text order etc wont work. It needs to be in order of time, earliest to latest

Q2. What
  time do you leave work on average? / Q2. Response
No of responses
193
5:00 - 5:30pm51
4:30 - 5:00pm67
6:00 - 6:30pm12
5:30 - 6:00pm21
6:30 - 7:00pm2
4:00 - 4:30pm33
7:00 - 7:30pm7

Chris

6 Replies
Nicole-Smith

Sort tab > Sort YourTimeField by Expression:

wildmatch(YourTimeField, '4:00*', '4:30*', '5:00*', '5:30*', '6:00*', '6:30*', '7:00*')

Not applicable
Author

Hey Chris,

If the From - To times are two separate fields then you can just sort them using From. Possible to attach a sample file.

Thanks

AJ

Not applicable
Author

Hi,

I thought kind responses worked; however, doesnt seem to be working correctly.

Please see atatched app with the three charts and tables we would like the sorting to work for.

Chris

rbecher
MVP
MVP

Use this expression:

Time#(subfield([Q1. What time do you get into work on average?],' -',1), 'h:mm')

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
maxgro
MVP
MVP

change the field and use Nicole answer, in that way

wildmatch([Q1. What time do you get into work on average?], '4:00*', '4:30*', '5:00*', '5:30*', '6:00*', '6:30*', '7:00*') 

regards

rbecher
MVP
MVP

..change to the Dimension field for the other charts.

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine