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: 
datthakurs
Contributor
Contributor

QlikView Logic Building

Dear All,

I have the data in below format where P stands for Passive;N stands for new;R stands for Reacivated;A stands for Retain  and  Active is summation of R,A,N. When we are looking 12 month or 6 month count we need to consider the customer lastest status and the show the count.

For example:- suppose a customer 1 is Reactivated in Jan 2017 and Retain in Sept 2017 then in last month the count of Reactivated Customer should be zero whereas Count of Retain Customer is 1 as this is the lastest status in last 12 month

   

CALMONTH%CustomerStatus
2016111P
2016121
2017011R
2017021
2017031
2017041
2017051
2017061
2017071
2017081
2017091A
2017101
2016112P
2016122
2017012R
2017022
2017032
2017042
2017052
2017062
2017072
2017082R
2017092A
2017102A
2016113
2016123
2017013
2017023
2017033
2017043
2017053
2017063
2017073
2017083
2017093
2017103N

by using the above data i want create 3 tables i.e. Rolling 12, Rolling 6 and Current

Rolling 12

CALMONTHACTIVERetainNewReactivated
2017103210

Rolling 6

CALMONTHACTIVERetainNewReactivated
2017103210

Monthly

CALMONTHACTIVERetainNewReactivated
2017102110
0 Replies