Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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)
)
)