<?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: Compare Value from last row value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151777#M916383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not compare the blank rowid with other values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 10:32:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-16T10:32:05Z</dc:date>
    <item>
      <title>Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151771#M916377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rowid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrow&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 999&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 504&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show up and down arrow by comparing the value of blank row id with first row, second row and so on.....&lt;/P&gt;&lt;P&gt;I tried to implement the below calculation but not able to achieve it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( sum([Value]) &amp;lt;= SUM({$-&amp;lt;rowid = {'?*'}&amp;gt;}[Value]),'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151771#M916377</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151772#M916378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure about the (chart object) context you are trying to use this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe something like this (assuming '-' indicates a NULL in the rowid record)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable &lt;EM&gt;vThreshold&lt;/EM&gt; like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({1&amp;lt;value = e({&amp;lt;rowid = {"*"}&amp;gt;}) &amp;gt;} value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or (if it's in fact a '-' chararacter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum({1&amp;lt;rowid -= {'-'}&amp;gt;} value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get the correct value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just use the variable in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if( sum([Value]) &amp;lt;= vThreshold&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151772#M916378</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-16T09:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151773#M916379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the Variable on front end, &lt;STRONG&gt;vBlankRowId&lt;/STRONG&gt; and put below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM({1-$&amp;lt;rowid = {'*'}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;then write expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if( sum([Value]) &amp;lt;= $(&lt;STRONG style="font-size: 13.3333px;"&gt;vBlankRowId&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151773#M916379</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-16T09:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151774#M916380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not working, increasing number of rows and adding blank rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151774#M916380</guid>
      <dc:creator />
      <dc:date>2016-05-16T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151775#M916381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will might benefit using a technique similar to As-Of Table:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you might need to use Above/Before to achieve what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8242"&gt;Missing Manual - Above() and Below()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 09:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151775#M916381</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T09:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151776#M916382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You need to create a variable like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(rowid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you name the variable as vColor&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if( sum([Value]) &amp;lt;= $(vColor),'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 10:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151776#M916382</guid>
      <dc:creator>ankit777</dc:creator>
      <dc:date>2016-05-16T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151777#M916383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not compare the blank rowid with other values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 10:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151777#M916383</guid>
      <dc:creator />
      <dc:date>2016-05-16T10:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151778#M916384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can it be achieved by set, as need to only compare blank row id with the one's having value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 11:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151778#M916384</guid>
      <dc:creator />
      <dc:date>2016-05-16T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151779#M916385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not entirely sure what you are trying to do, but may be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(Sum([Value]) &amp;lt;= Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {$-&amp;lt;rowid = {'?*'}&amp;gt;}[Value]), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png', 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 12:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151779#M916385</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T12:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Value from last row value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151780#M916386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it worked!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 13:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Value-from-last-row-value/m-p/1151780#M916386</guid>
      <dc:creator />
      <dc:date>2016-05-16T13:05:19Z</dc:date>
    </item>
  </channel>
</rss>

