<?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: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869832#M304142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much ! That was the only&amp;nbsp; thing I need !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk thanks a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 04:33:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-08T04:33:35Z</dc:date>
    <item>
      <title>AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869823#M304133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to know if there is posible to With this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sells:&lt;/STRONG&gt;&lt;BR /&gt;MonthYear,&lt;BR /&gt;Client,&lt;BR /&gt;Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to create an expression that COUNT de quantity of clients that buy a product in the diferents 12 months of the year.&lt;BR /&gt;The table only have the dimenson of the product.&lt;/P&gt;&lt;P&gt;Then, I will have to do the same but for those clients that only&amp;nbsp; buy the produc in 11 months of the year.. and one expresion for the 10 months and one expression for the 9&amp;nbsp; etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least the user will be able to select the 12 months&amp;nbsp; stanting in the monthYear he prefer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, help me, I do not know how to do this !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 01:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869823#M304133</guid>
      <dc:creator />
      <dc:date>2015-04-08T01:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869824#M304134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can do this with aggr() dynamically, but an easier approach would be to calculate the number of month first in the script and then simply use set analysis:&lt;/P&gt;&lt;P&gt;Please find qvw example attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;Data_Inline_sum:&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;count(MonthYear) as MonthYear_count,&lt;/P&gt;&lt;P&gt;Client,&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Resident Data_Inline Group By Client, Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Chart object:&lt;/P&gt;&lt;P&gt;Dimension: Product&lt;/P&gt;&lt;P&gt;Expression 1: count({&amp;lt;MonthYear_count={12}&amp;gt;} DISTINCT Client)&lt;/P&gt;&lt;P&gt;Expression 2: count({&amp;lt;MonthYear_count={11}&amp;gt;} DISTINCT Client)&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 02:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869824#M304134</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-08T02:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869825#M304135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel !&lt;BR /&gt;Thank you very much for your help !!&lt;/P&gt;&lt;P&gt;I am not sure if&amp;nbsp; I can use your answear, but let me tell you it is a great idea anyway.&lt;/P&gt;&lt;P&gt;The problem is that I do not have all my fiels in the same table, I am using a Link Table and they are in differents tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other point is that I am using YearnMonths fields&amp;nbsp; so the user uses a SLIDER control to select the 12 months. That's why they can chose for example&amp;nbsp; 201306 to 201405. In this case the expresion for month 1 refers to&amp;nbsp; June of 2013 and the expression for month 2 refers to July 2013. But I will depend of the user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, tell me if I there is anyway to solve this. I am out of time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk you very much for your concern !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 02:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869825#M304135</guid>
      <dc:creator />
      <dc:date>2015-04-08T02:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869826#M304136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension : Product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 12 Months:&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Count(DISTINCT MonthYear) = 12, 1, 0), Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For 11 Months:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum(Aggr(If(Count(DISTINCT MonthYear) = 11, 1, 0), Client)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;For 10 Months:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sum(Aggr(If(Count(DISTINCT MonthYear) = 10, 1, 0), Client)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;'&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 02:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869826#M304136</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-08T02:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869827#M304137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the fact that your fields are in different tables (and using a link table) could it even be more difficult in an aggr() function as you might get unexpected/wrong results. I would generally recommend to join all necessary fields in one seperate table if you would like to go with an aggr() approach.&lt;/P&gt;&lt;P&gt;Just as a note: maybe you can also think about using variables for the slider instead of the field - you could use the set analysis filter from my example the same way.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 02:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869827#M304137</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-08T02:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869828#M304138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan!&lt;BR /&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;I seems to be working, but only when you select un procuct in particular. If you do not select anyone the values change. I do not know how to fix it.. but you are very close !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869828#M304138</guid>
      <dc:creator />
      <dc:date>2015-04-08T03:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869829#M304139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try Daniel !&lt;BR /&gt;I am not a great programer but I will try an let you know !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869829#M304139</guid>
      <dc:creator />
      <dc:date>2015-04-08T03:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869830#M304140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe if you add&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,Product&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right after Client as last element of the aggr()&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(Count(DISTINCT MonthYear) = 12, 1, 0), Client, Product)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869830#M304140</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-08T03:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869831#M304141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding Product as another parameter to Aggr()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;For 12 Months:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Sum(Aggr(If(Count(DISTINCT MonthYear) = 12, 1, 0), Client, Product)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 03:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869831#M304141</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-04-08T03:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869832#M304142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much ! That was the only&amp;nbsp; thing I need !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk thanks a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 04:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869832#M304142</guid>
      <dc:creator />
      <dc:date>2015-04-08T04:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869833#M304143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rodrigo - but maybe you should rather mark Jagan's last post as correct as I was just adding something to his idea.&lt;/P&gt;&lt;P&gt;Thanks anyway&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 04:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869833#M304143</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-08T04:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR  COUNT MONTHS WHERE A PRODUCT WERE BUY FOR A CLIENT</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869834#M304144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right Daniel !&lt;/P&gt;&lt;P&gt;Thanks for been so correct person, it is nice to work with this kind of people !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot again !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 12:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-COUNT-MONTHS-WHERE-A-PRODUCT-WERE-BUY-FOR-A-CLIENT/m-p/869834#M304144</guid>
      <dc:creator />
      <dc:date>2015-04-08T12:02:27Z</dc:date>
    </item>
  </channel>
</rss>

