<?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: Subtotals Incorrect in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912606#M652517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I get the scenario. The answer you've just found is one of the possible. You can solve it with AGGR() too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've loaded the following test data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 01/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 02/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 04/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mary, 01/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mary , 05/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paul, 02/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paul, 06/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paul, 07/01/2015&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below there are three expressions/columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The first one is your problem scenario, if I got it right.&lt;/P&gt;&lt;P&gt;2. The second one is your solution, counting couples of "name-date".&lt;/P&gt;&lt;P&gt;3. The third is a solution using AGGR(). Note the Sum used over the AGGR count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="23-07-2015 15-19-19.jpg" class="jive-image image-1" src="/legacyfs/online/93792_23-07-2015 15-19-19.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My answer came a little late, but I still wanted to mention the AGGR alternative.&lt;/P&gt;&lt;P&gt;Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 18:21:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-23T18:21:31Z</dc:date>
    <item>
      <title>Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912600#M652510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Book Antiqua','serif';"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am having difficulty with a subtotal. My expression is a simple count of date as it relates to a person. For example, data with dates 7/20, 7/21, 7/22, 7/23, and 7/24 under my name would register as 5 days of entered data. My calculation is &lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: blue;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: blue;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: maroon;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: black;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: black;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Book Antiqua','serif';"&gt;which returns the correct individual results but the subtotal is not correct. I want the subtotal to be all names and distinct dates sum. The data is in a pivot table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912600#M652510</guid>
      <dc:creator>danm84306</dc:creator>
      <dc:date>2015-07-23T15:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912601#M652511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to change the expression total to sum of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 16:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912601#M652511</guid>
      <dc:creator>kmswetha</dc:creator>
      <dc:date>2015-07-23T16:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912602#M652512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is not an option, All grey. I do not have a dimension limits tab as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 16:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912602#M652512</guid>
      <dc:creator>danm84306</dc:creator>
      <dc:date>2015-07-23T16:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912603#M652513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't a simple &lt;STRONG&gt;count(DISTINCT Date)&lt;/STRONG&gt; return what you need? Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS.: I'm assuming the "Name" field is being used as dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 17:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912603#M652513</guid>
      <dc:creator />
      <dc:date>2015-07-23T17:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912604#M652514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Name is the Dimension. The individual calculation works but the sum total does not, it will only count the individual dates. I need sum total of date per name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 17:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912604#M652514</guid>
      <dc:creator>danm84306</dc:creator>
      <dc:date>2015-07-23T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912605#M652516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The answer to this issue is Count(Distinct Date&amp;amp;Name). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912605#M652516</guid>
      <dc:creator>danm84306</dc:creator>
      <dc:date>2015-07-23T18:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotals Incorrect</title>
      <link>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912606#M652517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I get the scenario. The answer you've just found is one of the possible. You can solve it with AGGR() too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've loaded the following test data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, Date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 01/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 02/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; John, 04/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mary, 01/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mary , 05/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paul, 02/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paul, 06/01/2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paul, 07/01/2015&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below there are three expressions/columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The first one is your problem scenario, if I got it right.&lt;/P&gt;&lt;P&gt;2. The second one is your solution, counting couples of "name-date".&lt;/P&gt;&lt;P&gt;3. The third is a solution using AGGR(). Note the Sum used over the AGGR count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="23-07-2015 15-19-19.jpg" class="jive-image image-1" src="/legacyfs/online/93792_23-07-2015 15-19-19.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My answer came a little late, but I still wanted to mention the AGGR alternative.&lt;/P&gt;&lt;P&gt;Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtotals-Incorrect/m-p/912606#M652517</guid>
      <dc:creator />
      <dc:date>2015-07-23T18:21:31Z</dc:date>
    </item>
  </channel>
</rss>

