<?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 Help with an IF statement in the Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329774#M704313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to translate this IF statement in Qlikview statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;left([Account ID], 3) in ('105','104','530','550','580','730','750','751','830','850','901')&amp;nbsp; and left ([Purchase Order], 1) in ('1','2','5','7','8') and left ([Project ID], 1) in ('0','4')&lt;/P&gt;&lt;P&gt;) then ('NonCapital - Direct') &lt;/P&gt;&lt;P&gt;else If &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;left([Account ID], 3) in ('105','104','530','550','580','730','750','751','830','850','901')&amp;nbsp; and left([Purchase Order], 1) in ('1','2','5','7','8') and left ([Project ID], 1) in ('1')&lt;/P&gt;&lt;P&gt;) then ('NonCapital -MtestIndirect') &lt;/P&gt;&lt;P&gt;else if&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;left([Account ID], 3) in ('105','104')&amp;nbsp; and left([Purchase Order], 1) in ('1','2','5','7','8') and [Project ID] is null ) then ('NonCapital - MTest') &lt;/P&gt;&lt;P&gt;else&amp;nbsp; ('Undefine')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Henness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2012 14:44:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-30T14:44:46Z</dc:date>
    <item>
      <title>Help with an IF statement in the Load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329774#M704313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to translate this IF statement in Qlikview statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;left([Account ID], 3) in ('105','104','530','550','580','730','750','751','830','850','901')&amp;nbsp; and left ([Purchase Order], 1) in ('1','2','5','7','8') and left ([Project ID], 1) in ('0','4')&lt;/P&gt;&lt;P&gt;) then ('NonCapital - Direct') &lt;/P&gt;&lt;P&gt;else If &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;left([Account ID], 3) in ('105','104','530','550','580','730','750','751','830','850','901')&amp;nbsp; and left([Purchase Order], 1) in ('1','2','5','7','8') and left ([Project ID], 1) in ('1')&lt;/P&gt;&lt;P&gt;) then ('NonCapital -MtestIndirect') &lt;/P&gt;&lt;P&gt;else if&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;left([Account ID], 3) in ('105','104')&amp;nbsp; and left([Purchase Order], 1) in ('1','2','5','7','8') and [Project ID] is null ) then ('NonCapital - MTest') &lt;/P&gt;&lt;P&gt;else&amp;nbsp; ('Undefine')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Henness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 14:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329774#M704313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-30T14:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with an IF statement in the Load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329775#M704314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can replace the &lt;EM&gt;in &lt;/EM&gt;using &lt;EM&gt;match() &lt;/EM&gt;function and use the if() statement with then,else branch included as arguments and separated by commas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;match(left([Account ID], 3),'105','104','530','550','580','730','750','751','830','850','901')&amp;nbsp; and match(left ([Purchase Order], 1),'1','2','5','7','8') and match(left ([Project ID], 1),'0','4')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, 'NonCapital - Direct'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, If &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;match(left([Account ID], 3),'105','104','530','550','580','730','750','751','830','850','901')&amp;nbsp; and match(left([Purchase Order], 1),'1','2','5','7','8') and match(left ([Project ID], 1),'1')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,'NonCapital -MtestIndirect'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, if&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;match (left([Account ID], 3),'105','104')&amp;nbsp; and match(left([Purchase Order], 1),'1','2','5','7','8') and isnull([Project ID]) ,'NonCapital - MTest'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,'Undefine'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I haven't forgot too many brackets,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 14:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329775#M704314</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-30T14:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with an IF statement in the Load</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329776#M704315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help  !! It works !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2012 16:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-an-IF-statement-in-the-Load/m-p/329776#M704315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-30T16:15:40Z</dc:date>
    </item>
  </channel>
</rss>

