<?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 Combining If statements in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combining-If-statements-in-load-script/m-p/258473#M97585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`m trying to combine to If statements on a load script for calculation purposes.&lt;/P&gt;&lt;P&gt;Seperately they give good results,&lt;/P&gt;&lt;P&gt;But If I combine using or it generates results at the right values except the generated result is only 1 instead the actual amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Type]=2,IF( "Qty_ to Ship" &amp;gt; 0, "Line Amount")) as&amp;nbsp; RunningSalesLineAmount,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If([Type] =1,If([No_] like '8*',"Line Amount")) as RunningSalesLineAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2011 02:06:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-19T02:06:24Z</dc:date>
    <item>
      <title>Combining If statements in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-If-statements-in-load-script/m-p/258473#M97585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I`m trying to combine to If statements on a load script for calculation purposes.&lt;/P&gt;&lt;P&gt;Seperately they give good results,&lt;/P&gt;&lt;P&gt;But If I combine using or it generates results at the right values except the generated result is only 1 instead the actual amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Type]=2,IF( "Qty_ to Ship" &amp;gt; 0, "Line Amount")) as&amp;nbsp; RunningSalesLineAmount,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If([Type] =1,If([No_] like '8*',"Line Amount")) as RunningSalesLineAmount,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 02:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-If-statements-in-load-script/m-p/258473#M97585</guid>
      <dc:creator />
      <dc:date>2011-10-19T02:06:24Z</dc:date>
    </item>
    <item>
      <title>Combining If statements in load script</title>
      <link>https://community.qlik.com/t5/QlikView/Combining-If-statements-in-load-script/m-p/258474#M97586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution,&lt;/P&gt;&lt;P&gt;It was the if then else function used properly ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( "Qty_ to Ship" &amp;gt; 0,If([Type]=2, "Line Amount",If([Type] =1,If([No_] like '8*',"Line Amount")))) as RunningSalesLineAmount,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 02:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combining-If-statements-in-load-script/m-p/258474#M97586</guid>
      <dc:creator />
      <dc:date>2011-10-19T02:43:07Z</dc:date>
    </item>
  </channel>
</rss>

