<?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: Automatic filter on sheet select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578182#M547589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice,&lt;/P&gt;&lt;P&gt;it seems to be a good idea, but it doesn't work.&lt;/P&gt;&lt;P&gt;No filter is applied..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 13:10:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-27T13:10:51Z</dc:date>
    <item>
      <title>Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578179#M547586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i want to create an automatic filter on sheet activating that select only the Top 10 items of a list.&lt;/P&gt;&lt;P&gt;The ranking formula is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(&lt;EM&gt;value&lt;/EM&gt;))&amp;lt;=10,&lt;EM&gt;State&lt;/EM&gt;),&lt;EM&gt;State&lt;/EM&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i realize it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 11:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578179#M547586</guid>
      <dc:creator />
      <dc:date>2014-02-27T11:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578180#M547587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can set action on close sheet &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 11:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578180#M547587</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-02-27T11:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578181#M547588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try that on OnActivate action, Selection, select in Field&lt;/P&gt;&lt;P&gt;Choose your field: State&lt;/P&gt;&lt;P&gt;And put that in the search string:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;replace&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;( '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;concat&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;($ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue;"&gt;YourExpression&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;, '|') &amp;amp;')', ' ', '?') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;where YourExpression is aggr(if(rank(sum(&lt;EM&gt;value&lt;/EM&gt;))&amp;lt;=10,&lt;EM&gt;State&lt;/EM&gt;),&lt;EM&gt;State&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;As usual, if you do selection instead of the user, you need to warn it with a textbox or sth similar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;Tell me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 12:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578181#M547588</guid>
      <dc:creator />
      <dc:date>2014-02-27T12:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578182#M547589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice,&lt;/P&gt;&lt;P&gt;it seems to be a good idea, but it doesn't work.&lt;/P&gt;&lt;P&gt;No filter is applied..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 13:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578182#M547589</guid>
      <dc:creator />
      <dc:date>2014-02-27T13:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578183#M547590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Clear field first in action 1&amp;nbsp; (if not the first 10 will be searched into the current state)&lt;/P&gt;&lt;P&gt;2) in action 2, do not forget the = sign before the &lt;STRONG&gt;replace&lt;/STRONG&gt;() function&lt;/P&gt;&lt;P&gt;3) in sum(value), it is also possible to insert a set analysis (or clear specific fields first) because this sum will depend on the current state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you are right it does not work: a button with this action works, the OnActivate does not work&lt;/P&gt;&lt;P&gt;A workaround:&lt;/P&gt;&lt;P&gt;create a variable with =replace (xxxxx)&lt;/P&gt;&lt;P&gt;and the action becomes ='$(newVariable)'&lt;/P&gt;&lt;P&gt;(do not forget the quotes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578183#M547590</guid>
      <dc:creator />
      <dc:date>2014-02-27T14:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578184#M547591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with a button, but it doesn't work yet.&lt;/P&gt;&lt;P&gt;I did the following:&lt;/P&gt;&lt;P&gt;1) create button &lt;/P&gt;&lt;P&gt;2) rule1: "Clear filters in field &lt;EM&gt;Stato&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;3) rule2: "Set filter in field "Stato"" like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=replace( '(' &amp;amp; concat($(aggr(if(rank(sum(&lt;EM&gt;Imponibile&lt;/EM&gt;))&amp;lt;=10,&lt;EM&gt;Stato&lt;/EM&gt;),&lt;EM&gt;Stato&lt;/EM&gt;)), '|') &amp;amp;')', ' ', '?')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the first rule works...&lt;/P&gt;&lt;P&gt;Where is the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578184#M547591</guid>
      <dc:creator />
      <dc:date>2014-02-27T15:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578185#M547592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do a button with just rule2 (it should work without pb). Remove $( before aggr&lt;/P&gt;&lt;P&gt;as I told you, I created a variable that is put into the action&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;P&gt;What I have and works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( '(' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;montant&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) &amp;lt; 10, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;date_creation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;date_creation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;), '|') &amp;amp;')', ' ', '?') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578185#M547592</guid>
      <dc:creator />
      <dc:date>2014-02-27T15:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic filter on sheet select</title>
      <link>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578186#M547593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;Now it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatic-filter-on-sheet-select/m-p/578186#M547593</guid>
      <dc:creator />
      <dc:date>2014-02-27T16:50:48Z</dc:date>
    </item>
  </channel>
</rss>

