<?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 Use variable to set a max value for a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422023#M157225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use a variable to control the value of a field and in return filter out the data set based on that. I am giving user an input box where he can enter a max value and that should filter the entire charts on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an input box and I have to set a trigger that can set the maximum value of the field to the value input by the user. Can anyone please help me achieving this or recommend any other possible solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: my field name is Rank. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="30233" class="jive-image" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/30233_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if a user enters a 15 into the input box, the field rank should select all the records from 1 to 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 00:44:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-15T00:44:46Z</dc:date>
    <item>
      <title>Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422023#M157225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use a variable to control the value of a field and in return filter out the data set based on that. I am giving user an input box where he can enter a max value and that should filter the entire charts on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an input box and I have to set a trigger that can set the maximum value of the field to the value input by the user. Can anyone please help me achieving this or recommend any other possible solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: my field name is Rank. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="30233" class="jive-image" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/30233_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if a user enters a 15 into the input box, the field rank should select all the records from 1 to 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 00:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422023#M157225</guid>
      <dc:creator />
      <dc:date>2013-01-15T00:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422024#M157226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Create variable for input box called vMax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Create list box with expression =Aggr(Only({$&amp;lt;Rank = {"&amp;lt;=$(=vMax)"}&amp;gt;} Rank),Rank)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the sample attached file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 01:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422024#M157226</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-01-15T01:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422025#M157227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sokkorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. What your above app is doing is selecting the values for the list box but not filtering out the data as a whole. I am looking for something like when a user enters a value into the input box, all the values which are less than the input value should get selected and all the other objects on the report should filter the data based on that. Does that makes sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422025#M157227</guid>
      <dc:creator />
      <dc:date>2013-01-15T06:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422026#M157228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tride with sample data in my attachment.. the input box variable you have to call in all your reports else it won't filter the data according to my knowledge..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422026#M157228</guid>
      <dc:creator />
      <dc:date>2013-01-15T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422027#M157229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure, but it looks like your app is not working. My requirement is - I have a field which has numeric values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an input box where a user would enter a maximum value. Example - if a user enters 6, all the values from 1 to 6 will be selected. So like when we select mutiple values in a list box, it greens out and select related data in other charts and graphs in the dashboard. In a similar way, as soon as a user would hit enter it will select all the 6 values automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422027#M157229</guid>
      <dc:creator />
      <dc:date>2013-01-15T06:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422028#M157230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let add variable event trigger by goto Setting ==&amp;gt; Document Properties ==&amp;gt; Triggers ==&amp;gt; Variable Event Triggers ==&amp;gt; OnChange ==&amp;gt; Add Action(s) ==&amp;gt; &amp;lt;Select in Field&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Field box put Ranks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Search String box put ='(' &amp;amp; Concat(Aggr(Only({$&amp;lt;Ranks = {"&amp;lt;=$(=vMax)"}&amp;gt;} Ranks),Ranks),'|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="30292" class="jive-image-thumbnail jive-image" onclick="" alt="Variable Trigger.png" src="/legacyfs/online/30292_Variable Trigger.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See sample file also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know after you test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 07:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422028#M157230</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-01-15T07:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422029#M157231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is very old, but can the Search String formula above be expanded to have a lower boundary as well, from a user input variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially doing a &amp;lt; vMax AND &amp;gt; vMin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I weave that into the formula?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422029#M157231</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2014-03-11T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable to set a max value for a field</title>
      <link>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422030#M157232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please disregard my previous question, I was able to figure it out.&amp;nbsp; Great technique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 18:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-variable-to-set-a-max-value-for-a-field/m-p/422030#M157232</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2014-03-11T18:17:29Z</dc:date>
    </item>
  </channel>
</rss>

