<?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: Doubt in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765058#M271907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what do you think about this set analysis? I have a terrible head ache!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;(Count(distinct{&amp;lt;[SALESID]={'PV0***'},ESTADO_PEDIDO=,CalendarMonthName=,CalendarYear=,CONTADOR_COMPRAS-={'0','1','2'},&lt;/P&gt;&lt;P&gt;DATEFINANCIAL_LINE= {"&amp;gt;=$(=max(DATEFINANCIAL_LINE-360))&amp;lt;=$(=max(DATEFINANCIAL_LINE))"}&amp;gt; } CUSTACCOUNT_CONTADOR))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count(distinct{&amp;lt;[SALESID]={'PV0***'},ESTADO_PEDIDO=,CalendarMonthName=,CalendarYear=,&lt;/P&gt;&lt;P&gt;DATEFINANCIAL_LINE= {"&amp;gt;=$(=max(DATEFINANCIAL_LINE-360))&amp;lt;=$(=max(DATEFINANCIAL_LINE))"}&amp;gt; } CUSTACCOUNT_CONTADOR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 11:06:38 GMT</pubDate>
    <dc:creator>ecabanas</dc:creator>
    <dc:date>2014-12-19T11:06:38Z</dc:date>
    <item>
      <title>Doubt in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765055#M271904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have a table with salesid and customer Id.&lt;/P&gt;&lt;P&gt;To know the Customer Retention Rate (CRR) I'm using this formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[SALESID]={'PV0***'}&amp;gt; } SALESID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count(DISTINCT{&amp;lt;[SALESID]={'PV0***'}&amp;gt; } CUSTACCOUNT_CONTADOR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the monthly results are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;October&amp;nbsp; November&lt;/P&gt;&lt;P&gt;0,33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But If I select the two months I have a bad result, is it possible to have and average of the months? If I select the month October the result equal to 0,33, but I select october and november= Average&amp;nbsp; of 0,33 and 0,34&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765055#M271904</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2014-12-19T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765056#M271905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not a problem with set analysis. You count distinct, so if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;CUSTACCOUNT_CONTADOR exists in both months it will still only be counted once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(Aggr(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;[SALESID]={'PV0***'}&amp;gt; } SALESID)&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{&amp;lt;[SALESID]={'PV0***'}&amp;gt; } CUSTACCOUNT_CONTADOR)&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;SPAN style="font-size: 13.3333339691162px; line-height: 1.5em;"&gt;[MonthYear]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765056#M271905</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-12-19T09:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765057#M271906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MAny many Thank's Simen!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 10:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765057#M271906</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2014-12-19T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765058#M271907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what do you think about this set analysis? I have a terrible head ache!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;(Count(distinct{&amp;lt;[SALESID]={'PV0***'},ESTADO_PEDIDO=,CalendarMonthName=,CalendarYear=,CONTADOR_COMPRAS-={'0','1','2'},&lt;/P&gt;&lt;P&gt;DATEFINANCIAL_LINE= {"&amp;gt;=$(=max(DATEFINANCIAL_LINE-360))&amp;lt;=$(=max(DATEFINANCIAL_LINE))"}&amp;gt; } CUSTACCOUNT_CONTADOR))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count(distinct{&amp;lt;[SALESID]={'PV0***'},ESTADO_PEDIDO=,CalendarMonthName=,CalendarYear=,&lt;/P&gt;&lt;P&gt;DATEFINANCIAL_LINE= {"&amp;gt;=$(=max(DATEFINANCIAL_LINE-360))&amp;lt;=$(=max(DATEFINANCIAL_LINE))"}&amp;gt; } CUSTACCOUNT_CONTADOR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 11:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-in-set-analysis/m-p/765058#M271907</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2014-12-19T11:06:38Z</dc:date>
    </item>
  </channel>
</rss>

