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: 
alespooletto
Creator II
Creator II

How to calculate average time per each different WorkCenter in Qlik

Hello, I have the following table: 

alespooletto_0-1726653095204.png

 

Each SFC is associated with 2 time stamps: 

- Start

- Complete

And each of these 2 steps is done in a single WorkCenter only. 

I need to obtain a table that shows me the average time grouped by SFC for each of those different work centers. Is there a way to do this in Qlik? 

It shouldn't look like this graph, but it's just to give an idea of how I would like it represented after

alespooletto_1-1726653371525.png

 

Thank you!

 

Labels (2)
1 Solution

Accepted Solutions
Kushal_Chawda

@alespooletto  Assuming your Date format is properly formatted (not text) with work centre as dimension, try below measure

=time(Avg(aggr(Interval(Only({<Activity={'COMPLETE'}>}Date)-Only({<Activity={'START'}>}Date),'hh:mm:ss'),WorkCenter,MainSFC)),'hh:mm:ss')

View solution in original post

1 Reply
Kushal_Chawda

@alespooletto  Assuming your Date format is properly formatted (not text) with work centre as dimension, try below measure

=time(Avg(aggr(Interval(Only({<Activity={'COMPLETE'}>}Date)-Only({<Activity={'START'}>}Date),'hh:mm:ss'),WorkCenter,MainSFC)),'hh:mm:ss')