<?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: Multiple IF statement for the complex calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369343#M418706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never EVER start a topic twice again as it results in at least half the people wasting their time on a topic that is already being answered elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1247815"&gt;Dual if statement with multiple conditions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Topic locked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 08:21:27 GMT</pubDate>
    <dc:creator>oknotsen</dc:creator>
    <dc:date>2017-04-10T08:21:27Z</dc:date>
    <item>
      <title>Multiple IF statement for the complex calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369338#M418701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi I am trying to add multiple if conditions for the below task as hand:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if d&amp;lt;30&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;result=([90+(Rent-8000)]/1000)*3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;else if 30&amp;lt;d&amp;lt;60&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;result=([100+(Rent-8000)]/1000)*3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;else if 60&amp;lt;d&amp;lt;90&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;result=([110+(Rent-8000)]/1000)*3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;else&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;result=([150+(Rent-8000)]/1000)*3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;this using multiple if statement in the script editor LOAD&lt;/SPAN&gt;. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;However, I get error if I try to use multiple conditions under one if statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Could any one please help me to work on the right approach towards this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 06:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369338#M418701</guid>
      <dc:creator />
      <dc:date>2017-04-10T06:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statement for the complex calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369339#M418702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of "else if" you will have to nest your if-statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am also not sure if "30&amp;lt;d&amp;lt;60" would work to begin with.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For starters, if d is 30 or 60, it would get the highest result, which would be wrong.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Try something like this:&lt;/P&gt;&lt;P&gt;if(d&amp;lt;30, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;([90+(Rent-8000)]/1000)*3&lt;/SPAN&gt;, if(d&amp;lt;60, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;([100+(Rent-8000)]/1000)*3&lt;/SPAN&gt;, if(d&amp;lt;90, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;([110+(Rent-8000)]/1000)*3&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;([150+(Rent-8000)]/1000)*3&lt;/SPAN&gt;))) as result,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 07:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369339#M418702</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-04-10T07:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statement for the complex calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369340#M418703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this but it's giving the below error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Script Error:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Field not found - &amp;lt;90+(Rent-8000)&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Calculations:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; d,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(d&amp;lt;30, ([90+(Rent-8000)]/1000)*3, if(d&amp;lt;60, ([100+(Rent-8000)]/1000)*3, if(d&amp;lt;90, ([110+(Rent-8000)]/1000)*3, ([150+(Rent-8000)]/1000)*3))) as result&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Resident RentCal&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 07:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369340#M418703</guid>
      <dc:creator />
      <dc:date>2017-04-10T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statement for the complex calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369341#M418704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As i mention below thread, Assume that is not a field. use second condition that is the case. And [] - Indicates single field with in Qlik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1247815"&gt;Dual if statement with multiple conditions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 08:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369341#M418704</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-10T08:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statement for the complex calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369342#M418705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So apparently Rent is not a field in the table you are using this IF-statement on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 08:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369342#M418705</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-04-10T08:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF statement for the complex calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369343#M418706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never EVER start a topic twice again as it results in at least half the people wasting their time on a topic that is already being answered elsewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1247815"&gt;Dual if statement with multiple conditions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Topic locked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 08:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-IF-statement-for-the-complex-calculation/m-p/1369343#M418706</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-04-10T08:21:27Z</dc:date>
    </item>
  </channel>
</rss>

