<?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: First Row in Chart Expression returns table value and not Sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251872#M620416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression that you used? Is this what you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Code, CodeDate, GroupNo&amp;gt; People)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 11:58:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-08T11:58:25Z</dc:date>
    <item>
      <title>First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251871#M620415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to show the sum of people in a chart against every date which the key was recorded against in the database. &lt;/P&gt;&lt;P&gt;The Key is Code - CodeDate - GroupNo (2AIKG|29/08/2006|8)&lt;/P&gt;&lt;P&gt;It is working fine except for two rows in the chart.&amp;nbsp; The first row and a row in the middle.&lt;/P&gt;&lt;P&gt;The chart looks like this.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/155602_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see the first line in the chart shows 3000 for recorded Date 29/08/2006 however I need to it show 12002 for that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the data to show what the original looks like in a regular table.&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155601_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;I did make another chart adding in the rank number to the chart for an explanation.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/155606_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;So from what I understand the sum expressions 'Sum(People)' is summing on Code, CodeDate, GroupNo and Rank however I only want it to sum on Code, CodeDate and GroupNo. (Basically sum the middle table of this post for every recorded date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 11:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251871#M620415</guid>
      <dc:creator>tom2qlik</dc:creator>
      <dc:date>2017-03-08T11:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251872#M620416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression that you used? Is this what you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Code, CodeDate, GroupNo&amp;gt; People)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 11:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251872#M620416</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-08T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251873#M620417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first table in the post above is simply sum(people).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; people&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CodeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;GroupNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, Rank&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;)) &lt;/STRONG&gt;however it only returns a single row as shown below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155613_pastedImage_6.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251873#M620417</guid>
      <dc:creator>tom2qlik</dc:creator>
      <dc:date>2017-03-08T12:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251874#M620418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(TOTAL &amp;lt;Code, CodeDate, GroupNo&amp;gt; People)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(NoDistinct Count(People), Code, CodeDate, GroupNo)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251874#M620418</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-08T12:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251875#M620419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: Helvetica;"&gt;Sum(TOTAL &amp;lt;Code, CodeDate, GroupNo&amp;gt; People)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Produces this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/155619_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Which I believe is 12002 (Table 2 in original post) * Number of rows for Recorded Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this expression -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(NoDistinct Count(People), Code, CodeDate, GroupNo)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Produces this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155614_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251875#M620419</guid>
      <dc:creator>tom2qlik</dc:creator>
      <dc:date>2017-03-08T12:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251876#M620420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I meant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(NoDistinct &lt;SPAN style="color: #ff0000;"&gt;Sum&lt;/SPAN&gt;(People), Code, CodeDate, GroupNo)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the above won't work as well... Will it possible for you to share a sample to look at the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251876#M620420</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-08T12:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251877#M620421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I have written the script like it is, is because I want to create accumulative fields later on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251877#M620421</guid>
      <dc:creator>tom2qlik</dc:creator>
      <dc:date>2017-03-08T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251878#M620422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Code, CodeDate, GroupNo&amp;gt; Aggr(Test_One.people, Code, CodeDate, GroupNo, Test_One.Rank))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251878#M620422</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-08T14:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: First Row in Chart Expression returns table value and not Sum</title>
      <link>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251879#M620423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/First-Row-in-Chart-Expression-returns-table-value-and-not-Sum/m-p/1251879#M620423</guid>
      <dc:creator>tom2qlik</dc:creator>
      <dc:date>2017-03-08T14:23:13Z</dc:date>
    </item>
  </channel>
</rss>

