<?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: Dynamic customer retention rate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128707#M752408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Tasnim. No, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(OrderDate) is not static, it gets the max selected (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;available&lt;/SPAN&gt;) value. &lt;SPAN lang="en"&gt;I've used this statement to avoid situations when several &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OrderDates &lt;/SPAN&gt;are selected and the expression would give an error. In other cases, when a single value is selected, it’s the same thing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 14:42:33 GMT</pubDate>
    <dc:creator>andrey_krylov</dc:creator>
    <dc:date>2018-10-25T14:42:33Z</dc:date>
    <item>
      <title>Dynamic customer retention rate</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128704#M752405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need an expert opinion on this matter, I need to calculate the customer retention rate with a dynamic date selected on the chart and then rollback with a year and compare it to the previous year, for exemple&amp;nbsp; if i select 10/23/2018 then date selection would be from 10/23/2017 to 10/23/2018 and get the rate pourcentage between 10/23/2017-10/23/2018 and &lt;SPAN style="font-size: 13.3333px;"&gt;10/23/2017-10/23/2016. so i tried to use this expression :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum(distinct{$&amp;lt;&lt;/P&gt;&lt;P&gt;CLIENTID=&lt;SPAN style="font-size: 10pt;"&gt;p({&amp;lt;OrderDate={"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;=$(=date(AddYears(date(GetFieldSelections(OrderDate)),-2)))&lt;/P&gt;&lt;P&gt;&amp;lt;=$(=date(AddYears(date(GetFieldSelections(OrderDate)),-1)))"&lt;SPAN style="font-size: 10pt;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;p({&amp;lt;OrderDate={"&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;=$(=date(AddYears(date(GetFieldSelections(OrderDate)),-1)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=$(=date(GetFieldSelections([OrderDate])))"&lt;SPAN style="font-size: 10pt;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;}CLIENTID)&lt;/P&gt;&lt;P&gt;but it doesn't, is this the right approach? if not how to proceed ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128704#M752405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic customer retention rate</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128705#M752406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tasnim. &lt;SPAN style="line-height: 19.5px; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(distinct{$&amp;lt; &lt;SPAN style="line-height: 1.5em;"&gt;CLIENTID= &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;p({&amp;lt;OrderDate=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;{"&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;gt;=$(=date(AddYears(Max(OrderDate),-2)))&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;lt;=$(=date(AddYears(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;OrderDate),-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CLIENTID) &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;p({&amp;lt;OrderDate={"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;=$(=date(AddYears(Max(OrderDate),-1)))&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;lt;=$(=date(Max([OrderDate])))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CLIENTID) &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;gt;}CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(distinct {$&amp;lt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;OrderDate={"&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;gt;=$(=date(AddYears(Max(OrderDate),-2)))&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;lt;=$(=date(AddYears(Max(OrderDate),-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;gt;} CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 17:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128705#M752406</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-24T17:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic customer retention rate</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128706#M752407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey, Thank you for your quick response but this expression makes static selection , but I want to be able to choose the end date of my year on the char that's why i used the "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;GetFieldSelections" and from that variable rollback with a year&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128706#M752407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-25T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic customer retention rate</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128707#M752408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Tasnim. No, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(OrderDate) is not static, it gets the max selected (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;available&lt;/SPAN&gt;) value. &lt;SPAN lang="en"&gt;I've used this statement to avoid situations when several &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OrderDates &lt;/SPAN&gt;are selected and the expression would give an error. In other cases, when a single value is selected, it’s the same thing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128707#M752408</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-25T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic customer retention rate</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128708#M752409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again Andrey, this expression is working but not the right output , it only selects one month and same month last year and what I want is&amp;nbsp; this year and the year before, I tried tweaking the expression but still no result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 10:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128708#M752409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-05T10:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic customer retention rate</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128709#M752410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tasnim. Why do you think it selects the only one month? But.. m&lt;SPAN lang="en"&gt;aybe I misunderstood the issue and you need somthing different. You know, if you replace &lt;STRONG&gt;sum&lt;/STRONG&gt; with &lt;STRONG&gt;count&lt;/STRONG&gt; in your expression it will count the customers that are in both periods only&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(distinct{$&amp;lt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CLIENTID=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;p({&amp;lt;OrderDate={"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;=$(=date(AddYears(date(GetFieldSelections(OrderDate)),-2)))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=$(=date(AddYears(date(GetFieldSelections(OrderDate)),-1)))"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({&amp;lt;OrderDate={"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;=$(=date(AddYears(date(GetFieldSelections(OrderDate)),-1)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;=$(=date(GetFieldSelections([OrderDate])))"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}CLIENTID)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and that is the same that in my expression is highlighted&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff6600;"&gt;Count(distinct{$&amp;lt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;CLIENTID= &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;p({&amp;lt;OrderDate=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;{"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;gt;=$(=date(AddYears(Max(OrderDate),-2)))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;lt;=$(=date(AddYears(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Max(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;OrderDate),-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CLIENTID) &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;* &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;p({&amp;lt;OrderDate={"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;=$(=date(AddYears(Max(OrderDate),-1)))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;lt;=$(=date(Max([OrderDate])))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;CLIENTID) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff6600; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&amp;gt;}CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(distinct {$&amp;lt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;OrderDate={"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;gt;=$(=date(AddYears(Max(OrderDate),-2)))&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;lt;=$(=date(AddYears(Max(OrderDate),-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;gt;} CLIENTID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;so I suppose there must be something else&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-customer-retention-rate/m-p/128709#M752410</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-11-05T20:40:00Z</dc:date>
    </item>
  </channel>
</rss>

