<?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: Use Slider as filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1783222#M1209733</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;In my opinion the simpliest way is to calculate the % in load script and then prepare the set analisys based on sliders with two variables for lower and upper bound.&lt;/P&gt;&lt;P&gt;I've loaded your qvw with binary and added calculations like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate
Loaded:
load *, Team &amp;amp;'|'&amp;amp; day_month_year as joinKey Resident Data;

drop table Data;


Status:
load
	joinKey
	, DoneQuantity/Quantity as DonePercent
;
load
	joinKey
	, sum(match(Status, 'Done')) as DoneQuantity
	, count(DISTINCT ID) as Quantity
Resident
	Loaded
group by
	joinKey
;

left join(Loaded)
load * Resident Status;

drop table Status;
drop field joinKey;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then added two variables: lowerBound, upperBound.&lt;/P&gt;&lt;P&gt;Set the slider for: VariableBased, MultipleValues&lt;BR /&gt;Min. value: 0&lt;BR /&gt;Max. value: 1&lt;BR /&gt;Static step: 0.1&lt;BR /&gt;In pivot added to expressions:&amp;nbsp;{&amp;lt;DonePercent={"&amp;gt;=$(lowerBound)&amp;lt;=$(upperBound)"}&amp;gt;}&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 'Count': Count({&amp;lt;DonePercent={"&amp;gt;=$(lowerBound)&amp;lt;=$(upperBound)"}&amp;gt;} DISTINCT ID)&lt;BR /&gt;Column 'Done':&amp;nbsp;Count(Distinct {$&amp;lt;Status={'Done'}, DonePercent={"&amp;gt;=$(lowerBound)&amp;lt;=$(upperBound)"} &amp;gt;}ID)&lt;BR /&gt;Column '%Done':&amp;nbsp;column(2)/column(1)&lt;/P&gt;&lt;P&gt;See the attached file. I didn't have the csv file so i've loaded yours qvw binary (as mentioned before).&lt;BR /&gt;Hope this help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 21:11:08 GMT</pubDate>
    <dc:creator>mfchmielowski</dc:creator>
    <dc:date>2021-02-16T21:11:08Z</dc:date>
    <item>
      <title>Use Slider as filter</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1781720#M1209531</link>
      <description>&lt;P&gt;I am trying to use a slider to filter my chart.&lt;/P&gt;&lt;P&gt;I have a calculation&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count(Distinct {$&amp;lt;Status={'Done'}&amp;gt;}ID)/Count(DISTINCT ID)&lt;/P&gt;&lt;P&gt;This will be a percentage value range from 0% to 100%.&lt;/P&gt;&lt;P&gt;I want a slider to filter the % range.&amp;nbsp; So I can filter anything below 50% or anything between 90% &amp;amp; 100% etc.&lt;/P&gt;&lt;P&gt;I need help with setting this up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1781720#M1209531</guid>
      <dc:creator>sqlpuzzle</dc:creator>
      <dc:date>2021-02-10T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use Slider as filter</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1783222#M1209733</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;In my opinion the simpliest way is to calculate the % in load script and then prepare the set analisys based on sliders with two variables for lower and upper bound.&lt;/P&gt;&lt;P&gt;I've loaded your qvw with binary and added calculations like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NoConcatenate
Loaded:
load *, Team &amp;amp;'|'&amp;amp; day_month_year as joinKey Resident Data;

drop table Data;


Status:
load
	joinKey
	, DoneQuantity/Quantity as DonePercent
;
load
	joinKey
	, sum(match(Status, 'Done')) as DoneQuantity
	, count(DISTINCT ID) as Quantity
Resident
	Loaded
group by
	joinKey
;

left join(Loaded)
load * Resident Status;

drop table Status;
drop field joinKey;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then added two variables: lowerBound, upperBound.&lt;/P&gt;&lt;P&gt;Set the slider for: VariableBased, MultipleValues&lt;BR /&gt;Min. value: 0&lt;BR /&gt;Max. value: 1&lt;BR /&gt;Static step: 0.1&lt;BR /&gt;In pivot added to expressions:&amp;nbsp;{&amp;lt;DonePercent={"&amp;gt;=$(lowerBound)&amp;lt;=$(upperBound)"}&amp;gt;}&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 'Count': Count({&amp;lt;DonePercent={"&amp;gt;=$(lowerBound)&amp;lt;=$(upperBound)"}&amp;gt;} DISTINCT ID)&lt;BR /&gt;Column 'Done':&amp;nbsp;Count(Distinct {$&amp;lt;Status={'Done'}, DonePercent={"&amp;gt;=$(lowerBound)&amp;lt;=$(upperBound)"} &amp;gt;}ID)&lt;BR /&gt;Column '%Done':&amp;nbsp;column(2)/column(1)&lt;/P&gt;&lt;P&gt;See the attached file. I didn't have the csv file so i've loaded yours qvw binary (as mentioned before).&lt;BR /&gt;Hope this help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 21:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1783222#M1209733</guid>
      <dc:creator>mfchmielowski</dc:creator>
      <dc:date>2021-02-16T21:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use Slider as filter</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1783232#M1209735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6190"&gt;@sqlpuzzle&lt;/a&gt;&amp;nbsp;, you can create first a variable : vP in this case&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_1-1613510528167.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49179iC41B489E184CE5F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_1-1613510528167.png" alt="QFabian_1-1613510528167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then Configure your chart, a pivot table in this case, telling it what to show , usig the variable :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1613510503510.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49178iB730D1998B901932/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_0-1613510503510.png" alt="QFabian_0-1613510503510.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then configure your slider like this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_2-1613510631685.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49180iA30A2C7D30A4A2DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_2-1613510631685.png" alt="QFabian_2-1613510631685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 21:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Slider-as-filter/m-p/1783232#M1209735</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-02-16T21:23:41Z</dc:date>
    </item>
  </channel>
</rss>

