<?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: Aggr function in dimensionless bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972893#M332839</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;look at the attached sample.&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 17:24:47 GMT</pubDate>
    <dc:creator>pamaxeed</dc:creator>
    <dc:date>2015-09-30T17:24:47Z</dc:date>
    <item>
      <title>Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972887#M332833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikView experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a bar chart with expression total and for that I am using Aggr function. Below is my code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;SUM(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;AGGR(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;(SUM([Price] *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;sum({$ &amp;lt;Year = {"$(=(max(Year)-1))"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;Month = {"$(=(month(today())))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;#Units)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;&amp;nbsp; ) , ITM_ID) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am multiplying &lt;EM&gt;Price by Units at the ITM_ID level and&lt;/EM&gt; want to sum this on Location_ID Level. Location can be added as a dimension to the bar chart. I tried putting Location_ID in above expression but that did not help either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason it is giving me 0 in text object and is not showing up in the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would like to know any obvious suggestions/error just looking at the above expression?&lt;/P&gt;&lt;P&gt;&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, 30 Sep 2015 15:53:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972887#M332833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T15:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972888#M332834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AGGR function will &lt;STRONG&gt; work only on the dimension ...you need to have dimension without that it won't work &lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 15:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972888#M332834</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-09-30T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972889#M332835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there a specific reason why you are not multiplying price by units ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;you could use total &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;sum(total &amp;lt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13px;"&gt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Location_ID&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;{$ &amp;lt;Year = {"$(=(max(Year)-1))"},&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;Month = {"$(=(month(today())))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;#Units*&lt;SPAN style="color: #000000; font-family: 'courier new', courier; font-size: 13px;"&gt;[Price]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972889#M332835</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-09-30T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972890#M332836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash, thanks for quick reply. I have added dimension in bar chart to test my expression. It does not come up with value still! In addition to this, I also tried to add the dimension in aggr expression, see below. No luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;SUM(&lt;/P&gt;&lt;P&gt;AGGR(&lt;/P&gt;&lt;P&gt;(SUM([Price] *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Year = {"$(=(max(Year)-1))"},&lt;/P&gt;&lt;P&gt;Month = {"$(=(month(today())))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;#Units)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) , ITM_ID,LOC_ID) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972890#M332836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T16:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972891#M332837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramon, your expression is giving me some value so that is good and thanks for that! However it is different from what I am after. I am looking for sum product. Each unit value multiplied by price for that item will give me a value and I want to sum them up (for entire location.)&lt;/P&gt;&lt;P&gt;I have attached the spreadsheet to illustrate my requirement. Hope it is clear.&lt;IMG alt="query.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100532_query.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972891#M332837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T16:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972892#M332838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, so I assume price for the itm_id can be more than once &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could try by using two aggr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;aggr(&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;SUM(&lt;/P&gt;&lt;P&gt;AGGR(&lt;/P&gt;&lt;P&gt;(SUM([Price] *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Year = {"$(=(max(Year)-1))"},&lt;/P&gt;&lt;P&gt;Month = {"$(=(month(today())))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;#Units)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ), ITM_ID)),LOC_ID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or by using the total outside of the aggr&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 style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUM(total &amp;lt;LOC_ID&amp;gt;&lt;/P&gt;&lt;P&gt;AGGR(&lt;/P&gt;&lt;P&gt;(SUM([Price] *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;Year = {"$(=(max(Year)-1))"},&lt;/P&gt;&lt;P&gt;Month = {"$(=(month(today())))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;#Units)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; ), ITM_ID))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972892#M332838</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-09-30T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972893#M332839</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;look at the attached sample.&lt;/P&gt;&lt;P&gt;Is this what you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972893#M332839</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-09-30T17:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972894#M332840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think direct Unit and Price multiplication should work if you take Location as Dimension in Bar chart. See the attached based on your excel sheet. Perhaps it cannot be that simple, may be missing the point you want to explain &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 17:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972894#M332840</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-30T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972895#M332841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for putting up a quick QVW Patric! Appreciate it. I see this is the same expression that Ramon shared and this is working for me as of now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972895#M332841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T20:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in dimensionless bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972896#M332842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Digvijay. Yes you got it right. Just that in my case the units will actually be an aggregate of each item id (because there can be more than one item id in the table). I have used expression shared by Ramon. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-dimensionless-bar-chart/m-p/972896#M332842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T20:38:14Z</dc:date>
    </item>
  </channel>
</rss>

