<?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/Below functions on Top N in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579670#M62986</link>
    <description>&lt;P&gt;Have you unchecked 'Include zero values' under Add-ons -&amp;gt; Data handling&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 17:48:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-05-13T17:48:29Z</dc:date>
    <item>
      <title>Above/Below functions on Top N</title>
      <link>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579537#M62983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm attempting to plot orders in a line graph against orders in the previous year, but only show the most recent 4 years. I'm using the definitions below, but the last data point from the previous year measure drops off (in 2015). Are there any patterns for solving this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;= IF( YEAR(ORDER_TIME.autoCalendar.Year) &amp;gt; (YEAR(AGGR(MAX(all ORDER_TIME.autoCalendar.Year ,ORDER_TIME.autoCalendar.Year) ) - 4) ,&amp;nbsp;&lt;/SPAN&gt;ORDER_TIME.autoCalendar.Year , null )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Orders&amp;nbsp;&lt;/STRONG&gt;= COUNT(ORDER_ID)&lt;BR /&gt;&lt;STRONG&gt;Orders (previous year)&lt;/STRONG&gt; =&amp;nbsp;BELOW( COUNT(ORDER_ID), -1)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="orders.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11953i79394A527CFFB4E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="orders.PNG" alt="orders.PNG" /&gt;&lt;/span&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;&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;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579537#M62983</guid>
      <dc:creator>jdecowski</dc:creator>
      <dc:date>2024-11-16T05:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Above/Below functions on Top N</title>
      <link>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579560#M62984</link>
      <description>&lt;P&gt;Try this may be&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ORDER_TIME.autoCalendar.Year&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Orders&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Year(ORDER_TIME.autoCalendar.Year) &amp;gt; Year(Max(TOTAL ORDER_TIME.autoCalendar.Year)) - 4, Count(ORDER_ID))&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Orders (previous year)&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Year(ORDER_TIME.autoCalendar.Year) &amp;gt; Year(Max(TOTAL ORDER_TIME.autoCalendar.Year)) - 4, Below(Count(ORDER_ID), -1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also be able to use set analysis, but the syntax will have to be tested to get it to work.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 14:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579560#M62984</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-13T14:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Above/Below functions on Top N</title>
      <link>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579657#M62985</link>
      <description>&lt;P&gt;This works, but I'm unable to hide the values of the dimension that are null.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="orders.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/11962i38C6647327580835/image-size/large?v=v2&amp;amp;px=999" role="button" title="orders.PNG" alt="orders.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I use Limit Top 4 or the dimension function below, I end up with the same issue I posted on. Any way to easily solve this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt; =&amp;nbsp;IF( YEAR([REQUEST_TIME.autoCalendar.Year]) &amp;gt; ( YEAR( AGGR( MAX(ALL[REQUEST_TIME.autoCalendar.Year]), [REQUEST_TIME.autoCalendar.Year]) ) - 5) , [REQUEST_TIME.autoCalendar.Year] , Null() )&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&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>Mon, 13 May 2019 17:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579657#M62985</guid>
      <dc:creator>jdecowski</dc:creator>
      <dc:date>2019-05-13T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Above/Below functions on Top N</title>
      <link>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579670#M62986</link>
      <description>&lt;P&gt;Have you unchecked 'Include zero values' under Add-ons -&amp;gt; Data handling&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 17:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Above-Below-functions-on-Top-N/m-p/1579670#M62986</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-13T17:48:29Z</dc:date>
    </item>
  </channel>
</rss>

