<?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 Help with grouping with the specified dimention in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209245#M1209203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your reply did got me thinking in the right direction.&lt;/P&gt;&lt;P&gt;What ultimately worked for me was&lt;/P&gt;&lt;P&gt;sum((aggr(count(distinct LOGONDATE), LOGONDATE_MONTH,NTID)))&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 00:29:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-11T00:29:55Z</dc:date>
    <item>
      <title>Help with grouping with the specified dimention</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209243#M1209201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help on counting occurrence of a filed in the table grouping by a filed that is NOT in the dimension that I have chosen.&lt;/P&gt;&lt;P&gt;In SQL world the table looks like:&lt;/P&gt;&lt;P&gt;Note a user can log into system any no of time in a data. My query is to plot a graph of unique visitors of the system on a daily basis BUT plot the graph on a monthly basis by summing up the daily unique visitors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 110pt;" width="146"&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;COL style="width: 14pt;" width="18" /&gt;&lt;COL style="width: 48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height: 12.75pt; width: 48pt;" width="64"&gt;Logondate&lt;/TD&gt;&lt;TD class="xl24" style="width: 14pt;" width="18" str=" | "&gt;|&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;ReqID&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40151.458333333336"&gt;12/4/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;achan&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40150.472222222219"&gt;12/3/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;achan&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40152.083333333336"&gt;12/5/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;alx&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40153.125"&gt;12/6/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;alx&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40148.625"&gt;12/1/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;ateo&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40148.666666666664"&gt;12/1/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;ateo&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40148"&gt;12/1/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;ateo&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40149.520833333336"&gt;12/2/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;daheller&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40149.541666666664"&gt;12/2/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;daheller&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40150"&gt;12/3/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;jdoe&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40151.541666666664"&gt;12/4/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;mssar&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40152.541666666664"&gt;12/5/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;mssar&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="height: 12.75pt;" num="40153.541666666664"&gt;12/6/2009&lt;/TD&gt;&lt;TD class="xl24" str=" | "&gt;|&lt;/TD&gt;&lt;TD&gt;mssar&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My SQL query for plotting the graph is:&lt;/P&gt;&lt;P&gt;select time, sum(count) tot_login from&lt;/P&gt;&lt;P&gt;(select reqid, trunc(logondate, 'month') time, count(distinct logondate) count from trackuserlogin group by reqid, trunc(logondate, 'month'))&lt;/P&gt;&lt;P&gt;group by time&lt;/P&gt;&lt;P&gt;As you can see I have 2 levels of grouping, first to count unique days a visitor has logged into the system in a month and then SUM up this number on a monthly basis for all the users.&lt;/P&gt;&lt;P&gt;I am loading logondate field rounded to month into QV.&lt;/P&gt;&lt;P&gt;So my graph has dimension as login month BUT I am unable to find what to put in the expression field.&lt;/P&gt;&lt;P&gt;I have tried to understand aggr function in vain.&lt;/P&gt;&lt;P&gt;Kindly help or comment or point to the right forum case related to this issue I am facing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 00:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209243#M1209201</guid>
      <dc:creator />
      <dc:date>2010-01-20T00:45:03Z</dc:date>
    </item>
    <item>
      <title>Help with grouping with the specified dimention</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209244#M1209202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Aggr(Sum(FIELD), DIMENSION)&lt;BR /&gt;or&lt;BR /&gt;Aggr(distinct Sum(FIELD), DIMENSION)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 19:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209244#M1209202</guid>
      <dc:creator />
      <dc:date>2010-01-20T19:08:04Z</dc:date>
    </item>
    <item>
      <title>Help with grouping with the specified dimention</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209245#M1209203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your reply did got me thinking in the right direction.&lt;/P&gt;&lt;P&gt;What ultimately worked for me was&lt;/P&gt;&lt;P&gt;sum((aggr(count(distinct LOGONDATE), LOGONDATE_MONTH,NTID)))&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 00:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-grouping-with-the-specified-dimention/m-p/209245#M1209203</guid>
      <dc:creator />
      <dc:date>2010-02-11T00:29:55Z</dc:date>
    </item>
  </channel>
</rss>

