Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
thomas_2583
Contributor III
Contributor III

Retention Calculation

Hi, 

I have a calculation whereby I calculate the number of people that have cancelled their subscription. 

What I am looking for is to flip it, so the number displayed is a % of customers that have stayed.

The calculation below gives me 24% which is the % of customers that have cancelled. 

count({<Prod_Z={'Y'},Can_Months={'<2'}>}Count_Flag)
/
count({<Prod_Z={'Y'}>}Count_Flag)

What I would like to see if 76% as my output to show the % value of customers that have stayed. 

Any idea how I can flip this please?

1 Solution

Accepted Solutions
MayilVahanan

Hi @thomas_2583 

Try like this

1- (count({<Prod_Z={'Y'},Can_Months={'<2'}>}Count_Flag)
/
count({<Prod_Z={'Y'}>}Count_Flag))

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi @thomas_2583 

Try like this

1- (count({<Prod_Z={'Y'},Can_Months={'<2'}>}Count_Flag)
/
count({<Prod_Z={'Y'}>}Count_Flag))

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.