<?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: Display Top 30, Bottom 30 and Var in a single table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078683#M88477</link>
    <description>&lt;P&gt;point is, it is not supposed to be null. there are values when converted into pivot table. but this logic doesn't seem to work in a straight table. it is not allowing me to have both top and bottom in the same table.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 01:09:49 GMT</pubDate>
    <dc:creator>apacbi_smbc</dc:creator>
    <dc:date>2023-06-01T01:09:49Z</dc:date>
    <item>
      <title>Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2077687#M88398</link>
      <description>&lt;P&gt;I am able to display the top 30 and bottom 30 in a pivot table by using the following:&lt;/P&gt;
&lt;P&gt;Dimension -&amp;gt; if(num(aggr(rank(($(vCurrBalance) - $(vPrevWeekDayBalance))/1000000,ID)) &amp;lt;=30 or NUM(AGGR(RANK(($(vCurrBalance) - $(vPrevWeekDayBalance))/1000000,ID)) &amp;gt;= $(vMaxRank)-30, Country)&lt;/P&gt;
&lt;P&gt;Columns -&amp;gt;&amp;nbsp;if(num(aggr(rank(($(vCurrBalance) - $(vPrevWeekDayBalance))/1000000,ID)) &amp;lt;=30, 'Top', 'Bottom')&lt;/P&gt;
&lt;P&gt;Measure -&amp;gt; sum(aggr($(vCurrBalance) - $(vPrevWeekDayBalance))/1000000&lt;/P&gt;
&lt;P&gt;however, I am not able to display the Var.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apacbi_smbc_1-1685440953995.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108614iB5DFA7D3641113A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apacbi_smbc_1-1685440953995.png" alt="apacbi_smbc_1-1685440953995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I tried combining the top 30 and bottom 30 in a straight table as well. However, i am not receiving the expected outcome and not able to include the var as well.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apacbi_smbc_2-1685440985080.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108615i5276F5240D67D34D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apacbi_smbc_2-1685440985080.png" alt="apacbi_smbc_2-1685440985080.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;User is expecting to see something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apacbi_smbc_0-1685440929059.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108613i6591C496F46D9188/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apacbi_smbc_0-1685440929059.png" alt="apacbi_smbc_0-1685440929059.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How do i achieve this? To attain the Top 30, Bottom 30 and Var all in a single table.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 01:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2077687#M88398</guid>
      <dc:creator>apacbi_smbc</dc:creator>
      <dc:date>2023-05-31T01:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078187#M88426</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114276"&gt;@apacbi_smbc&lt;/a&gt;&amp;nbsp; You can add two measures separately for the Top and Bottom then add them in the straight table as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 08:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078187#M88426</guid>
      <dc:creator>snibrahim1993</dc:creator>
      <dc:date>2023-05-31T08:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078269#M88437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/182960"&gt;@snibrahim1993&lt;/a&gt;, Already tried. not working.&lt;/P&gt;
&lt;P&gt;Top Measure -&amp;gt; if(((num(aggr(rank(($(vCurrentFYBalance) - $(vPrevYTDBalance))/1000000),SUN_ID)) &amp;lt;= 30)),sum(aggr($(vCurrentFYBalance) - $(vPrevYTDBalance),SUN_ID)))/1000000&lt;/P&gt;
&lt;P&gt;Bottom Measure -&amp;gt;if(num(aggr(rank($(vCurrentFYBalance) - $(vPrevYTDBalance)),SUN_ID)) &amp;gt;= $(vMaxRank)-30,&lt;BR /&gt;sum(aggr($(vCurrentFYBalance) - $(vPrevYTDBalance),SUN_ID)))/1000000&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apacbi_smbc_0-1685525824916.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/108753i763CCCE5C6A8803A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="apacbi_smbc_0-1685525824916.png" alt="apacbi_smbc_0-1685525824916.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing is not all the countries are in both top 30 and bottom 30. the countries vary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078269#M88437</guid>
      <dc:creator>apacbi_smbc</dc:creator>
      <dc:date>2023-05-31T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078273#M88438</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114276"&gt;@apacbi_smbc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Is the country field the direct field?&lt;BR /&gt;&lt;BR /&gt;Please share the 3 columns expression clearly&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078273#M88438</guid>
      <dc:creator>snibrahim1993</dc:creator>
      <dc:date>2023-05-31T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078276#M88440</link>
      <description>&lt;P&gt;HI&lt;/P&gt;
&lt;P&gt;For Bottom, you can try with use minus (-) in the expression&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(num(aggr(rank(&lt;U&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/U&gt;($(vCurrentFYBalance) - $(vPrevYTDBalance))),SUN_ID)) &amp;lt;= 30,&lt;BR /&gt;sum(aggr($(vCurrentFYBalance) - $(vPrevYTDBalance),SUN_ID)))/1000000&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078276#M88440</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2023-05-31T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078279#M88441</link>
      <description>&lt;P&gt;still not working&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078279#M88441</guid>
      <dc:creator>apacbi_smbc</dc:creator>
      <dc:date>2023-05-31T09:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078282#M88442</link>
      <description>&lt;P&gt;Yes, country is a direct field with expression :&lt;/P&gt;
&lt;P&gt;if(num(aggr(rank(($(vCurrentFYBalance) - $(vPrevYTDBalance))/1000000),SUN_ID)) &amp;lt;= 30 or &lt;BR /&gt;num(aggr(rank($(vCurrentFYBalance) - $(vPrevYTDBalance)),SUN_ID)) &amp;gt;= $(vMaxRank)-30, Country)&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;Top -&amp;gt;&amp;nbsp;=if(((num(aggr(rank(($(vCurrentFYBalance) - $(vPrevYTDBalance))/1000000),SUN_ID)) &amp;lt;= 30)),sum(aggr($(vCurrentFYBalance) - $(vPrevYTDBalance),SUN_ID)))/1000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom -&amp;gt;&amp;nbsp;if(&lt;SPAN&gt;num(aggr(rank($(vCurrentFYBalance) - $(vPrevYTDBalance)),SUN_ID)) &amp;gt;= $(vMaxRank)-30&lt;/SPAN&gt;,&lt;BR /&gt;sum(aggr($(vCurrentFYBalance) - $(vPrevYTDBalance),SUN_ID)))/1000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Var -&amp;gt; Top - Bottom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078282#M88442</guid>
      <dc:creator>apacbi_smbc</dc:creator>
      <dc:date>2023-05-31T09:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078296#M88446</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114276"&gt;@apacbi_smbc&lt;/a&gt;&amp;nbsp; Try the below&lt;BR /&gt;&lt;BR /&gt;The modification made in the "Bottom" calculation is the addition of "null()" as the value when the condition is not met. This ensures that if the condition for the "Bottom" calculation is not satisfied, it will display a null value instead of "-".&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Bottom=if(num(aggr(rank($(vCurrentFYBalance) - $(vPrevYTDBalance)),SUN_ID)) &amp;gt;= $(vMaxRank)-30, sum(aggr($(vCurrentFYBalance) - $(vPrevYTDBalance),SUN_ID)) / 1000000, null())&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 10:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078296#M88446</guid>
      <dc:creator>snibrahim1993</dc:creator>
      <dc:date>2023-05-31T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078683#M88477</link>
      <description>&lt;P&gt;point is, it is not supposed to be null. there are values when converted into pivot table. but this logic doesn't seem to work in a straight table. it is not allowing me to have both top and bottom in the same table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 01:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078683#M88477</guid>
      <dc:creator>apacbi_smbc</dc:creator>
      <dc:date>2023-06-01T01:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 30, Bottom 30 and Var in a single table</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078684#M88478</link>
      <description>&lt;P&gt;Can you share the QVF with sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 01:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Top-30-Bottom-30-and-Var-in-a-single-table/m-p/2078684#M88478</guid>
      <dc:creator>snibrahim1993</dc:creator>
      <dc:date>2023-06-01T01:11:17Z</dc:date>
    </item>
  </channel>
</rss>

