<?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 Nested IF in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531652#M748037</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't get a nested if to work in the script, i know its something stupid i am doing but can't figure it out.&lt;/P&gt;&lt;P&gt;What i want is&lt;/P&gt;&lt;P&gt;I have a field 'Employee', 'Type' and a 'Date'. I don't want to see any employees with a type of 'A' or 'B' before 01/01/2017. I want to see any other type before this date though and everything after it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531652#M748037</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't get a nested if to work in the script, i know its something stupid i am doing but can't figure it out.&lt;/P&gt;&lt;P&gt;What i want is&lt;/P&gt;&lt;P&gt;I have a field 'Employee', 'Type' and a 'Date'. I don't want to see any employees with a type of 'A' or 'B' before 01/01/2017. I want to see any other type before this date though and everything after it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531652#M748037</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531654#M748038</link>
      <description>&lt;P&gt;Where not (Match(Type, 'A', 'B') and Date &amp;lt; MakeDate(2017,1,1))&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 15:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531654#M748038</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-17T15:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531667#M748039</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I am trying to create a field in the table, so something like...&lt;/P&gt;&lt;P&gt;If(Not Match(Type,'A','B') and Date &amp;lt;01/01/2017,Type) as NewType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that gives me any other type and dates before 01/01/2017, but i then don't get anything after that date, I also want ALL types after that date too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other option is to use an expression in the chart but i can't get that working either..&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531667#M748039</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2019-01-17T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531735#M748040</link>
      <description>&lt;P&gt;I now have it working, i used..&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;if(not match([Type],'Basic Training') and [Date]&amp;lt;'01/01/2015',[Type],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Date]&amp;gt;='01/01/2015',&amp;nbsp;[Type])) as [New Type]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531735#M748040</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2019-01-17T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531736#M748041</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Note in my original example the "not" was outside a set of parens. That is key.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if(&lt;STRONG&gt;not (&lt;/STRONG&gt;match([Type],'Basic Training') and [Date]&amp;lt;'01/01/2015'&lt;STRONG&gt;)&lt;/STRONG&gt;,[Type]) as [New Type]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531736#M748041</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-17T17:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531760#M748042</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Rob,&lt;/P&gt;&lt;P&gt;Ahh yes, i see what you mean. That works, the one i posted also seems to do what i want, would there be a difference? should i change it to the one you suggested or is mine good enough?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 19:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531760#M748042</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2019-01-17T19:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF in script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531800#M748043</link>
      <description>&lt;P&gt;Either one seems to work but I find mine easier to read. Perhaps an even clearer way to write it is:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;SPAN&gt;match([Type],'Basic Training') and [Date]&amp;lt;'01/01/2015'&lt;/SPAN&gt;&lt;SPAN&gt;, null() ,[Type]) as [New Type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 21:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-in-script/m-p/1531800#M748043</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-17T21:23:22Z</dc:date>
    </item>
  </channel>
</rss>

