Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.