<?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 above function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/above-function/m-p/1377406#M799011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have came accross with this problem.I have created a pivot table with daily,Month to date and Year to date&amp;nbsp; quantity and net val per store.The user selects the date and the chart shows the quantity and net val for the selected day,month,year ,the quantity and net val for the same day last year and finally the comparisson between the 2 as shown in the picture below.&lt;IMG alt="Καταγραφή.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186358_Καταγραφή.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;For the comparisson I have used the expression:&lt;/P&gt;&lt;P&gt;num((above(column(1),RowNo()-1)/above(column(1),RowNo()-2)-1)*100,'#.##0,00')&amp;amp;'%' for quantity and &lt;/P&gt;&lt;P&gt;num((above(column(2),RowNo()-1)/above(column(2),RowNo()-2)-1)*100,'#.##0,00')&amp;amp;'%' for net val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have one store selected from the store's listobox seems to work fine.But when I select more than one stores(For the same selected date) in the comparisson row I get extreme values for just one of the selected stores as shown in the second picture&lt;IMG alt="Καταγραφή3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/186360_Καταγραφή3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Can someone explain why this happens ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>kostiskampouris</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>above function</title>
      <link>https://community.qlik.com/t5/QlikView/above-function/m-p/1377406#M799011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have came accross with this problem.I have created a pivot table with daily,Month to date and Year to date&amp;nbsp; quantity and net val per store.The user selects the date and the chart shows the quantity and net val for the selected day,month,year ,the quantity and net val for the same day last year and finally the comparisson between the 2 as shown in the picture below.&lt;IMG alt="Καταγραφή.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186358_Καταγραφή.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;For the comparisson I have used the expression:&lt;/P&gt;&lt;P&gt;num((above(column(1),RowNo()-1)/above(column(1),RowNo()-2)-1)*100,'#.##0,00')&amp;amp;'%' for quantity and &lt;/P&gt;&lt;P&gt;num((above(column(2),RowNo()-1)/above(column(2),RowNo()-2)-1)*100,'#.##0,00')&amp;amp;'%' for net val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have one store selected from the store's listobox seems to work fine.But when I select more than one stores(For the same selected date) in the comparisson row I get extreme values for just one of the selected stores as shown in the second picture&lt;IMG alt="Καταγραφή3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/186360_Καταγραφή3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Can someone explain why this happens ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance &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/above-function/m-p/1377406#M799011</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: above function</title>
      <link>https://community.qlik.com/t5/QlikView/above-function/m-p/1377407#M799012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kostis, I would try to split the expression and check the values to understand what is doing, setting the expressions just as:&lt;/P&gt;&lt;P&gt;- above(column(1),RowNo()-1)&lt;/P&gt;&lt;P&gt;- above(column(1),RowNo()-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it just needs a TOTAL qualifier:&lt;/P&gt;&lt;P&gt;above(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; column(1)....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 11:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function/m-p/1377407#M799012</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-10T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: above function</title>
      <link>https://community.qlik.com/t5/QlikView/above-function/m-p/1377408#M799013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hellon Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer.As you can see in the picture bellow I have tried your suggetion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the qty expression I used above(column(1),RowNo()-2)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; and &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;in the Net val expression I used above(column(2),RowNo()-1)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; just to see the results.&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The net val expression returns always the cell for the 2017 year which is correct.&lt;/P&gt;&lt;P&gt;The quantity expression returns the 2016 cell which is correct except the MOTD column where it returns the 2016 cell but from the YTOD column.How this can be fixed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns are give by a calculated dimension as : Pick(islandperiod,WeekDay(trn_date),'MTOD','YTOD')&lt;/P&gt;&lt;P&gt;where islandperdiod is loaded in the script with values 1,2,3&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Καταγραφή.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186355_Καταγραφή.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 15:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function/m-p/1377408#M799013</guid>
      <dc:creator>kostiskampouris</dc:creator>
      <dc:date>2017-12-10T15:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: above function</title>
      <link>https://community.qlik.com/t5/QlikView/above-function/m-p/1377409#M799014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange that it only does this in one cell, is there a possibility to upload a sample that show the issue? It would be easier to make some test... I would test the value returned for just RowNo() and try to add the 'TOTAL' qualifier to see how it goes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 16:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/above-function/m-p/1377409#M799014</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-12-10T16:30:03Z</dc:date>
    </item>
  </channel>
</rss>

