<?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 Amount savings &amp; aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258108#M397241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a basic need which is to create 2 graphs (bar charts) one that shows the amount of money saved per day and the other the amount of expenses per day.&lt;/P&gt;&lt;P&gt;The table I have is something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 258px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="94"&gt;Date&lt;/TD&gt;&lt;TD width="100"&gt;Label&lt;/TD&gt;&lt;TD width="64"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30-06-2016&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;-73&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30-06-2016&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30-06-2016&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD align="right"&gt;95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD align="right"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;-5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;-42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;T&lt;/TD&gt;&lt;TD align="right"&gt;-53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD align="right"&gt;-94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;28-06-2016&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;-37&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;28-06-2016&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD align="right"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;27-06-2016&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;3476&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;27-06-2016&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;37&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use aggr function but it does not give me the correct values.&lt;/P&gt;&lt;P&gt;The expression I used (dimension is the date of the day) is &lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Expense_or_Save={'Save'}&amp;gt;} Aggr(sum(&amp;nbsp;&amp;nbsp; Amount), Label))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I created &lt;SPAN style="font-size: 13.3333px;"&gt;Expense_or_Save dimension in the script (expense if amount is negative otherwise save)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am using the aggr function in a bad way but I don't know what is wrong....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 22:52:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-30T22:52:47Z</dc:date>
    <item>
      <title>Amount savings &amp; aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258108#M397241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a basic need which is to create 2 graphs (bar charts) one that shows the amount of money saved per day and the other the amount of expenses per day.&lt;/P&gt;&lt;P&gt;The table I have is something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 258px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="94"&gt;Date&lt;/TD&gt;&lt;TD width="100"&gt;Label&lt;/TD&gt;&lt;TD width="64"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30-06-2016&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;-73&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30-06-2016&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right"&gt;-24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30-06-2016&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD align="right"&gt;95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD align="right"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;-5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;-42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;T&lt;/TD&gt;&lt;TD align="right"&gt;-53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;29-06-2016&lt;/TD&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD align="right"&gt;-94&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;28-06-2016&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;-37&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;28-06-2016&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD align="right"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;27-06-2016&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right"&gt;3476&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;27-06-2016&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD align="right"&gt;37&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use aggr function but it does not give me the correct values.&lt;/P&gt;&lt;P&gt;The expression I used (dimension is the date of the day) is &lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Expense_or_Save={'Save'}&amp;gt;} Aggr(sum(&amp;nbsp;&amp;nbsp; Amount), Label))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I created &lt;SPAN style="font-size: 13.3333px;"&gt;Expense_or_Save dimension in the script (expense if amount is negative otherwise save)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am using the aggr function in a bad way but I don't know what is wrong....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you help !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 22:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258108#M397241</guid>
      <dc:creator />
      <dc:date>2016-11-30T22:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Amount savings &amp; aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258109#M397242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe solutions could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_241618_Pic3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145369_QlikCommunity_Thread_241618_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_241618_Pic4.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/145373_QlikCommunity_Thread_241618_Pic4.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_241618_Pic5.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/145374_QlikCommunity_Thread_241618_Pic5.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_241618_Pic6.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/145375_QlikCommunity_Thread_241618_Pic6.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_241618_Pic1.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/145376_QlikCommunity_Thread_241618_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_241618_Pic2.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/145377_QlikCommunity_Thread_241618_Pic2.JPG" style="height: 260px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 00:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258109#M397242</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-12-01T00:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Amount savings &amp; aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258110#M397243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply, actually you made me realize I do not necessarily need aggr function.&lt;/P&gt;&lt;P&gt;But it is still not showing the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But probably the problem lies elsewhere:&lt;/P&gt;&lt;P&gt;I noticed when I put my data in a straight table with Dimension 'Date' and 'Label' and have the expressions:&lt;/P&gt;&lt;P&gt;Amount and sum(Amount)&amp;nbsp;&amp;nbsp;&amp;nbsp; that sometimes sum(Amount) equals 5 times the value of Amount, sometimes it is 4 times the value, sometimes 3 times the value, sometimes 2 times the value, sometimes equal.&lt;/P&gt;&lt;P&gt;I really don't understand...&lt;/P&gt;&lt;P&gt;Do you have an idea of the reason ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258110#M397243</guid>
      <dc:creator />
      <dc:date>2016-12-01T07:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Amount savings &amp; aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258111#M397244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you have multiple occurrences of the same records in your data.&lt;/P&gt;&lt;P&gt;Can you post a sample of your application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 22:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258111#M397244</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-12-01T22:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Amount savings &amp; aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258112#M397245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it was one the question I was asking to myself, don't I need a column with unique IDs every time I work with a data set ? I am not sure of the answer but I would say yes, and for this I planned to concatenate the Label&amp;amp;Date&amp;amp;Amount to be sur it creates a unique ID (there might be other option like create 1, 2 3 ID with a for loop but I am not familiar with this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then I was stopped there because my problem is that I use a code that helps me consolidate the different excels that I have in one folder automatically all in one single table in Qlikview. So I tried my concatenate function but don't know where to place it. And plus I realized not all my excels are loaded every time... even though it was working not that long ago.&lt;/P&gt;&lt;P&gt;I attached the QV Code and the extract excels (dummy data created but same file structure). Sorry for this but the app contains some information I cannot share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really motivated to make this work ! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 07:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Amount-savings-aggr-function/m-p/1258112#M397245</guid>
      <dc:creator />
      <dc:date>2016-12-02T07:58:39Z</dc:date>
    </item>
  </channel>
</rss>

