<?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 with a nested if statement for a Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714873#M1070917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;Excess = if(flag='X',Allowance,if(Allowance &amp;gt; Fees,Allowance-Fees,if(Allowance&amp;lt;Fees,0)))&lt;/P&gt;&lt;P&gt;-Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 14:12:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-20T14:12:07Z</dc:date>
    <item>
      <title>Need help with a nested if statement for a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714872#M1070916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, this is for a straight table, and not sure if it should be a dimension or an expression, but I guess I can figure that out on my own. What I can't figure out, is how to create an if statement to populate a value for in the (Result) column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns I am evaluating are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flag&lt;/P&gt;&lt;P&gt;Excess&lt;/P&gt;&lt;P&gt;Allowance&lt;/P&gt;&lt;P&gt;Fees&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the logic I am trying to implement goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Flag = 'x'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN Excess = Allowance&lt;/P&gt;&lt;P&gt;IF Flag = ''&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF Allowance &amp;gt; Fees THEN Allowance - Fees&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF Allowance &amp;lt; Fees THEN 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714872#M1070916</guid>
      <dc:creator />
      <dc:date>2014-08-20T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a nested if statement for a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714873#M1070917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;Excess = if(flag='X',Allowance,if(Allowance &amp;gt; Fees,Allowance-Fees,if(Allowance&amp;lt;Fees,0)))&lt;/P&gt;&lt;P&gt;-Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714873#M1070917</guid>
      <dc:creator />
      <dc:date>2014-08-20T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a nested if statement for a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714874#M1070918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Damn... you make it look so easy with so little code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-a-nested-if-statement-for-a-Dimension/m-p/714874#M1070918</guid>
      <dc:creator />
      <dc:date>2014-08-20T14:41:22Z</dc:date>
    </item>
  </channel>
</rss>

