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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
wanass123
Contributor III
Contributor III

Qlik average time calculator

Hello everyone 

Please I have below data example and I need to create KPI with average time when : 

Ticket transferred from Level3 to Level2 And Team from Support Team to Retail Manager for the same ticket 

in below example result is :  ( 1/3/2020 14:52 ) - ( 1/2/2020 9:56 ) = 1.205 Days = 28.92 Hours ( by excel ) 

Ticket IDCreateduserTypeTeam from Team To Level
5-122431/2/2020 9:56User31Owner GroupSupport TeamRetail ManagerLevel3
5-122441/3/2020 14:52User453Owner GroupRetail ManagerSupport TeamLevel2

 

How I can do this calculation in Qlik difference between two lines times , with this specific conditions   

Thanks in advance .

Labels (2)
3 Replies
PriyankaShivhare
Creator II
Creator II

add one more measure in table with expression above(created)
then use interval function to calculate the difference

thanks,
Priyanka
Anil_Babu_Samineni
MVP
MVP

Can you please share 10 rows and explain the output?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
wanass123
Contributor III
Contributor III
Author

I found the solution thank you very much 

solution : 


NoConcatenate
RetailData:
Load *, if((Team To) = 'Retail Manager ', Interval(Previous(CREATED)-(CREATED),'HH')) as Pendingtime
Resident RetailData ;
Drop table RetailData;