<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Churn Calculation in crosstab in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Churn-Calculation-in-crosstab/m-p/1267187#M399071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with : Week, delay, subs, unsubs.&lt;/P&gt;&lt;P&gt;I want to calculate the churn (&lt;SPAN style="font-size: 13.3333px;"&gt;unsubs&lt;/SPAN&gt;/subs) by week and delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use "sum(unsubs)/sum(subs)", the formula works when the table is collapsed.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="churn_calculation2.JPG" class="jive-image image-1" height="77" src="https://community.qlik.com/legacyfs/online/151452_churn_calculation2.JPG" style="height: 77.3481px; width: 298px;" width="298" /&gt;&lt;/P&gt;&lt;P&gt;But If I expend the table, the formula no longer works &lt;SPAN style="font-size: 13.3333px;"&gt;because subs take place on delay 0 and unsubs may occur in other delay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="churn_calculation3.JPG" class="jive-image image-2" height="108" src="https://community.qlik.com/legacyfs/online/151453_churn_calculation3.JPG" style="height: 107.642px; width: 331px;" width="331" /&gt;&lt;/P&gt;&lt;P&gt;So I use this formula:&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0 or IsNull(rowno()) or rowno()=0 or (Dimensionality()=1 and rowno()&amp;gt;0)&lt;/P&gt;&lt;P&gt;,sum(Desabo)/sum(Abo)&lt;/P&gt;&lt;P&gt;,sum(Desabo)/rangesum(above(sum(Abo),0,rowno()))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'd like to find a formula which don't need to use the condition "&lt;SPAN style="font-size: 13.3333px;"&gt;if(Dimensionality()=0 or IsNull(rowno()) or rowno()=0 or (Dimensionality()=1 and rowno()&amp;gt;0)&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to do this?&lt;/P&gt;&lt;P&gt;Please find attached the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 16:00:43 GMT</pubDate>
    <dc:creator>sarafamiglietti</dc:creator>
    <dc:date>2017-01-31T16:00:43Z</dc:date>
    <item>
      <title>Churn Calculation in crosstab</title>
      <link>https://community.qlik.com/t5/QlikView/Churn-Calculation-in-crosstab/m-p/1267187#M399071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with : Week, delay, subs, unsubs.&lt;/P&gt;&lt;P&gt;I want to calculate the churn (&lt;SPAN style="font-size: 13.3333px;"&gt;unsubs&lt;/SPAN&gt;/subs) by week and delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use "sum(unsubs)/sum(subs)", the formula works when the table is collapsed.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="churn_calculation2.JPG" class="jive-image image-1" height="77" src="https://community.qlik.com/legacyfs/online/151452_churn_calculation2.JPG" style="height: 77.3481px; width: 298px;" width="298" /&gt;&lt;/P&gt;&lt;P&gt;But If I expend the table, the formula no longer works &lt;SPAN style="font-size: 13.3333px;"&gt;because subs take place on delay 0 and unsubs may occur in other delay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="churn_calculation3.JPG" class="jive-image image-2" height="108" src="https://community.qlik.com/legacyfs/online/151453_churn_calculation3.JPG" style="height: 107.642px; width: 331px;" width="331" /&gt;&lt;/P&gt;&lt;P&gt;So I use this formula:&lt;/P&gt;&lt;P&gt;if(Dimensionality()=0 or IsNull(rowno()) or rowno()=0 or (Dimensionality()=1 and rowno()&amp;gt;0)&lt;/P&gt;&lt;P&gt;,sum(Desabo)/sum(Abo)&lt;/P&gt;&lt;P&gt;,sum(Desabo)/rangesum(above(sum(Abo),0,rowno()))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'd like to find a formula which don't need to use the condition "&lt;SPAN style="font-size: 13.3333px;"&gt;if(Dimensionality()=0 or IsNull(rowno()) or rowno()=0 or (Dimensionality()=1 and rowno()&amp;gt;0)&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to do this?&lt;/P&gt;&lt;P&gt;Please find attached the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Churn-Calculation-in-crosstab/m-p/1267187#M399071</guid>
      <dc:creator>sarafamiglietti</dc:creator>
      <dc:date>2017-01-31T16:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Churn Calculation in crosstab</title>
      <link>https://community.qlik.com/t5/QlikView/Churn-Calculation-in-crosstab/m-p/1267188#M399072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Desabo)/Sum(TOTAL &amp;lt;Week&amp;gt;Abo)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 16:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Churn-Calculation-in-crosstab/m-p/1267188#M399072</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-31T16:04:24Z</dc:date>
    </item>
  </channel>
</rss>

