<?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: Filter. Min value or/and all except certain values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012642#M931634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is your original bar chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bar_start.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117313_bar_start.png" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I created a variable vTest and a slider object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Slider_small.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/117317_Slider_small.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Slider_small_props.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/117318_Slider_small_props.png" style="height: 523px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And adding the expression to your chart returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bar_end.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/117319_bar_end.png" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2016 10:49:05 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-03-08T10:49:05Z</dc:date>
    <item>
      <title>Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012631#M931623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with using filters. In my case, I have a chart with X-axis Amount and Y-axis Price. I sorted Amount by Price. But now, I want to filter my data by:&lt;/P&gt;&lt;P&gt;1) showing the only amount of minimum price for each company separately. For example, it would be 8/12 for Company B, 10/22 for Company A and 20/63 Company C.&lt;/P&gt;&lt;P&gt;2) ability to choose certain values or all values except certain. For example, display each company's first 2 lowest price amounts (Company B 8/12 and 10/36; Company A 10/22 and 15/30; Company C 20/63).&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="117095" alt="Min or certain value.png" class="jive-image image-1" src="/legacyfs/online/117095_Min or certain value.png" style="height: 159px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vidmat Vidmat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012631#M931623</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012632#M931624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Price and Amount are unique values per Company, so there is no aggregation involved in UI, right?&lt;/P&gt;&lt;P&gt;And Amount values are distinct, a single Amount is related to only one Company, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you could create a button with a Selection - Select in Field action with field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and search string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Rank&lt;STRONG&gt;(-Price&lt;/STRONG&gt;)=1,Company,Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;edit&lt;/STRONG&gt;: replace =1 with &amp;lt;=2 etc. to select not min value, but lowest two values etc.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your amount values could be the same between companies, you might need to create a combined key in the script for Company and amount to make your selections in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more help, please post a small sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 12:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012632#M931624</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-06T12:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012633#M931625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange, I've edited my reply, but it won't show in the thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Rank&lt;STRONG&gt;(-Price&lt;/STRONG&gt;)=1,Company,Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;edit&lt;/STRONG&gt;: replace =1 with &amp;lt;=2 etc. to select not min value, but lowest two values etc.]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 12:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012633#M931625</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-06T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012634#M931626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt;, &lt;/STRONG&gt; I do not need to use both filters at the same time, just to know how to do it. As for Amount, yes, there are could same amounts of different companies with same/not price. Also, I tried your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Aggr(Rank&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(-Price&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)=1,Company,Amount), but it did not work. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 15:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012634#M931626</guid>
      <dc:creator />
      <dc:date>2016-03-06T15:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012635#M931627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 16:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012635#M931627</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-06T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012636#M931628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached it to the main post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 16:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012636#M931628</guid>
      <dc:creator />
      <dc:date>2016-03-06T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012637#M931629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I've missed that you edited your original post and added a sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached for a suggested solution using an expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only(Aggr( If( Rank(-avg(Quantity)) &amp;lt;= vTest, Avg(Quantity)),Company, Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 22:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012637#M931629</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-06T22:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012638#M931630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Please try this expression&lt;/P&gt;&lt;P&gt;=if(aggr(rank(min(Price)),Company)&amp;lt;=1,Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For second recruitment Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(aggr(rank(min(Price)),Company)&amp;lt;=2,Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 06:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012638#M931630</guid>
      <dc:creator />
      <dc:date>2016-03-07T06:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012639#M931631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt;&lt;/STRONG&gt;‌, I can not open your file because of Personal Edition. I tried your expression, but it did not work because it could not identify vTest.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/DeepaMishra"&gt;DeepaMishra&lt;/A&gt;‌,&amp;nbsp; &lt;/STRONG&gt;both your expressions show the wrong values as well as use Amount as X-axis instead of Quantity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012639#M931631</guid>
      <dc:creator />
      <dc:date>2016-03-07T18:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012640#M931632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vTest is just a variable, I created a slider object to set the variable to 1,2 or 3.&lt;/P&gt;&lt;P&gt;So the expression should filter the lowest, lowest and second lowest, three lowest prices per company.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 22:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012640#M931632</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-07T22:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012641#M931633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt; , &lt;/STRONG&gt;could you explain to me how to create a slider object to set a variable to 1, 2, 3, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 06:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012641#M931633</guid>
      <dc:creator />
      <dc:date>2016-03-08T06:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012642#M931634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is your original bar chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bar_start.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117313_bar_start.png" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I created a variable vTest and a slider object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Slider_small.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/117317_Slider_small.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Slider_small_props.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/117318_Slider_small_props.png" style="height: 523px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And adding the expression to your chart returned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="bar_end.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/117319_bar_end.png" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 10:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012642#M931634</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-08T10:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter. Min value or/and all except certain values</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012643#M931635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/swuehl"&gt;swuehl&lt;/A&gt;&lt;/STRONG&gt;‌, thanks. It works. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 13:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-Min-value-or-and-all-except-certain-values/m-p/1012643#M931635</guid>
      <dc:creator />
      <dc:date>2016-03-08T13:30:08Z</dc:date>
    </item>
  </channel>
</rss>

