<?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: Filtering based on custom condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241430#M855016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum ({&amp;lt;Flag += {'No'}&amp;gt;}TotalCost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2017 08:42:17 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-02-09T08:42:17Z</dc:date>
    <item>
      <title>Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241429#M855015</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;here my requirement is to show when i select&amp;nbsp; &lt;STRONG&gt;yes &lt;/STRONG&gt;in flag filter it should show total cost in 2015 year(241 dollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for instance :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if i select &lt;EM&gt;YES &lt;/EM&gt;it should show total five records(records with yes and no flag)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if &lt;SPAN style="font-size: 13.3333px;"&gt;i select&lt;/SPAN&gt; &lt;EM&gt;NO &lt;/EM&gt;it should show only records with no flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993366;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;Please check the Attachment for details&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823" target="_blank"&gt;swuehl&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4484" target="_blank"&gt;stevedark&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;IMG alt="filter issue.png" class="jive-image image-1" src="/legacyfs/online/152549_filter issue.png" style="height: auto;" /&gt;&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/Filtering-based-on-custom-condition/m-p/1241429#M855015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241430#M855016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum ({&amp;lt;Flag += {'No'}&amp;gt;}TotalCost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 08:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241430#M855016</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-09T08:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241431#M855017</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;pls have a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 08:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241431#M855017</guid>
      <dc:creator />
      <dc:date>2017-02-09T08:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241432#M855018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like to solve these kind of things in the data model, if you add this table and use Flag2 it will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Flag,Flag2&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;Flag,Flag2&lt;/P&gt;&lt;P&gt;No,Yes&lt;/P&gt;&lt;P&gt;Yes,Yes&lt;/P&gt;&lt;P&gt;Yes,No&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then choose to rename fields, so Flag2 is called Flag, and you can even use a HidePrefix so that the join key is not visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan's set analysis based answer will also work for you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 08:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241432#M855018</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-02-09T08:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241433#M855019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes its working fine with total cost &lt;STRONG&gt;but&lt;/STRONG&gt; my requirement need to show all records in table also(when select yes it should show all records in table )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Select YES it should show all records in table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select NO it should show only records with NO flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 09:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241433#M855019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T09:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241434#M855020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you &lt;EM&gt;generally&lt;/EM&gt; need to show all records with flag Yes or No when selecting in listbox 'Yes', then go with the script solution suggested by Steve Dark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to show a table with all records, but it is on the same page / chart also required to filter on records using the specific selected value, then you might want to consider a set analysis solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also combine both solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, to show all records, create a straight table with the all the fields you want to show as dimensions, and use an expression (that you can hide on presentation tab) like&lt;/P&gt;&lt;P&gt;=Count ({&amp;lt;Flag += {'No'}&amp;gt;}TotalCost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241434#M855020</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-02-09T10:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241435#M855021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;=if(Flag='Yes',sum({1}TotalCost),sum({$&amp;lt;flag={'No'}&amp;gt;}TotalCost))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241435#M855021</guid>
      <dc:creator>gowtham_patnaik</dc:creator>
      <dc:date>2017-02-09T10:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241436#M855023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script solution is generally good, but you have to be *really* careful if you are putting the dimension in a table.&amp;nbsp; The way that one dim links to two will cause duplication of rows (if you put Flag2 in the table after usuing my script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only use Flag2 in listboxes and Flag in tables, then everything will work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis allows you to be more prescriptive about what happens where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 10:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241436#M855023</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-02-09T10:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering based on custom condition</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241437#M855024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah steve its working fine i used &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Flag2 &lt;/SPAN&gt; as in filter and flag used in chart expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 11:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-based-on-custom-condition/m-p/1241437#M855024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T11:20:49Z</dc:date>
    </item>
  </channel>
</rss>

