<?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: if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461573#M436161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data set and your expected output out of that data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this ? Correct me basically for Land method you want to assign Done and NotDone? Is this interpretation is right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Method = 'Land' AND Donation = 'True', 'Done', &lt;/P&gt;&lt;P&gt;IF(Method = 'Land' AND Donation = 'False', 'NotDone')) AS NewFlag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 17:29:22 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2018-01-09T17:29:22Z</dc:date>
    <item>
      <title>if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461572#M436160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 i have a field in script called&amp;nbsp; donation which has flag value&amp;nbsp; true&amp;nbsp; OR false&lt;/P&gt;&lt;P&gt;2 i have another field "Method" which has value Land, Sky&amp;nbsp; and Sea,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;requirement is if the donation is true than it it should be "Done " if it is false than "NODone"&amp;nbsp;&amp;nbsp; and also this logic is only applicable on Land not in Sky and Sea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/211603"&gt;omarbensalem&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 16:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461572#M436160</guid>
      <dc:creator>everest226</dc:creator>
      <dc:date>2018-01-09T16:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461573#M436161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data set and your expected output out of that data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this ? Correct me basically for Land method you want to assign Done and NotDone? Is this interpretation is right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Method = 'Land' AND Donation = 'True', 'Done', &lt;/P&gt;&lt;P&gt;IF(Method = 'Land' AND Donation = 'False', 'NotDone')) AS NewFlag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 17:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461573#M436161</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-01-09T17:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461574#M436162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try shting like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *, if(upper(Method)='LAND' and upper(Flag)='TRUE','Done',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;if(upper(Method)='LAND' and upper(Flag)='FALSE','NotDone',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Flag )) as YourNewFlag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load Flag,&lt;/P&gt;&lt;P&gt;Method,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop field Flag from table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 18:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461574#M436162</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2018-01-09T18:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461575#M436163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ujjwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Method = 'Land' and Donation = 'True', 'Done',&lt;/P&gt;&lt;P&gt;if(Method = 'Land' and Donation = 'False', 'No Done','NA')) as NewField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 18:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461575#M436163</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2018-01-09T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461576#M436164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/211603"&gt;omarbensalem&lt;/A&gt;‌&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks&amp;nbsp; Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 19:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/1461576#M436164</guid>
      <dc:creator>everest226</dc:creator>
      <dc:date>2018-01-09T19:15:29Z</dc:date>
    </item>
  </channel>
</rss>

