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

Identify the most famous pattern

Good morning,

i've got this kind of data.

LOAD * INLINE [

USER, AREA, TIME, DATE,

1,KITCHEN, 9,06/30/2023,

1, TOILET, 10,06/30/2023,

1, GARDEN, 11,06/30/2023,

2, TOILET, 9,06/30/2023,

2, KITCHEN, 10,06/30/2023,

3,KITCHEN, 9,06/30/2023,

3, TOILET, 10,06/30/2023,

3, GARDEN, 11,06/30/2023

];

I would like to have the most famous route...

for example --> route --> Kitchen, toilet, garden

 

Labels (3)
1 Solution

Accepted Solutions
MarcoWedel

Hi,

maybe one solution to identify the most frequent area sequence could be :

 

MarcoWedel_2-1688148424806.png

 

table1:
LOAD USER,
     AREA,
     Time#(TIME,'hh')							as TIME,
     Date#(DATE,'MM/DD/YYYY')					as DATE,
     Timestamp#(DATE&' '&TIME,'MM/DD/YYYY hh')	as DATETIME
INLINE [
USER, AREA, TIME, DATE
1, KITCHEN, 9,06/30/2023
1, TOILET, 10,06/30/2023
1, GARDEN, 11,06/30/2023
2, TOILET,  9,06/30/2023
2, KITCHEN,10,06/30/2023
3, KITCHEN, 9,06/30/2023
3, TOILET, 10,06/30/2023
3, GARDEN, 11,06/30/2023
4, TOILET, 10,06/29/2023
4, GARDEN, 11,06/29/2023
4, KITCHEN,12,06/29/2023
];

 

 

 

View solution in original post

3 Replies
udit_k
Partner - Creator II
Partner - Creator II

We could use Pow function to derive famous pattern 

Famous Pattern Formula:-Pow(2,sum(total<USER> aggr(distinct count(AREA),USER)))

Pattern Recognition in QlikView - Qlik Community - 807303

Carlaf_93
Creator II
Creator II
Author

Thanks but it's a little bit different...

I would like to get the most famous pattern in the same order.

So, for example, one user could go into kitchen, toilet and garden but in a different order. this would be another different pattern....

MarcoWedel

Hi,

maybe one solution to identify the most frequent area sequence could be :

 

MarcoWedel_2-1688148424806.png

 

table1:
LOAD USER,
     AREA,
     Time#(TIME,'hh')							as TIME,
     Date#(DATE,'MM/DD/YYYY')					as DATE,
     Timestamp#(DATE&' '&TIME,'MM/DD/YYYY hh')	as DATETIME
INLINE [
USER, AREA, TIME, DATE
1, KITCHEN, 9,06/30/2023
1, TOILET, 10,06/30/2023
1, GARDEN, 11,06/30/2023
2, TOILET,  9,06/30/2023
2, KITCHEN,10,06/30/2023
3, KITCHEN, 9,06/30/2023
3, TOILET, 10,06/30/2023
3, GARDEN, 11,06/30/2023
4, TOILET, 10,06/29/2023
4, GARDEN, 11,06/29/2023
4, KITCHEN,12,06/29/2023
];