<?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: Requirement of a selection in filter with Alternate state while landing on a sheet in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2482970#M100968</link>
    <description>&lt;P&gt;Hello !&lt;BR /&gt;&lt;BR /&gt;This is possible thanks to bookmarks.&lt;BR /&gt;In the filter pane assigned to compare report 1, make a selection using this formula:&lt;/P&gt;
&lt;PRE&gt;=[Country]=firstsortedvalue(TOTAL Country,-aggr(Sum(Sales),Country),1)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Once the formula has been cruised, and the formula has been placed on entry in order to do the search, India will be selected from this formula.&lt;BR /&gt;&lt;BR /&gt;Similarly, in the filter pane assigned to the compare state 2, effect a selection using this formula:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;=[Country]=firstsortedvalue(TOTAL Country,-aggr(Sum(Sales),Country),2)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Then, create a bookmark. Assign this bookmark to open a sheet.&lt;BR /&gt;&lt;BR /&gt;Enjoy your Qlik.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Théo ATRAGIE.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 09:20:09 GMT</pubDate>
    <dc:creator>theoat</dc:creator>
    <dc:date>2024-09-23T09:20:09Z</dc:date>
    <item>
      <title>Requirement of a selection in filter with Alternate state while landing on a sheet</title>
      <link>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2482958#M100964</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am applying filter with Alternate states (Compare 1 &amp;amp; Compare 2) on two different Filters which works fine. But how to apply the filter with alternate states when we land on that sheet.&lt;/P&gt;
&lt;P&gt;I want to show the Top 2 counties with the highest sales.&lt;/P&gt;
&lt;P&gt;MyTable:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Country, Year, Sales&lt;BR /&gt;USA, 2014, 66295.03&lt;BR /&gt;Argentina, 2015, 140037.89&lt;BR /&gt;China, 2014, 54166.09&lt;BR /&gt;Austria, 2015, 182739.87&lt;BR /&gt;India, 2017, 526838.97&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rohansoni9610_0-1727078943483.png" style="width: 604px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172034i22F5372A7E6E1B31/image-dimensions/604x203?v=v2" width="604" height="203" role="button" title="rohansoni9610_0-1727078943483.png" alt="rohansoni9610_0-1727078943483.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As per the above Inline load, India and Austria has the highest sales. These 2 counties must be filtered with alternate state 'Compare 1' and 'Compare 2' when we land on the sheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the above image I have filtered them manually.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I Apply the logic for highest sales country name in the Sheet action. It works but goes in default state.&lt;/P&gt;
&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 08:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2482958#M100964</guid>
      <dc:creator>rohansoni9610</dc:creator>
      <dc:date>2024-09-23T08:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement of a selection in filter with Alternate state while landing on a sheet</title>
      <link>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2482970#M100968</link>
      <description>&lt;P&gt;Hello !&lt;BR /&gt;&lt;BR /&gt;This is possible thanks to bookmarks.&lt;BR /&gt;In the filter pane assigned to compare report 1, make a selection using this formula:&lt;/P&gt;
&lt;PRE&gt;=[Country]=firstsortedvalue(TOTAL Country,-aggr(Sum(Sales),Country),1)&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Once the formula has been cruised, and the formula has been placed on entry in order to do the search, India will be selected from this formula.&lt;BR /&gt;&lt;BR /&gt;Similarly, in the filter pane assigned to the compare state 2, effect a selection using this formula:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;=[Country]=firstsortedvalue(TOTAL Country,-aggr(Sum(Sales),Country),2)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Then, create a bookmark. Assign this bookmark to open a sheet.&lt;BR /&gt;&lt;BR /&gt;Enjoy your Qlik.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Théo ATRAGIE.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 09:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2482970#M100968</guid>
      <dc:creator>theoat</dc:creator>
      <dc:date>2024-09-23T09:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Requirement of a selection in filter with Alternate state while landing on a sheet</title>
      <link>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2483397#M101040</link>
      <description>&lt;P&gt;Hi Buddy,&lt;/P&gt;
&lt;P&gt;Thanks for the reply, the logic works fine for the 1st one:&lt;/P&gt;
&lt;PRE&gt;=[Country]=firstsortedvalue(TOTAL Country,-aggr(Sum(Sales),Country),1)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the selection is made, I tried the 2nd expression&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;=[Country]=firstsortedvalue(TOTAL Country,-aggr(Sum(Sales),Country),2)&lt;/PRE&gt;
&lt;P&gt;But it was unable to search the value. The 2nd expression works fine only when there is no selection as per the 1st Expression.&lt;/P&gt;
&lt;P&gt;This is because, I wanted to have Top 2 countries as per the sales. It works with the different alternate states. But within the same alternate states. I can't select two values at the same time.&lt;/P&gt;
&lt;P&gt;Please refer to the screenshot below for better view.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rohansoni9610_0-1727250420760.png" style="width: 540px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172119iFA7667034E3BCE92/image-dimensions/540x382?v=v2" width="540" height="382" role="button" title="rohansoni9610_0-1727250420760.png" alt="rohansoni9610_0-1727250420760.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 08:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Requirement-of-a-selection-in-filter-with-Alternate-state-while/m-p/2483397#M101040</guid>
      <dc:creator>rohansoni9610</dc:creator>
      <dc:date>2024-09-25T08:53:13Z</dc:date>
    </item>
  </channel>
</rss>

