<?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 total row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318072#M497248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The total row in a pivot table listens to rowno()=0.&lt;/P&gt;&lt;P&gt;So your expression could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno()=0,avg(Users), count(Users))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tjeerd Wieberdink&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 15:17:05 GMT</pubDate>
    <dc:creator>tabletuner</dc:creator>
    <dc:date>2011-11-14T15:17:05Z</dc:date>
    <item>
      <title>total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318071#M497247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please could anyone assist with the following,&lt;/P&gt;&lt;P&gt;I have a pivot table with a date dimension and I count the number of users per day. What I need is to then have a total row that shows the average for the date range.&lt;/P&gt;&lt;P&gt;Thank you for your assistance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kamiel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318071#M497247</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2011-11-14T15:11:49Z</dc:date>
    </item>
    <item>
      <title>total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318072#M497248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The total row in a pivot table listens to rowno()=0.&lt;/P&gt;&lt;P&gt;So your expression could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rowno()=0,avg(Users), count(Users))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tjeerd Wieberdink&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318072#M497248</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2011-11-14T15:17:05Z</dc:date>
    </item>
    <item>
      <title>total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318073#M497249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you for the quick response, the issue I have is that I only have users for specific days of the month and any user can be present on any day. is it possible to total the users, even over the date range and not distinct users&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 15:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318073#M497249</guid>
      <dc:creator>kamielrajaram</dc:creator>
      <dc:date>2011-11-14T15:42:25Z</dc:date>
    </item>
    <item>
      <title>total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318074#M497250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slight modification of Tjeerd's logic: if(rowno()=0,avg(aggr(count(Users),Date)), count(Users))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the average users per day. I personally prefer dimensionality()=0 to rowno()=0 by the way; seems to work better for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 18:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318074#M497250</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2011-11-14T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318075#M497251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd expect you to be able to just use this much of that expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;avg(aggr(count(Users),Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're on a Date row, the average should just be of a single value, and should come out right, I think.&amp;nbsp; So I don't think you'd need to check rowno() or dimensionality() in this case.&amp;nbsp; I'm not sure how or if performance would differ between the expressions, or whether that matters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Checked it.&amp;nbsp; It works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 01:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318075#M497251</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-15T01:16:51Z</dc:date>
    </item>
    <item>
      <title>total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318076#M497252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use below code &lt;/P&gt;&lt;P&gt; if ( dimensionality()=0,avg(aggr(count(Users),Date)), count(Users)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 05:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318076#M497252</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-11-15T05:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: total row</title>
      <link>https://community.qlik.com/t5/QlikView/total-row/m-p/318077#M497253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Sunil Chauhan wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use below code &lt;/P&gt;&lt;P&gt;if ( dimensionality()=0,avg(aggr(count(Users),Date)), count(Users)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Exactly&lt;/STRONG&gt;&lt;/EM&gt; what Vlad said, then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 16:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/total-row/m-p/318077#M497253</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-15T16:58:29Z</dc:date>
    </item>
  </channel>
</rss>

