<?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: Need Help in Creating a Filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415696#M154599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sivaraj and Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable reply, but still i have not achieved what I have requested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The first portion of the expression &lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;If(Match(FLAG, 'A', 'D'), If(Match(CODES, 'Z', 'H', 'U', 'I'), 'Flag Yes'&lt;/EM&gt;', this is working fine but the second one gives the worng result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. As I want this result in a single expression like if I add &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff; text-decoration: underline;"&gt;"FLAG YES/NO"&lt;/SPAN&gt; in the list box, when i click either the "Flag Yes" means it has to show condtion (a) or if I press the "Flag No" means condition (b)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.&amp;nbsp; &lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Match(FLAG, 'A', 'D')&lt;/EM&gt; and Code(&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;'Z', 'H', 'U', 'I') &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Match(&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FLAG, 'A', 'D') and isnull(Code).&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;How to achieve this in a single exprssion in the script.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Chriss&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2013 09:25:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-07T09:25:53Z</dc:date>
    <item>
      <title>Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415693#M154596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a single table and as I need to create a Filter like &lt;SPAN style="text-decoration: underline;"&gt;"FLAG YES/NO"&lt;/SPAN&gt;, I have column name &lt;SPAN style="text-decoration: underline;"&gt;FLAG&lt;/SPAN&gt; value is like &lt;SPAN style="text-decoration: underline;"&gt;A,D,X,T&lt;/SPAN&gt; and One more Column like &lt;SPAN style="text-decoration: underline;"&gt;CODES&lt;/SPAN&gt; it contains the value like &lt;SPAN style="text-decoration: underline;"&gt;null,Z,H,U,I.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I need to create a expression in the script based on the following conditions.&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The condition is like if FLAG value is "A","D" and the CODE of "Z","H","U" and "I" means&amp;nbsp; "Flag Yes"&lt;/P&gt;&lt;P&gt;the other condition is if the FLAG value is "A", "D" and the CODE is "NULL" means the "Flag NO"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I tried like if((FLAG='A','D') and (CODES&amp;lt;&amp;gt; Null),'FLAG YES'), If((FLAG='A','D') and (CODES=Null),'FLAG No') as [FLAG YES/NO], but its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me out from this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 07:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415693#M154596</guid>
      <dc:creator />
      <dc:date>2013-03-07T07:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415694#M154597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(wildmatch(FLAG,'A','D') and wildmatch(CODE,'Z','H','U','I'),'Flag Yes',if(wildmatch(FLAG,'A','D') and isnull(CODE),'Flag No'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 07:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415694#M154597</guid>
      <dc:creator>sivarajs</dc:creator>
      <dc:date>2013-03-07T07:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415695#M154598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return Null if none of the conditions are met:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Match(FLAG, 'A', 'D'), If(Match(CODES, 'Z', 'H', 'U', 'I'), 'Flag Yes', If(IsNull(CODES), 'Flag No')))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return 'UNKNOWN' if none of the conditions are met:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Match(FLAG, 'A', 'D') And Match(CODES, 'Z', 'H', 'U', 'I'), 'Flag Yes', If(Match(FLAG, 'A', 'D') And IsNull(CODES), 'Flag No', 'UNKNOWN'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Fixed syntax error in second expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 07:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415695#M154598</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-03-07T07:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415696#M154599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sivaraj and Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable reply, but still i have not achieved what I have requested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The first portion of the expression &lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;If(Match(FLAG, 'A', 'D'), If(Match(CODES, 'Z', 'H', 'U', 'I'), 'Flag Yes'&lt;/EM&gt;', this is working fine but the second one gives the worng result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. As I want this result in a single expression like if I add &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff; text-decoration: underline;"&gt;"FLAG YES/NO"&lt;/SPAN&gt; in the list box, when i click either the "Flag Yes" means it has to show condtion (a) or if I press the "Flag No" means condition (b)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.&amp;nbsp; &lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Match(FLAG, 'A', 'D')&lt;/EM&gt; and Code(&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;'Z', 'H', 'U', 'I') &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b. Match(&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FLAG, 'A', 'D') and isnull(Code).&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;How to achieve this in a single exprssion in the script.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Chriss&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415696#M154599</guid>
      <dc:creator />
      <dc:date>2013-03-07T09:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415697#M154600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you need a field containing Flag Yes/Flag No. This you can put in a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your load script, you would associate the new field (lets call it FlagYN), something like this when you load the table containing FLAG and CODES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODES,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(FLAG, 'A', 'D'), If(Match(CODES, 'Z', 'H', 'U', 'I'), 'Flag Yes', If(IsNull(CODES), 'Flag No'))) As FlagYN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can put FlagYN in a list box and selecting a value will select the associated records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415697#M154600</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-03-07T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415698#M154601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again, I heard about a flag but to be honest I don't know how its works, could you please brief me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and currently i am using only one table and using concatenate two tables merged together and I can split the expressions like as in the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise If i am wrong....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FactTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CusotmerNumber,&lt;/P&gt;&lt;P&gt;CustomerName,&lt;/P&gt;&lt;P&gt;ProductCode,&lt;/P&gt;&lt;P&gt;ProductName,&lt;/P&gt;&lt;P&gt;....................&lt;/P&gt;&lt;P&gt;....................&lt;/P&gt;&lt;P&gt;Flag,&lt;/P&gt;&lt;P&gt;Codes,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt; If(Match(FLAG, 'A', 'D') and Code&amp;lt;&amp;gt; '' ,'Flag Yes') as FlagYN,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Qty,&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Test.qvd(QVD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate FactTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FactTable1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CusotmerNumber,&lt;/P&gt;&lt;P&gt;CustomerName,&lt;/P&gt;&lt;P&gt;ProductCode,&lt;/P&gt;&lt;P&gt;ProductName,&lt;/P&gt;&lt;P&gt;....................&lt;/P&gt;&lt;P&gt;....................&lt;/P&gt;&lt;P&gt;Flag,&lt;/P&gt;&lt;P&gt;Codes,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;If(Match(FLAG, 'A', 'D' and &lt;/SPAN&gt;IsNull(CODES), 'Flag No')) As FlagYN,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Qty,&lt;/P&gt;&lt;P&gt;Weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Test.qvd(QVD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 10:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415698#M154601</guid>
      <dc:creator />
      <dc:date>2013-03-07T10:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help in Creating a Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415699#M154602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chriss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you loading the qvd twice? - this will simply duplicate all the records and apply half the flag condition to each half.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this load once like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FactTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Codes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Match(Flag, 'A', 'D'), If(Match(Codes, 'Z', 'H', 'U', 'I'), 'Flag Yes', If(IsNull(Codes), 'Flag No'))) As FlagYN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight&lt;/P&gt;&lt;P&gt;From Test.qvd(QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other point - field names are case sensitive - Flag is a different field to FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 14:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-Help-in-Creating-a-Filter/m-p/415699#M154602</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-03-07T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

