Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
nich_olas
Contributor II
Contributor II

How to count the Max/Min/Avg for Individual Car when the Status change

Hi, I've the following data. I want to find out the Max, Min and Avg for individual car when the status change. Example, how days in term of MAX, Min and Avg IN/#IN before the status change to OUT/#OUT. This apply to OUT change to IN. # is assessed which i need to count them too.

Example based on the sample data below.

Car A

Max IN = 3.5 days (is the bold below)

Min IN = 0.5 days

Max OUT = 3.5 days

Min OUT = 0.5 days

DateCarAMPM
1/1/2020AININ
2/1/2020AININ
3/1/2020AOUTOUT
4/1/2020AINOUT
5/1/2020AOUTOUT
6/1/2020BOUTOUT
6/1/2020AININ
7/1/2020AININ
8/1/2020A#IN#IN
9/1/2020AINOUT
10/1/2020BININ
10/1/2020A#OUTOUT
11/1/2020BININ

 

See the manual work out column for the counts. I want it to auto count in QilkSense KPI.

 

DateCarAMPMManual work out
1/1/2020AININ2 days IN (0.5 x 4)
2/1/2020AININ
3/1/2020AOUTOUT1 day OUT
4/1/2020AINOUT0.5 IN
0.5 OUT
5/1/2020AOUTOUT2 days OUT
6/1/2020BOUTOUT
6/1/2020AININ3.5 days IN
0.5 day OUT
7/1/2020AININ
8/1/2020A#IN#IN
9/1/2020AINOUT
10/1/2020BININ 
10/1/2020A#OUTOUT 
11/1/2020BININ 

 

Those are sample data. My data consist of other cars in the same table. Please help me. Thank you

0 Replies