<?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: Re: Filter based on a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561095#M209425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is always better to have a real field for a filter, please find attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Sep 2013 18:48:02 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2013-09-02T18:48:02Z</dc:date>
    <item>
      <title>Filter based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561091#M209421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the attachment is an example of this data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="199" style="width: 474px; height: 197px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="text-align: center;" width="140"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="48"&gt;&lt;STRONG&gt;Value_A&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="48"&gt;&lt;STRONG&gt;Value_B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="29"&gt;&lt;STRONG&gt;A - B&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left-style: none; text-align: center;" width="82"&gt;&lt;STRONG&gt;(A - B) * Factor&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Aaron. STEVENS&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;109&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;228&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-119&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-178&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Abraham. CARROLL&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;181&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;229&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-48&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Abraham. JAMES&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;181&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;213&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-32&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Abraham. JONES&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;182&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;122&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Abraham. RAY&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;199&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;233&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-34&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-51&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Achille. GRANT&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;126&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;109&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;17&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;Achille. RICE&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;114&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;247&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-133&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-199&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fourth column is the difference between Value_A - Value_B, and I called 'A - B'.&lt;/P&gt;&lt;P&gt;The fifth column is 'A - B' multiplied by a factor, these are the rules:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A-B &amp;lt;= 0 then factor = 1.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A-B &amp;lt;= 50 then factor = 2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A-B &amp;lt;= 70 then factor = 2.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A-B greater that 70 then factor = 3.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is this:&lt;/P&gt;&lt;P&gt;I need to filter the table using the last columna (A-B * Factor), I like to have one filter where show:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Only the NEGATIVE values.&lt;/LI&gt;&lt;LI&gt;Without duplicates.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="155" style="width: 148px; height: 161px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="82"&gt;FILTER: (A - B) * Factor&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;-220&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;-214&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;-211&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;-210&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top-style: none; text-align: center;"&gt;-207&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the data is filtered according to the negative value selected in the filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 16:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561091#M209421</guid>
      <dc:creator />
      <dc:date>2013-09-02T16:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561092#M209422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use a listbox with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Difference&amp;lt;0, 'Difference&amp;lt;0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 16:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561092#M209422</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-02T16:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561093#M209423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Difference is determining the outcome of the table, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you can take care that all columns return zero / NULL for the rows to hide, then use 'Suppress zero values' in presentation tab to hide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 16:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561093#M209423</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-02T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561094#M209424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to make some clarifications:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I make a filter: &lt;STRONG&gt;=If((Value_A - Value_B) &amp;lt;= 0,&amp;nbsp; (Value_A - Value_B) * 1.5)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. When I select a value in the filter, example -40.50, all ok and only show the values where '(A - B) * Factor' = -40.50&lt;/P&gt;&lt;P&gt;3. But, when I select -12.00 the values in '(A - B) * Factor' are varied: -12.00, 34.00, -109.50, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don´t work if I select only a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;attachment &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 18:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561094#M209424</guid>
      <dc:creator />
      <dc:date>2013-09-02T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Filter based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561095#M209425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is always better to have a real field for a filter, please find attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 18:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561095#M209425</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-02T18:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter based on a column</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561096#M209426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to figure out a possible explanation, and here is what I think happens.&lt;/P&gt;&lt;P&gt;The actual data fields used in the model are &lt;STRONG&gt;Name, Value_A&lt;/STRONG&gt; and&lt;STRONG&gt; Value_B&lt;/STRONG&gt;, the rest of the columns are calculated i.e. &lt;STRONG&gt;A-B&lt;/STRONG&gt; and &lt;STRONG&gt;(A-B) * Factor&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we filter data based on the calculated value, QlikView internally uses the underlying fields for filtering the data (in this case&amp;nbsp; &lt;STRONG&gt;Value_A&lt;/STRONG&gt; and &lt;STRONG&gt;Value_B&lt;/STRONG&gt;), so when you select -12.00, effectively the data is filtered for the selected values of &lt;STRONG&gt;Value_A&lt;/STRONG&gt; and &lt;STRONG&gt;Value_B &lt;/STRONG&gt;instead of for the calculated value of -12.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Karelle. WHITE has both &lt;STRONG&gt;Value_A (121)&lt;/STRONG&gt; and &lt;STRONG&gt;Value_B (194)&lt;/STRONG&gt; that match with the ones selected for -12.00 (i.e. selected values in the Yellow highlighted listbox), hence this row too gets filtered though its &lt;STRONG&gt;(A-B)* Factor&lt;/STRONG&gt; value is -109.50.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataFiltering2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46130_DataFiltering2.png" style="width: 620px; height: 393px;" /&gt;&lt;/P&gt;&lt;P&gt;So to conclude, as mentioned by Ralf, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;it is always better to have a real field for a filter&lt;/SPAN&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;KD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 22:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-based-on-a-column/m-p/561096#M209426</guid>
      <dc:creator>kedar_dandekar</dc:creator>
      <dc:date>2013-09-02T22:53:21Z</dc:date>
    </item>
  </channel>
</rss>

