<?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 aggr(sum(total &amp;lt;$(ColumnDim_p)&amp;gt; sales) How to replace with rEVENUE ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122136#M636520</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;I have expression as below work fine for chart 1:-&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} $(ColumnDim51)/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have expression below work fine for chart 2 :-&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} $(ColumnDim601)/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user select Dim2 = rEVENUE , I have convert the above expression to below , and this expression i insert at Chart 3 :-&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} rEVENUE={rEVENUE}&amp;gt;}Amount/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart 3 Dimension expression as below :-&lt;/P&gt;&lt;P&gt;=if(aggr(sum(sales),$(ColumnDim101)) / aggr(sum(total &amp;lt;$(ColumnDim_p)&amp;gt; &lt;SPAN style="color: #ff0000;"&gt;sales&lt;/SPAN&gt;), $(ColumnDim101)) &amp;gt; 0.00001, $(ColumnDim101), ' Other')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one advise me how to change the above expression &lt;SPAN style="color: #ff0000;"&gt;sales&lt;/SPAN&gt; to&lt;SPAN style="color: #ff0000;"&gt; rEVENUE&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that chart 3 is able to display the bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2016 07:59:00 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-05-23T07:59:00Z</dc:date>
    <item>
      <title>aggr(sum(total &lt;$(ColumnDim_p)&gt; sales) How to replace with rEVENUE ?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122136#M636520</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;I have expression as below work fine for chart 1:-&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} $(ColumnDim51)/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have expression below work fine for chart 2 :-&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} $(ColumnDim601)/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when user select Dim2 = rEVENUE , I have convert the above expression to below , and this expression i insert at Chart 3 :-&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} rEVENUE={rEVENUE}&amp;gt;}Amount/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart 3 Dimension expression as below :-&lt;/P&gt;&lt;P&gt;=if(aggr(sum(sales),$(ColumnDim101)) / aggr(sum(total &amp;lt;$(ColumnDim_p)&amp;gt; &lt;SPAN style="color: #ff0000;"&gt;sales&lt;/SPAN&gt;), $(ColumnDim101)) &amp;gt; 0.00001, $(ColumnDim101), ' Other')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one advise me how to change the above expression &lt;SPAN style="color: #ff0000;"&gt;sales&lt;/SPAN&gt; to&lt;SPAN style="color: #ff0000;"&gt; rEVENUE&lt;/SPAN&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that chart 3 is able to display the bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 07:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122136#M636520</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-23T07:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: aggr(sum(total &lt;$(ColumnDim_p)&gt; sales) How to replace with rEVENUE ?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122137#M636521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QV Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 07:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122137#M636521</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-23T07:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: aggr(sum(total &lt;$(ColumnDim_p)&gt; sales) How to replace with rEVENUE ?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122138#M636522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was checking your expression, please check the characters in bold and red:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&lt;STRONG style="color: #ff0000;"&gt;&amp;gt;}&lt;/STRONG&gt; rEVENUE={rEVENUE}&amp;gt;}Amount/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just remove those characters (I also added single quotes to your rEVENUE value):&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year = {"&amp;lt;=$(=max(year)) &amp;gt;=$(=max(year)-12)"}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}, rEVENUE={'rEVENUE'}&amp;gt;}Amount/1000/$(Columndim89))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart displays the following information, but I'm not sure if this fills your needs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="foto.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/125660_foto.png" style="height: auto;" /&gt;&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;-- Karla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 20:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122138#M636522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T20:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: aggr(sum(total &lt;$(ColumnDim_p)&gt; sales) How to replace with rEVENUE ?</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122139#M636523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your advise . I have test it does give the chart. But due to my dimension expression have some issue , i need to solve it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 11:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-sum-total-lt-ColumnDim-p-gt-sales-How-to-replace-with/m-p/1122139#M636523</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-05-25T11:53:55Z</dc:date>
    </item>
  </channel>
</rss>

