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

Calculating average within limits

Hi all,

 

I'm trying to create an overview of our company's average cycletime per area.

sometimes we have unreliable cycles or errors which lead to short or long cycletimes.

I would like to calculate the average cycletime between 50 en 70 seconds, so exclude everything below 50 and above 70.

How should I go about that?

 

Thanks in advance for your time and advice.

Regards,

Tom

Labels (1)
  • avg()

1 Solution

Accepted Solutions
tm_burgers
Creator III
Creator III

Do you get cycletime  in the DataSet? 

 

if so then a set anaylsis would work:

 

AVG( {< cycletime  ={">=50<=70"}>} cycletime )

 

if cycletime is calculated in app, then I would suggest scripting this measure into your data set. 

View solution in original post

2 Replies
tm_burgers
Creator III
Creator III

Do you get cycletime  in the DataSet? 

 

if so then a set anaylsis would work:

 

AVG( {< cycletime  ={">=50<=70"}>} cycletime )

 

if cycletime is calculated in app, then I would suggest scripting this measure into your data set. 

tcjwpeeters
Contributor II
Contributor II
Author

Hi tm_burgers,

 

that worked thanks!

The Cycletime is an output in the dataset.

I thought it should be possible like that somehow but I couldn't get it to work.

Thanks!