<?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 else in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284514#M1204749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;=if((stockm.back_order_qty + stockm.allocated_qty) &amp;gt;stockm.physical_qty,if(stockm.physical_qty &amp;lt;(stockm.back_order_qty + stockm.allocated_qty),(stockm.back_order_qty + stockm.allocated_qty))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Oct 2010 13:54:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-27T13:54:35Z</dc:date>
    <item>
      <title>nested if else</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284513#M1204748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New to Qlikview Using Sage, want to pull stock info where if the back order qty + allocated value &amp;gt; physical qty then return the physical qty or if the back order qty + allocated value&amp;lt; physical qty then return the back order qty + allocated&lt;/P&gt;&lt;P&gt;Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((stockm.back_order_qty + stockm.allocated_qty) &amp;gt;stockm.physical_qty,stockm.physical_qty,if(stockm.physical_qty &amp;lt;(stockm.back_order_qty + stockm.allocated_qty),(stockm.back_order_qty + stockm.allocated_qty))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 13:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284513#M1204748</guid>
      <dc:creator />
      <dc:date>2010-10-27T13:50:58Z</dc:date>
    </item>
    <item>
      <title>nested if else</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284514#M1204749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;=if((stockm.back_order_qty + stockm.allocated_qty) &amp;gt;stockm.physical_qty,if(stockm.physical_qty &amp;lt;(stockm.back_order_qty + stockm.allocated_qty),(stockm.back_order_qty + stockm.allocated_qty))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 13:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284514#M1204749</guid>
      <dc:creator />
      <dc:date>2010-10-27T13:54:35Z</dc:date>
    </item>
    <item>
      <title>nested if else</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284515#M1204750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel, Have added this to a calculated dimension in my chart but it still errors with 'Error in Calculation'. I did try the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((stockm.back_order_qty + stockm.allocated_qty) &amp;gt; stockm.physical_qty,stockm.physical_qty,(stockm.back_order_qty + stockm.allocated_qty))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but rather than returning the Physical and BO +Alloc it returned only the BO + Alloc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further suggestions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284515#M1204750</guid>
      <dc:creator />
      <dc:date>2010-10-27T14:07:45Z</dc:date>
    </item>
    <item>
      <title>nested if else</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284516#M1204751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is you can't use some kind of switch, so you have to do nested if else, and the problem is that is very easy to get wrong in any parameter and you'll turn crazy if you have some mistake.&lt;/P&gt;&lt;P&gt;What I usually do is to build my nested if else sentences in this web page that helps you to do that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://www.qlikblog.at/tools/Nested-If-Generator.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that it helps!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284516#M1204751</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-10-27T14:10:03Z</dc:date>
    </item>
    <item>
      <title>nested if else</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284517#M1204752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instaed of a calculated dimension use an ordinary expression,&lt;/P&gt;&lt;P&gt;for example something like this: (you need to ad some dimonsion also)&lt;/P&gt;&lt;P&gt;sum(if((stockm.back_order_qty + stockm.allocated_qty) &amp;gt;stockm.physical_qty,&lt;BR /&gt;if(stockm.physical_qty &amp;lt;(stockm.back_order_qty + stockm.allocated_qty),(stockm.back_order_qty + stockm.allocated_qty)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 14:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if-else/m-p/284517#M1204752</guid>
      <dc:creator />
      <dc:date>2010-10-27T14:13:28Z</dc:date>
    </item>
  </channel>
</rss>

