<?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: Complex Nested IF syntax needed.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374212#M808951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Invoice_Date &amp;gt; 0 ,(SQ *USP * AR_Exchange_Rate + Freight_USD ),if (Invoice_Date &amp;lt; 0,( Order_Return_Quantity * Unit_Selling_Price*&amp;nbsp; Return_Exchange_RATE + Freight_USD),if(Invoice_Date &amp;lt;0 and Order_Return_Quantity=0, 0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 13:13:49 GMT</pubDate>
    <dc:creator>vinayakg</dc:creator>
    <dc:date>2017-10-16T13:13:49Z</dc:date>
    <item>
      <title>Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374205#M808944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to use this formula in QlikView script but it is throwing syntax error as it is a complex nested IF !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula:&lt;/P&gt;&lt;P&gt;if (Invoice_Date &amp;gt; 0 ) { (SQ *USP * AR_Exchange_Rate) + Freight_USD } &lt;/P&gt;&lt;P&gt; else { ( Order_Return_Quantity * Unit_Selling_Price*&amp;nbsp; Return_Exchange_RATE)&amp;nbsp; + Freight_USD &lt;/P&gt;&lt;P&gt; if (Nvl ( Order_Return_Quantity, 0 )==0) {0} }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374205#M808944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374206#M808945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain in plan language what this if statement is doing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374206#M808945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-16T12:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374207#M808946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF invoice date &amp;gt;0 &lt;SPAN style="font-size: 10pt;"&gt;THEN (SQ*USP*Rate + Frght USD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ELSEIF &lt;SPAN style="font-size: 13.3333px;"&gt;invoice date &amp;lt; 0&amp;nbsp; THEN&amp;nbsp; (&lt;/SPAN&gt;ORQ*USP*Rate + Frght USD) &lt;/P&gt;&lt;P&gt;ELSE (&lt;SPAN style="font-size: 13.3333px;"&gt;invoice date &amp;lt; 0 AND&lt;/SPAN&gt; ORQ=0) THEN 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374207#M808946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-16T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374208#M808947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;IF invoice date &amp;gt;0 &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;THEN (SQ*USP*Rate + Frght USD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ELSEIF &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;invoice date &amp;lt; 0&amp;nbsp; THEN&amp;nbsp; (&lt;/SPAN&gt;ORQ*USP*Rate + Frght USD)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ELSEIF (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;invoice date &amp;lt; 0 AND&lt;/SPAN&gt; ORQ=0) THEN 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;ELSE 0&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;**Corrected formula/explanation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374208#M808947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-16T12:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374209#M808948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([Invoice Date] &amp;gt; 0, (SQ*USP*Rate + Frght USD),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Invoice Date] &amp;lt; 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ORQ = 0, 0, (ORQ*USP*Rate + Frght USD))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I wonder how can date be less then 0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374209#M808948</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-16T13:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374210#M808949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Invoice_Date &amp;gt; 0, ((SQ*USP*AR_Exchange_Rate) + Freight_USD),&lt;/P&gt;&lt;P&gt; if (invoice date &amp;lt; 0, ((Order_Return_Quantity * Unit_Selling_Price*&amp;nbsp; Return_Exchange_RATE)&amp;nbsp; + Freight_USD),&lt;/P&gt;&lt;P&gt; if (invoice date &amp;lt; 0 AND ORQ=0,0,0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374210#M808949</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-16T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374211#M808950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anand this if statement will never go to the last part of the if statement because as soon as invoice date &amp;lt; 0, it will go into the second part....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374211#M808950</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-16T13:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374212#M808951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Invoice_Date &amp;gt; 0 ,(SQ *USP * AR_Exchange_Rate + Freight_USD ),if (Invoice_Date &amp;lt; 0,( Order_Return_Quantity * Unit_Selling_Price*&amp;nbsp; Return_Exchange_RATE + Freight_USD),if(Invoice_Date &amp;lt;0 and Order_Return_Quantity=0, 0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374212#M808951</guid>
      <dc:creator>vinayakg</dc:creator>
      <dc:date>2017-10-16T13:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374213#M808952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Less 0 means when the date column is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 03:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374213#M808952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T03:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374214#M808953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes right then may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Invoice_Date &amp;gt; 0, ((SQ*USP*AR_Exchange_Rate) + Freight_USD),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Invoice_Date &amp;lt; 0 AND ORQ = 0,0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Invoice_Date &amp;lt; 0,((Order_Return_Quantity * Unit_Selling_Price * Return_Exchange_RATE)&amp;nbsp; + Freight_USD),4)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 04:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374214#M808953</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-10-17T04:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Complex Nested IF syntax needed..</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374215#M808954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked!&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 12:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-Nested-IF-syntax-needed/m-p/1374215#M808954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-17T12:52:15Z</dc:date>
    </item>
  </channel>
</rss>

