Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
mohiste
Contributor
Contributor

the average difference between two steps

Hello,

mohiste_0-1696932083070.png

 

I want to calculate the time (delay) between two steps, and if there is a recurrence it will be the average

Delay in this example = DTetap (when LIBUO = De est Valideur and STATNOT = Submitted) + DTetap (when LIBUO = CNN and STATNOT = IN PROGRESS) /2

Delay  (in networkday)= 3+9 /2 = 6 days

I welcome every idea or help

thanks 

 

Labels (3)
1 Reply
Chanty4u
MVP
MVP

try this

Avg(
NetworkDays(
Aggr(FirstSortedValue(DTetap, -DTetap), LIBUO, STATNOT),
Aggr(FirstSortedValue(DTetap, DTetap), LIBUO, STATNOT)
)
)