<?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: Above function with column reference in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514863#M436886</link>
    <description>&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;i adjusted the formula little bit and it's working perfectly.&lt;/P&gt;&lt;P&gt;even i changed some criteria like for the first year the &lt;SPAN&gt;Smoothing&amp;nbsp;&lt;/SPAN&gt;should be equal to Sales.&lt;/P&gt;&lt;P&gt;// Working Syntax 1&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RangeSum(Above(Smoothing)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="5"&gt;,&lt;/FONT&gt;(0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RangeSum(Above(Smoothing) &lt;FONT size="5"&gt;+&lt;/FONT&gt; (0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;// Working Syntax 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If(Year = Min(TOTAL Year + 1), Above(Sales), &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RangeSum(Above(Smoothing), (0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If(Year = Min(TOTAL Year + 1), Above(Sales),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RangeSum(Above(Smoothing)+ (0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly find the attached file.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mohammed Mukram&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Nov 2018 13:38:54 GMT</pubDate>
    <dc:creator>mdmukramali</dc:creator>
    <dc:date>2018-11-30T13:38:54Z</dc:date>
    <item>
      <title>Above function with column reference</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514840#M436882</link>
      <description>&lt;P&gt;I don't think this is the expected behavior, but I might be missing something obvious. I have a calculation in column1 (which has a self referencing component to it)&lt;/P&gt;&lt;PRE&gt;=If(Year = Min(TOTAL Year), Null(),
	If(Year = Min(TOTAL Year + 1), 
		Above(Sales), 
		RangeSum(Above(Smoothing), (0.5 * (Above(Sales) - Above(Smoothing))))
	)
)&lt;/PRE&gt;&lt;P&gt;Now this isn't giving me the output I expect and it seems that the self referencing component is what is causing the issue.&lt;/P&gt;&lt;P&gt;If I add&amp;nbsp;Above(Smoothing) or&amp;nbsp;Above(Column(1)) as another column in my straight table, I don't see the right numbers&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 447px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1363iB91FCB9372C97EA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, in the example above, I would have expected to see 350 for&amp;nbsp;&lt;SPAN&gt;Above(Smoothing) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Above(Column(1)). How come it is 400?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also found out that if I remove 0.5 from my calculation... it fixes the issue&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;=If(Year = Min(TOTAL Year), Null(),
	If(Year = Min(TOTAL Year + 1), 
		Above(Sales), 
		RangeSum(Above(Smoothing), (&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt;0.5 *&lt;/FONT&gt; &lt;/STRIKE&gt;(Above(Sales) - Above(Smoothing))))
	)
)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;So, how is this multiplication impacting my above() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22245"&gt;@swuehl&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514840#M436882</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2024-11-16T21:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Above function with column reference</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514859#M436885</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;just disable the hide NULL option in tab presentation or change the chart-type to pivot and it will work. Why, mhhh ... I'm not really sure. But it has something to do with the way how the visible chart-object is rendered respectively connected with the virtual table in the background on which the calculations are performed.&lt;/P&gt;&lt;P&gt;After writing this I remember that I had once or twice situations in which a straight-table returned wrong/unexpected results and a change to a pivot solved it but I could always live with the pivot and never dived deeper to find an explanation.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514859#M436885</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-11-30T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Above function with column reference</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514863#M436886</link>
      <description>&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;i adjusted the formula little bit and it's working perfectly.&lt;/P&gt;&lt;P&gt;even i changed some criteria like for the first year the &lt;SPAN&gt;Smoothing&amp;nbsp;&lt;/SPAN&gt;should be equal to Sales.&lt;/P&gt;&lt;P&gt;// Working Syntax 1&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RangeSum(Above(Smoothing)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="5"&gt;,&lt;/FONT&gt;(0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RangeSum(Above(Smoothing) &lt;FONT size="5"&gt;+&lt;/FONT&gt; (0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;// Working Syntax 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If(Year = Min(TOTAL Year + 1), Above(Sales), &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RangeSum(Above(Smoothing), (0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OR&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;=If(Year = Min(TOTAL Year), Sum(Sales),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If(Year = Min(TOTAL Year + 1), Above(Sales),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RangeSum(Above(Smoothing)+ (0.5 * (Above(Sales) - Above(Smoothing))))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kindly find the attached file.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mohammed Mukram&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514863#M436886</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2018-11-30T13:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Above function with column reference</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514869#M436887</link>
      <description>Dear Sunny,&lt;BR /&gt;&lt;BR /&gt;your solution is working just i disabled the suppress zero values in presentation tab.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Nov 2018 13:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514869#M436887</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2018-11-30T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Above function with column reference</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514884#M436888</link>
      <description>Awesome, I am glad it worked.</description>
      <pubDate>Fri, 30 Nov 2018 13:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-with-column-reference/m-p/1514884#M436888</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-30T13:48:43Z</dc:date>
    </item>
  </channel>
</rss>

