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

Trend Over Time Line Graph

Hi,

I'm trying to create a line graph to show a trend over time. I want to have the Actual Start Date as the X axis, and Actual Start Time as the Y, but only for the Runs found in both tables.

How can I do this; is it a problem that my Start Time / Date values are not standard:

Actual Start Time: HHMMSS

155712 = 15:57:12

1533 = 00:15:33

424 = 00:04:24

Actual Start Date: 1YYMMDD

1150602 = 02/06/2015

Scheduled Runs

Scheduled Runs

NameDescriptionScheduled Start TimeScheduled End Time
Run1ABC153000153005
Run2123235500500
Run3XYZ9001500
Run44568300083500

Actual Runs

NameStatusActual Start TimeActual End TimeActual Start DateActual End Date
Run1C15571216014611506031150602
Run1C19462919482111506031150602
Run1F20224520251211506021150602
Run2F23562142411506011150602
Run2C1533175611506031150602
Run6C21000221034211506011150601
Run7C56261012611506031150602

Any help would be really appreciated!

Kind regards,

Tristan

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Convert your time into true QlikView times.

You can paste the below into a Text Box and check it converts 424 correctly:

     =time(time#(text( num(424,'000000')),'hhmmss'),'hh:mm:ss')

Then test with some of your other times.

And finally use it with your actual data field :

     =time(time#(text( num([Actual Start Time],'000000')),'hhmmss'),'hh:mm:ss')



Similarly you can sort your dates with the date() and date#() functions which you can find details of in the QV Desktop Help.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Convert your time into true QlikView times.

You can paste the below into a Text Box and check it converts 424 correctly:

     =time(time#(text( num(424,'000000')),'hhmmss'),'hh:mm:ss')

Then test with some of your other times.

And finally use it with your actual data field :

     =time(time#(text( num([Actual Start Time],'000000')),'hhmmss'),'hh:mm:ss')



Similarly you can sort your dates with the date() and date#() functions which you can find details of in the QV Desktop Help.

Not applicable
Author

Thanks very much Bill, that's a great help. The Time part has worked correctly, so I'm scanning now for more date information.

Kind regards,

Tristan

Anonymous
Not applicable
Author

Try something like this :

     = date ( date# ( mid ( '1150602' , 2 ) , 'YYMMDD' ) , 'DD/MM/YYYY' )