Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.

App Development

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now

Who Me Too'd this topic

michele_stenico
Partner - Contributor III
Partner - Contributor III

How drawing a Matrix showing number of changes between a current and previous Class

Hi,

I start from this kind of Input Date

NDC,Data,Class
1,2020/01/01,A
1,2020/02/01,B
2,2020/01/01,A
2,2020/02/01,A
3,2020/01/01,C
3,2020/02/01,A
4,2020/01/01,B
4,2020/02/01,B
];

I would like  to count the number of Class Changing of my Customer and show the results in a matrix like this.

  Current Class
  ABC
Previous ClassA110
B010
C100

 

I could calculate the previous Class in the Load Script, using previous function, but I would like to be able to do it in the presentation, may be using additional dimension (e.g Class_Prev, Class_Cur).

Could you help me ?

Michele

 

 

 

 

 

 

 

 

Labels (2)
Who Me Too'd this topic