<?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: SUM in CHART doesn't work as expected in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102531#M90082</link>
    <description>&lt;P&gt;Hello Marcus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;But I wouldn't have written if it was so simple.&lt;BR /&gt;&lt;BR /&gt;It's what I did in first place, but as I said, if I simply use sum(grossAmount), I only see one itemand not two of them:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulienM_0-1691154209154.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113615i4B06D40E257EE0BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulienM_0-1691154209154.png" alt="JulienM_0-1691154209154.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 13:03:48 GMT</pubDate>
    <dc:creator>JulienM</dc:creator>
    <dc:date>2023-08-04T13:03:48Z</dc:date>
    <item>
      <title>SUM in CHART doesn't work as expected</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102459#M90077</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'll try to be as precise as I can.&lt;BR /&gt;&lt;BR /&gt;I'm doing a sales turnover analysis. I have an xml file made like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulienM_0-1691142511445.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113601iD0FC2F0A84FDC751/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulienM_0-1691142511445.png" alt="JulienM_0-1691142511445.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When an invoice has only one line / item, everything works fine.&lt;BR /&gt;&lt;BR /&gt;When, like in the screenshot, an invoice ( for example KV1206872) has more than one item, if I make a simple table with invoice number, item etc, I can see there are two items sold.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulienM_1-1691142851945.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113602iC729401BF389E064/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulienM_1-1691142851945.png" alt="JulienM_1-1691142851945.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If I do a chart, only one item. The expressions are the issue.&lt;BR /&gt;&lt;BR /&gt;Reading different posts, I made this expression:&lt;BR /&gt;&lt;BR /&gt;=Sum(aggr(sum(TOTAL &amp;lt;invoice_Number&amp;gt; gross_Amount), invoice_Number,item_Code))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Now I can see the two items, but with the same quantity, gross_Amount etc...:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulienM_2-1691143070816.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113603i1C53DBB00AA9BF25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulienM_2-1691143070816.png" alt="JulienM_2-1691143070816.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Do I have to make changes in the XML files. Or is there a way to make an expression that works?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 10:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102459#M90077</guid>
      <dc:creator>JulienM</dc:creator>
      <dc:date>2023-08-04T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: SUM in CHART doesn't work as expected</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102526#M90080</link>
      <description>&lt;P&gt;Just use:&amp;nbsp;&lt;SPAN&gt;sum(gross_Amount)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 12:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102526#M90080</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-08-04T12:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUM in CHART doesn't work as expected</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102531#M90082</link>
      <description>&lt;P&gt;Hello Marcus,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;But I wouldn't have written if it was so simple.&lt;BR /&gt;&lt;BR /&gt;It's what I did in first place, but as I said, if I simply use sum(grossAmount), I only see one itemand not two of them:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JulienM_0-1691154209154.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113615i4B06D40E257EE0BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JulienM_0-1691154209154.png" alt="JulienM_0-1691154209154.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 13:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102531#M90082</guid>
      <dc:creator>JulienM</dc:creator>
      <dc:date>2023-08-04T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: SUM in CHART doesn't work as expected</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102560#M90084</link>
      <description>&lt;P&gt;In regard to the expression it should be so simple. If the data doesn't fit to your expectation anything else is wrong respectively different to show your wanted view (any further selections, alternate states, synthetic keys and/or circular loops in the data-model, missing key-values to any related associations, ...).&lt;/P&gt;
&lt;P&gt;If I look on your xml the values for ...136 are different to those from ...134 and so both couldn't have the same results like in your screenshot.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 13:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102560#M90084</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-08-04T13:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: SUM in CHART doesn't work as expected</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102586#M90085</link>
      <description>&lt;P&gt;I have three xml files, one for Items list, one for customers list and then one for Sales.&lt;BR /&gt;&lt;BR /&gt;Item code and Customer code are my key-values. I don't have any synthetic keys.&lt;BR /&gt;&lt;BR /&gt;Like I said, I don't understand that I can see in a simple table, for this particulare invoice, the two items.&lt;BR /&gt;&lt;BR /&gt;But in the chart table, with the expression, I only can see one item of two.&lt;BR /&gt;&lt;BR /&gt;I'll check if I can do my script in another way.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102586#M90085</guid>
      <dc:creator>JulienM</dc:creator>
      <dc:date>2023-08-04T14:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUM in CHART doesn't work as expected</title>
      <link>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102594#M90086</link>
      <description>&lt;P&gt;Something isn't right within your associations. I think you will see it if you extend the table-box for the period-field and the measure fields as well as all fields in which you have currently set any selection.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SUM-in-CHART-doesn-t-work-as-expected/m-p/2102594#M90086</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-08-04T14:42:20Z</dc:date>
    </item>
  </channel>
</rss>

