<?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: How to filter data based on expression value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630244#M231304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attach a Sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2014 03:51:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-28T03:51:11Z</dc:date>
    <item>
      <title>How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630241#M231301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is my straight table structure.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Client&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Bal Sheet&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Rev&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ROA&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ABC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1222&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CDE&lt;/TD&gt;&lt;TD&gt;9899&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;TD&gt;303&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have Client as the dimension and Bal Sheet, Rev and ROA as expressions&lt;/P&gt;&lt;P&gt;Interesting part is ROA expression is calculated using Bal Sheet and Rev &lt;/P&gt;&lt;P&gt;ROA = (Rev / bal Sheet ) * 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I wanted to have a filter to show ROA &amp;lt; 50 , ROA between 50 to 100 , ROA &amp;gt; 100&lt;/P&gt;&lt;P&gt;I tried to do a data island with list box filter. On selecting the ROA filter list box (let say I choose &amp;lt; 50) I see ROA column displays values &amp;lt; 50 but it also contains other rows which are not &amp;lt; 50 (displayed as nulls).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I basically only want to display those rows matching the ROA filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear.&lt;/P&gt;&lt;P&gt;Please let me know how to achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 00:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630241#M231301</guid>
      <dc:creator />
      <dc:date>2014-05-28T00:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630242#M231302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can move this logic to the load script&lt;/P&gt;&lt;P&gt;something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[tmpgrp]:&lt;/P&gt;&lt;P&gt;LOAD ClientId, Month&lt;/P&gt;&lt;P&gt;IF(SUM(Rev)/SUM([Bal Sheet])*1000&amp;lt;50,'&amp;lt;50',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SUM(Rev)/SUM([Bal Sheet])*1000&amp;gt;=100, '&amp;gt;100', '&amp;gt;=50&amp;lt;100') AS Filter&lt;/P&gt;&lt;P&gt;Resident your_data_table&lt;/P&gt;&lt;P&gt;GROUP BY ClientId, Month;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN (your_data_table)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident tmpgrp;&lt;/P&gt;&lt;P&gt;DROP Table tmpgrp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 01:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630242#M231302</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-05-28T01:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630243#M231303</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;Can you attach some sample file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 01:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630243#M231303</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-05-28T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630244#M231304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attach a Sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 03:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630244#M231304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-28T03:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630245#M231305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergey, ROA has to be calculated on the QV front end.&lt;/P&gt;&lt;P&gt;I currently have the Load script resolution but the issue is we have multiple dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when slicing the data -&amp;nbsp; it shows wrong results&lt;/P&gt;&lt;P&gt;So its better to do from the front end side &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630245#M231305</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630246#M231306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Jagan and Nitin,&lt;/P&gt;&lt;P&gt;I don't know how to provide a sample file. Our QVW is huge with so many dimensions/slicers, big data model.&lt;/P&gt;&lt;P&gt;But basically I wanted to filter the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630246#M231306</guid>
      <dc:creator />
      <dc:date>2014-05-28T13:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630247#M231307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimple&lt;/P&gt;&lt;P&gt;Your BalSheet and Rev are also caluculated Exp ? if then provide the calculation part&lt;/P&gt;&lt;P&gt;if not then&lt;/P&gt;&lt;P&gt;Use in listbox expression&lt;/P&gt;&lt;P&gt;Let var=(rev/Balsheet)*1000&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(var)&amp;lt;50, 'ROA&amp;lt;50',&lt;/P&gt;&lt;P&gt;if($(var)&amp;gt;50 and $(var)&amp;lt;100, 'ROA 50 to 100',&lt;/P&gt;&lt;P&gt;if( $(var)&amp;gt;100,'ROA&amp;gt;100')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630247#M231307</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-05-28T14:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630248#M231308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasikanth&lt;/P&gt;&lt;P&gt;I think you are trying to move the same logic from load script to list box. The problem is there are many dimension fields and if we statically calculate ROA - then its a problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did is introduce new columns based on ROA value&lt;/P&gt;&lt;P&gt;&amp;lt; 50 , &amp;gt; 100 , 50-100 columsn&lt;/P&gt;&lt;P&gt;The problem is it displays the values correctly in the buckets.&lt;/P&gt;&lt;P&gt;how can I hide the null rows&amp;nbsp; now ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 15:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630248#M231308</guid>
      <dc:creator />
      <dc:date>2014-05-28T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630249#M231309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe (see attachement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(&lt;/P&gt;&lt;P&gt;if(Rev / [Bal Sheet] * 1000 &amp;gt;100, dual('&amp;gt;100',100),&lt;/P&gt;&lt;P&gt;if(Rev / [Bal Sheet] * 1000 &amp;gt;50, dual('50...100',50),&lt;/P&gt;&lt;P&gt;dual('0...50',0)&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 19:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630249#M231309</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-28T19:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630250#M231310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks promising. Can you please explain how this works?&lt;/P&gt;&lt;P&gt;Basically I am not able to understand how the ROA field is getting affected when you change the list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 01:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630250#M231310</guid>
      <dc:creator />
      <dc:date>2014-05-29T01:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630251#M231311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Qlikview. Can some one please explain how Massimo Grossi's solution works ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 12:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630251#M231311</guid>
      <dc:creator />
      <dc:date>2014-05-29T12:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630252#M231312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dimple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Rev / [Bal Sheet] * 1000 &amp;gt;100, dual('&amp;gt;100',100) &amp;lt;- this expression checks if rev / bal * 1000 is greater than 100. Dual returns two values: a text value (in this case '&amp;gt;100' and a number value (in this case 100). So selecting &amp;gt;100 in the list box filters to values that satisfy Rev / Bal Sheet * 1000 &amp;gt; 100 ( in this case&amp;nbsp; CCC and CDE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest of the function works in a similar way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 12:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630252#M231312</guid>
      <dc:creator />
      <dc:date>2014-05-29T12:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on expression value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630253#M231313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//this technique of stacking load statements is called preceeding loads. Search for HIC + Preceeding loads in the community &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ROA &lt;/SPAN&gt;,50 ,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ROA &lt;/SPAN&gt;' ) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ROA &lt;/SPAN&gt;//replace the 50&amp;nbsp; with any increment you want. Class allows you to split any figure into classes. Very useful. Could be combined with aggregate functions.&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt; ( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(Rev / bal Sheet ) * 1000&lt;/SPAN&gt; ) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ROA &lt;/SPAN&gt;; //Calculate the item price. in the preceeding load above, you can reuse ItemPrice and QlikView will understand its content. Very powerful load technique&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Client, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;bal Sheet&lt;/SPAN&gt;, Rev,&lt;/P&gt;&lt;P&gt;ABC, 1222, 20,&lt;/P&gt;&lt;P&gt;CDE, 9899, 3000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2014 13:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-filter-data-based-on-expression-value/m-p/630253#M231313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-29T13:02:34Z</dc:date>
    </item>
  </channel>
</rss>

