<?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: RangeSum() and Above() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828048#M291533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Foldy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you might be able to replace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above("Fred")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above(Column(X))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where X is the position of the expression: Expression 1 = 1, Expression 2 = 2, etc... The only issue I see with this is that if you are using conditionally enabled expressions it might not work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 15:05:50 GMT</pubDate>
    <dc:creator>cesaraccardi</dc:creator>
    <dc:date>2015-05-21T15:05:50Z</dc:date>
    <item>
      <title>RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828045#M291530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey fellas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a solution to an issue I have which works (almost) perfectly however I'm struggling to understand how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original solution I found here and was solved by &lt;SPAN style="font-size: 13.3333330154419px;"&gt;swuehl...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/61764"&gt;Accumulation Line Chart can not stop to current month&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially it's this expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget)&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; above("Fred")&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main issue (aside from not really understanding what any of it is doing) is the "Fred". I understand that this refers to itself i.e. its label, however I don't want a static label. The label is '=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;selected_year' without the quotes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what do i need to put in place of "Fred" so that the expression works and the label changes with the year selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Foldy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 14:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828045#M291530</guid>
      <dc:creator />
      <dc:date>2015-05-21T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828046#M291531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using Column() function in place of a your dynamic label. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828046#M291531</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-21T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828047#M291532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or I might say 'Fred'. Try&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;STRONG&gt;if(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget)&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; above([Column(&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;)])&lt;/STRONG&gt; //Using 1 assuming its the first expression in your chart &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828047#M291532</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-21T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828048#M291533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Foldy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you might be able to replace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above("Fred")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above(Column(X))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where X is the position of the expression: Expression 1 = 1, Expression 2 = 2, etc... The only issue I see with this is that if you are using conditionally enabled expressions it might not work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828048#M291533</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2015-05-21T15:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828049#M291534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Foldy, if you only have one expression maybe it works using "Column(1)" instead of column name:&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget)&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; above(Column(1))&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is doing: If there is a budget for this ¿month? (the month in dimension), add this budget value to the column value in the previous row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this option also works:&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum ({&amp;lt;financial_year={'$(=selected_year)'}&amp;nbsp; &amp;gt;} budget)&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; above("$(=&lt;SPAN style="font-size: 13.3333330154419px;"&gt;selected_year)"&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828049#M291534</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-05-21T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828050#M291535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks chaps. Works a treat. Sunindia got in there first but everyone has helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828050#M291535</guid>
      <dc:creator />
      <dc:date>2015-05-21T15:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828051#M291536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the extra explanation Ruben. You've made it clearer for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 15:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RangeSum-and-Above/m-p/828051#M291536</guid>
      <dc:creator />
      <dc:date>2015-05-21T15:14:46Z</dc:date>
    </item>
  </channel>
</rss>

