<?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/963153#M957801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about the TRAN_CD of these records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If TRAN_CD &amp;lt;&amp;gt; 355, wouldn't the second if() statement be valuated true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2015 20:21:31 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-11-09T20:21:31Z</dc:date>
    <item>
      <title>If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963150#M957798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code below is not working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TRAN_CD &amp;lt;&amp;gt; 355 and (DFNR_CD = 0 and SUM_TRAN_AMT &amp;lt;&amp;gt; 100 and SUM_TRAN_AMT &amp;lt;&amp;gt; 50 and SUM_TRAN_AMT &amp;lt;&amp;gt; -100 and SUM_TRAN_AMT &amp;lt;&amp;gt; -50), SUM_TRAN_AMT,&lt;/P&gt;&lt;P&gt;if(TRAN_CD &amp;lt;&amp;gt; 355&amp;nbsp; and (DFNR_CD &amp;lt;&amp;gt; 5200 and DFNR_CD &amp;lt;&amp;gt; 52000 and DFNR_CD &amp;lt;&amp;gt; 25000 and DFNR_CD &amp;lt;&amp;gt; 50191), SUM_TRAN_AMT, 0)) as Charges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the second if is commented out(see below the first conditional works, when it is uncommented it does not.&amp;nbsp; Any ideas on why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TRAN_CD &amp;lt;&amp;gt; 355 and (DFNR_CD = 0 and SUM_TRAN_AMT &amp;lt;&amp;gt; 100 and SUM_TRAN_AMT &amp;lt;&amp;gt; 50 and SUM_TRAN_AMT &amp;lt;&amp;gt; -100 and SUM_TRAN_AMT &amp;lt;&amp;gt; -50), SUM_TRAN_AMT, 0) as Charges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 18:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963150#M957798</guid>
      <dc:creator>qlikofba</dc:creator>
      <dc:date>2015-11-09T18:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963151#M957799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you exactely mean with 'not working correctly'? Can you post some sample lines of input data and what you expect to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963151#M957799</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-09T19:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963152#M957800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are DFNR_CD of 0 that have SUM TRAN AMTS of 100 that are being displayed as a Charge of 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They should be displayed as 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963152#M957800</guid>
      <dc:creator>qlikofba</dc:creator>
      <dc:date>2015-11-09T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963153#M957801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about the TRAN_CD of these records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If TRAN_CD &amp;lt;&amp;gt; 355, wouldn't the second if() statement be valuated true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 20:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963153#M957801</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-09T20:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963154#M957802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tran codes that are 355 should be displayed as 0s as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 20:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963154#M957802</guid>
      <dc:creator>qlikofba</dc:creator>
      <dc:date>2015-11-09T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963155#M957803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactely is wrong with the result?&lt;/P&gt;&lt;P&gt;&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;if(TRAN_CD &amp;lt;&amp;gt; 355 and (DFNR_CD = 0 and SUM_TRAN_AMT &amp;lt;&amp;gt; 100 and SUM_TRAN_AMT &amp;lt;&amp;gt; 50 and SUM_TRAN_AMT &amp;lt;&amp;gt; -100 and SUM_TRAN_AMT &amp;lt;&amp;gt; -50), SUM_TRAN_AMT,&lt;/P&gt;&lt;P&gt;if(TRAN_CD &amp;lt;&amp;gt; 355&amp;nbsp; and (DFNR_CD &amp;lt;&amp;gt; 5200 and DFNR_CD &amp;lt;&amp;gt; 52000 and DFNR_CD &amp;lt;&amp;gt; 25000 and DFNR_CD &amp;lt;&amp;gt; 50191), SUM_TRAN_AMT, 0)) as Charges,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;TRAN_CD, DFNR_CD, SUM_TRAN_AMT&lt;/P&gt;&lt;P&gt;0, 0,100&lt;/P&gt;&lt;P&gt;355,0,100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 20:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/963155#M957803</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-09T20:46:04Z</dc:date>
    </item>
  </channel>
</rss>

