Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate the duration of past 10 successful executions of a job in QlikView

Hi All,

I am trying to calculate the duration of past 10 successful executions of a job in Qlik View and draw a line chart for that. Can someone please guide me how to proceed with this ?

I have the current field values like Status_code, End_time, Start_time. I can calculate the duration using End_time and Start_time but how to find out the last 10 successful executions of the job.

I want something like shown in the screenshot belowPast 10 successful execution.jpg

Thanks,

Kshitij

1 Solution

Accepted Solutions
PradeepReddy
Specialist II
Specialist II

see the attachment, it might be helpful..

View solution in original post

4 Replies
avinashelite

Try like this :

Create two variables, vStart and Vend ..difference between this will give you the duration of the reload.

and then on every reload you need to store this total time into a QVD with the time stamp so that every time when you reload the duration will be captured in the QVD and you can load this QVD to create your chart

PradeepReddy
Specialist II
Specialist II

see the attachment, it might be helpful..

HirisH_V7
Master
Master

Hi ,

I hope you require to show line chart for all 10 status codes and duration of the Execution .

check this,

Info:

Data:

LOAD * ,

Interval(EndTime-StartTime,'ss[.fff] ') As Duration

INLINE [

    StatusCode, StartTime, EndTime

    1,19/01/2016 8:59:01 AM,19/01/2016 9:59:01 AM

    2,19/01/2016 9:59:09 AM,19/01/2016 10:59:01 AM

    3,19/01/2016 11:58:09 AM,19/01/2016 11:59:01 AM

    4,19/01/2016 12:58:09 AM,19/01/2016 12:59:01 AM

    5,19/01/2016 1:51:09 AM,19/01/2016 1:59:01 AM

  

];

Output:

Duration.PNG

Hope you require like this,

Else post your sample data,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

Thanks all for your prompt replies. Pradeep's attachment worked fine for me as my data was same as his. Problem resolved.

Cheers!!!!

Kshitij