<?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 Re: How calculate recurrency in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015099#M344160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although there might be an easy way to do this, but I came up with this expression which seems to work except for some reason it hides the dimension when the value = 0. I think we need expert advice here from &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure he not only will get a simplified version of this expression, but will also resolve the other issue of hiding dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Customer = p({&amp;lt;Order = p({&amp;lt;MonthYear = {"$(=vVar)"}&amp;gt;})*p({&amp;lt;Order = {"=Month([Date Order]) = Month(FirstOrder)"}&amp;gt;})&amp;gt;})&amp;gt;}Order)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 16:29:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-29T16:29:48Z</dc:date>
    <item>
      <title>How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015088#M344149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a table to calculate the cohort o customer recurrency . For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculation is, how many customers return in the following months:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-01-29_14h04_34.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112977_2016-01-29_14h04_34.png" style="height: 314px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Many thank's guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015088#M344149</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-01-29T13:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015089#M344150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For First,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;people bought in Jan : &lt;STRONG&gt;count(distinct Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 2nd &amp;amp; 3rd, like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your script:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month(FirstOrder) as Firstmonth&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;month(Date Order) as Ordermonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG style="font-size: 13.3333px;"&gt;count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Firstmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;={'1'}, &lt;SPAN style="font-size: 13.3333px;"&gt;Ordermonth={'&amp;gt;1'}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;}distinct Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015089#M344150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-29T13:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015090#M344151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;Customer = p({&amp;lt;MonthYear = {"$(=MonthName(Min(MonthYear)))"}&amp;gt;})&amp;gt;}Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112987_Capture.PNG" style="height: 234px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015090#M344151</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015091#M344152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's ok, but the example was to know january, but probably I did not explain correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna know the guys who return to our site, Using a calendarmonth I wanna know dinamicaly, not harcoded, is ti possyble??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many guys from FirstOrder was january&amp;nbsp; has returned, but how many from february, march, etc???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you understant, may be i did not explain correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS:Remember the paella &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015091#M344152</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-01-29T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015092#M344153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand it still, but may be like the attached? Where you can select the MonthYear and it will show how many customers have bought in other Months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112993_Capture.PNG" style="height: 235px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015092#M344153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T13:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015093#M344154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are going in the right way, but try to select february&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanna know how many guys that his first order was in "February" Bough in march and followings...is not normal that if you did the first in february appears results in January...and the result in february has to be 1 not 2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;agghhhh it's a tricky calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015093#M344154</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-01-29T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015094#M344155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113007_Capture.PNG" style="height: 186px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 14:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015094#M344155</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T14:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015095#M344156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you Master calendar in your data model and if yes, please add month no that hold 1,2,3 etc with your Month Name ascending order. Then use the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;=Count(DISTINCT {&amp;lt;Customer = p({&amp;lt;MonthNo = {"$(=Min(MonthNo)"}&amp;gt;})&amp;gt;}Customer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you select any Month Name &amp;amp; Min(MonthNo) will give that date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015095#M344156</guid>
      <dc:creator />
      <dc:date>2016-01-29T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015096#M344157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post more sample data to test all your scenarios.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015096#M344157</guid>
      <dc:creator />
      <dc:date>2016-01-29T15:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015097#M344158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select february, there is one that first order was february (Customer C) but this guy did not returned in any month any the table says 1 in March!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many many thank's for your patience&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015097#M344158</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-01-29T15:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015098#M344159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean now. I will come back with an expression that will do that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015098#M344159</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T15:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015099#M344160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although there might be an easy way to do this, but I came up with this expression which seems to work except for some reason it hides the dimension when the value = 0. I think we need expert advice here from &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure he not only will get a simplified version of this expression, but will also resolve the other issue of hiding dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;Customer = p({&amp;lt;Order = p({&amp;lt;MonthYear = {"$(=vVar)"}&amp;gt;})*p({&amp;lt;Order = {"=Month([Date Order]) = Month(FirstOrder)"}&amp;gt;})&amp;gt;})&amp;gt;}Order)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 16:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015099#M344160</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T16:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015100#M344161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;your solution seems to work for me, even showing dimensions with zero value in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached another approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015100#M344161</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-29T17:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015101#M344162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a hidden column (Count(Customer)) which was letting me show the 0 months. I have disabled that, can you check now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/113030_Capture.PNG" style="height: 341px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015101#M344162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T17:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015102#M344163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to stress the function and I hope it will work in the real model&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Crossing fingers!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank's for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015102#M344163</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2016-01-29T17:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How calculate recurrency</title>
      <link>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015103#M344164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do look at Stefan's expression as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 17:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-calculate-recurrency/m-p/1015103#M344164</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T17:17:47Z</dc:date>
    </item>
  </channel>
</rss>

