<?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: Group and Count Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758035#M269773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is helpful and I think I am on the correct track, I am at the moment trying it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically from that table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would end up having like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp; Game A Game B&lt;/P&gt;&lt;P&gt;2014-10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8375&amp;nbsp; 1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because lets say Player 1 who played 30 times in a month, it would count as 1 for GAME A, and maybe another 1 for Game B so in all it would be 2 ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 23:50:40 GMT</pubDate>
    <dc:creator>stevegimbrollmt</dc:creator>
    <dc:date>2014-11-03T23:50:40Z</dc:date>
    <item>
      <title>Group and Count Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758033#M269771</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 am not how I go about this, even how to title it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let me try and explain. Take this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 390px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="43" width="70"&gt;YearMonth&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;Active Players&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;Game A&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;Game B&lt;/TD&gt;&lt;TD class="xl64" width="64"&gt;NumberofGamesPlayed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="70"&gt;2014-10&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;28/10/2014&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;508&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;484&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;18&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;502&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21" width="70"&gt;2014-10&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;27/10/2014&lt;/TD&gt;&lt;TD class="xl70" width="64"&gt;2,011&lt;/TD&gt;&lt;TD class="xl70" width="64"&gt;2,067&lt;/TD&gt;&lt;TD class="xl71" width="64"&gt;56&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;2,123&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="70"&gt;2014-10&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;26/10/2014&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;2,160&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;2,229&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;47&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;2276&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="21" width="70"&gt;2014-10&lt;/TD&gt;&lt;TD class="xl69" width="64"&gt;25/10/2014&lt;/TD&gt;&lt;TD class="xl70" width="64"&gt;1,875&lt;/TD&gt;&lt;TD class="xl70" width="64"&gt;1,907&lt;/TD&gt;&lt;TD class="xl71" width="64"&gt;48&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;1955&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="70"&gt;2014-10&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;24/10/2014&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;1,821&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;1,817&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;42&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;1859&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="70"&gt;&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;8375&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;8504&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;211&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;8715&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="70"&gt;&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl72" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;So if&lt;STRONG&gt;&amp;nbsp; Player X &lt;/STRONG&gt;plays &lt;STRONG&gt;Game Product A&lt;/STRONG&gt; 10 times in a month and plays on &lt;STRONG&gt;Game Product B&lt;/STRONG&gt; 10 times.&amp;nbsp; The value of &lt;STRONG&gt;NumberOfGamesPlayed&lt;/STRONG&gt; would be 2. not 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;And for the active number of players in a month (8375 in the example above I need to know the average of all players value for NumberOfGamesPlayed - &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;STRONG&gt;the average number of Games&amp;nbsp; Product played&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;How can I go about this, I have tried using AGGR to check if GameA&amp;gt;0 than 1 and than try and Sum that but its not working&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 22:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758033#M269771</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2014-11-03T22:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group and Count Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758034#M269772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose your source data is&lt;/P&gt;&lt;P&gt;Player, YearMonth, Date, Game A, Game B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with YearMonth as dimension&lt;/P&gt;&lt;P&gt;expression maybe&lt;/P&gt;&lt;P&gt;sum(aggr(rangesum(if(SUM([Game A])&amp;gt;0,1), if(sum([Game B])&amp;gt;0,1)), YearMonth, Player))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 22:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758034#M269772</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-03T22:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Group and Count Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758035#M269773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is helpful and I think I am on the correct track, I am at the moment trying it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically from that table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would end up having like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&amp;nbsp;&amp;nbsp; Game A Game B&lt;/P&gt;&lt;P&gt;2014-10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8375&amp;nbsp; 1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because lets say Player 1 who played 30 times in a month, it would count as 1 for GAME A, and maybe another 1 for Game B so in all it would be 2 ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 23:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758035#M269773</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2014-11-03T23:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Group and Count Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758036#M269774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to confirm that what I have asked for, and what you answered is very very close to what is needed, I say almost, because it does exactly what it needs, I just need to think of extra logic for the next step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. mission accomplished on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 22:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-and-Count-Expression/m-p/758036#M269774</guid>
      <dc:creator>stevegimbrollmt</dc:creator>
      <dc:date>2014-11-10T22:41:02Z</dc:date>
    </item>
  </channel>
</rss>

