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

how to calculate average value in specific time range (lets say 5:00 - 7:00) ?

 
Labels (1)
1 Solution

Accepted Solutions
Patricia_Silva
Specialist II
Specialist II

Hello @ezer_e, can you try with this script:

 

TableExample:

LOAD [TASK_ID],

     CREATED,

     FINISHED,

     Interval(FINISHED - CREATED, 'hh:mm:ss') as Duration

FROM

[xxxxxxxxxxxxx]

(html, codepage is 1252, embedded labels, table is xxxxxx);

 

Avg Duration Expression:

 

=Interval(Avg(Duration), 'hh:mm:ss')

 

Hope it can help you 🙂

Help users find answers! Don't forget to mark a correct resolution 🙂

View solution in original post

1 Reply
Patricia_Silva
Specialist II
Specialist II

Hello @ezer_e, can you try with this script:

 

TableExample:

LOAD [TASK_ID],

     CREATED,

     FINISHED,

     Interval(FINISHED - CREATED, 'hh:mm:ss') as Duration

FROM

[xxxxxxxxxxxxx]

(html, codepage is 1252, embedded labels, table is xxxxxx);

 

Avg Duration Expression:

 

=Interval(Avg(Duration), 'hh:mm:ss')

 

Hope it can help you 🙂

Help users find answers! Don't forget to mark a correct resolution 🙂