<?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 Multiple nested if statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809225#M661048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me with the following load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Groupings2:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(0 &amp;lt;= seats_reamaining &amp;lt;= 10 , 'A', &lt;/P&gt;&lt;P&gt;If(10 &amp;lt; seats_reamaining &amp;lt;= 20 , 'B',&lt;/P&gt;&lt;P&gt;If(20 &amp;lt; seats_reamaining &amp;lt;= 30 , 'C', &lt;/P&gt;&lt;P&gt;If(30 &amp;lt; seats_reamaining &amp;lt;= 40 , 'D', &lt;/P&gt;&lt;P&gt;If(40 &amp;lt; seats_reamaining &amp;lt;= 50 , 'E',&lt;/P&gt;&lt;P&gt;If(50 &amp;lt; seats_reamaining &amp;lt;= 60 , 'F', &lt;/P&gt;&lt;P&gt;If(60 &amp;lt; seats_reamaining &amp;lt;= 70 , 'G', &lt;/P&gt;&lt;P&gt;If(70 &amp;lt; seats_reamaining &amp;lt;= 80 , 'H', &lt;/P&gt;&lt;P&gt;If(80 &amp;lt; seats_reamaining &amp;lt;= 90 , 'I', &lt;/P&gt;&lt;P&gt;If(90 &amp;lt; seats_reamaining &amp;lt;= 100 , 'J', &lt;/P&gt;&lt;P&gt;If(100 &amp;lt; seats_reamaining &amp;lt;= 110 , 'K', &lt;/P&gt;&lt;P&gt;If(110 &amp;lt; seats_reamaining &amp;lt;= 120 , 'L', &lt;/P&gt;&lt;P&gt;If(120 &amp;lt; seats_reamaining &amp;lt;= 130 , 'M', &lt;/P&gt;&lt;P&gt;If(130 &amp;lt; seats_reamaining &amp;lt;= 140 , 'N', &lt;/P&gt;&lt;P&gt;If(140 &amp;lt; seats_reamaining &amp;lt;= 150 , 'O',&lt;/P&gt;&lt;P&gt;If(150 &amp;lt; seats_reamaining &amp;lt;= 160 , 'P', &lt;/P&gt;&lt;P&gt;If(160 &amp;lt; seats_reamaining &amp;lt;= 170 , 'Q', &lt;/P&gt;&lt;P&gt;If(170 &amp;lt; seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate')))))))))))))))))) as Seat_Class&lt;/P&gt;&lt;P&gt;Resident Groupings1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the following error: &lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;')' expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand this as the correct number of parenthesis is included to close all the if statements. Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;ps I'm fairly new to QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Mar 2015 11:46:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-01T11:46:29Z</dc:date>
    <item>
      <title>Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809225#M661048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me with the following load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Groupings2:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(0 &amp;lt;= seats_reamaining &amp;lt;= 10 , 'A', &lt;/P&gt;&lt;P&gt;If(10 &amp;lt; seats_reamaining &amp;lt;= 20 , 'B',&lt;/P&gt;&lt;P&gt;If(20 &amp;lt; seats_reamaining &amp;lt;= 30 , 'C', &lt;/P&gt;&lt;P&gt;If(30 &amp;lt; seats_reamaining &amp;lt;= 40 , 'D', &lt;/P&gt;&lt;P&gt;If(40 &amp;lt; seats_reamaining &amp;lt;= 50 , 'E',&lt;/P&gt;&lt;P&gt;If(50 &amp;lt; seats_reamaining &amp;lt;= 60 , 'F', &lt;/P&gt;&lt;P&gt;If(60 &amp;lt; seats_reamaining &amp;lt;= 70 , 'G', &lt;/P&gt;&lt;P&gt;If(70 &amp;lt; seats_reamaining &amp;lt;= 80 , 'H', &lt;/P&gt;&lt;P&gt;If(80 &amp;lt; seats_reamaining &amp;lt;= 90 , 'I', &lt;/P&gt;&lt;P&gt;If(90 &amp;lt; seats_reamaining &amp;lt;= 100 , 'J', &lt;/P&gt;&lt;P&gt;If(100 &amp;lt; seats_reamaining &amp;lt;= 110 , 'K', &lt;/P&gt;&lt;P&gt;If(110 &amp;lt; seats_reamaining &amp;lt;= 120 , 'L', &lt;/P&gt;&lt;P&gt;If(120 &amp;lt; seats_reamaining &amp;lt;= 130 , 'M', &lt;/P&gt;&lt;P&gt;If(130 &amp;lt; seats_reamaining &amp;lt;= 140 , 'N', &lt;/P&gt;&lt;P&gt;If(140 &amp;lt; seats_reamaining &amp;lt;= 150 , 'O',&lt;/P&gt;&lt;P&gt;If(150 &amp;lt; seats_reamaining &amp;lt;= 160 , 'P', &lt;/P&gt;&lt;P&gt;If(160 &amp;lt; seats_reamaining &amp;lt;= 170 , 'Q', &lt;/P&gt;&lt;P&gt;If(170 &amp;lt; seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate')))))))))))))))))) as Seat_Class&lt;/P&gt;&lt;P&gt;Resident Groupings1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I keep getting the following error: &lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;')' expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand this as the correct number of parenthesis is included to close all the if statements. Any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;ps I'm fairly new to QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Mar 2015 11:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809225#M661048</guid>
      <dc:creator />
      <dc:date>2015-03-01T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809226#M661049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;if(seats_remaining&amp;gt;0 and seats_remaining &amp;lt;=10,'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(seats_remaining&amp;gt;10 and seats_remaining &amp;lt;=20,'B','Cannot Calculate')) as Seat_Class&lt;/P&gt;&lt;P&gt;resident Groups1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;samwisegamzee&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 05:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809226#M661049</guid>
      <dc:creator>mightyqlikers</dc:creator>
      <dc:date>2015-03-02T05:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809227#M661050</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;Use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Groupings2:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 10 , 'A',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 20 , 'B',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 30 , 'C',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 40 , 'D',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 50 , 'E',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 60 , 'F',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 70 , 'G',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 80 , 'H',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 90 , 'I',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 100 , 'J',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 110 , 'K',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 120 , 'L',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 130 , 'M',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 140 , 'N',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 150 , 'O',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 160 , 'P',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 170 , 'Q',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate')))))))))))))))))) as Seat_Class&lt;/P&gt;&lt;P&gt;Resident Groupings1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 06:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809227#M661050</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-02T06:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809228#M661051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Qlikview does not understand the comparison between values as described in above load statement provided by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make that logic understood by Qlikview,&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Just Paste this instead of provided by you :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Groupings2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(0 &amp;lt;= seats_reamaining and seats_reamaining &amp;lt;= 10 , 'A',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(10 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 20 , 'B',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(20 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 30 , 'C',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(30 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 40 , 'D',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(40 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 50 , 'E',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(50 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 60 , 'F',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(60 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 70 , 'G',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(70 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 80 , 'H',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(80 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 90 , 'I',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(90 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 100 , 'J',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(100 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 110 , 'K',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(110 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 120 , 'L',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(120 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 130 , 'M',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(130 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 140 , 'N',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(140 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 150 , 'O',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(150 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 160 , 'P',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(160 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 170 , 'Q',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(170 &amp;lt; seats_reamaining and seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate')))))))))))))))))) as Seat_Class&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Groupings1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 10:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809228#M661051</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-02T10:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809229#M661052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest to replace the nested if-loops completely through a mapping-approach. Either directly with a mapping-table or with a combined pick(match()) function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/354694#354694" title="http://community.qlik.com/message/354694#354694"&gt;http://community.qlik.com/message/354694#354694&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/593232#593232" title="http://community.qlik.com/message/593232#593232"&gt;http://community.qlik.com/message/593232#593232&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809229#M661052</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-02T11:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809230#M661053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timanshu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this, it worked perfectly. I come from a SAS background so this is how I have always understood dual constraints. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809230#M661053</guid>
      <dc:creator />
      <dc:date>2015-03-02T11:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809231#M661055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second Marcus' suggestion. Just to illustrate the idea: (only filled out through C, but you get the pattern).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;SPAN style="font-family: 'courier new', courier;"&gt;roupMap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MAPPING LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10, A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20, B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;30, C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ApplyMap('GroupMap', ceil(seats_remaining,10, 'Cannot Calculate') as Seat_Class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident Groupings1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your values really are like in the example (A,B,C.. and split by 10) then you could also just calculate the Group like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if(seats_remaining &amp;gt; 180, 'Cannot Calculate', chr(65+div(s&lt;SPAN style="font-size: 13.3333330154419px;"&gt;eats_remaining&lt;/SPAN&gt;,10)) as Seat_Class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 16:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809231#M661055</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-03-02T16:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809232#M661057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And if at any time in the future, you are facing irregular category specifications, use an external (xlsx) table and INTERVALMATCH LOAD to assign Seat_Classes without restrictions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 16:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809232#M661057</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-02T16:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809233#M661058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;A bit simpler:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;seats&lt;/SPAN&gt;/10 &amp;gt; 18,&lt;BR /&gt; 'Cannot Calculate',&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;seats&lt;/SPAN&gt;/10+65)&lt;BR /&gt; ) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Seat_Class &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 16:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809233#M661058</guid>
      <dc:creator>Roop</dc:creator>
      <dc:date>2015-03-02T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809234#M661060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809234#M661060</guid>
      <dc:creator>jonnathanr</dc:creator>
      <dc:date>2015-03-02T18:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809235#M661061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Welcome. You can mark the answer as correct if it solved your purpose. Not only this question,but for every question you put up. This will help other peoples to find the answers as if they can have the same query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 07:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809235#M661061</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-03T07:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809236#M661062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you tried this simple expression?&amp;nbsp; No need of AND and many conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Groupings2:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 10 , 'A',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 20 , 'B',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 30 , 'C',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 40 , 'D',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 50 , 'E',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 60 , 'F',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 70 , 'G',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 80 , 'H',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 90 , 'I',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 100 , 'J',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 110 , 'K',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 120 , 'L',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 130 , 'M',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 140 , 'N',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 150 , 'O',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 160 , 'P',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 170 , 'Q',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate')))))))))))))))))) as Seat_Class&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Groupings1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 07:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809236#M661062</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-03T07:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809237#M661063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, Yes this will too work if we have only positive values.&amp;nbsp; But if we have negative values then this expression will give 'A' but if we need to display cannot calculate then we have to use that lengthier code.&amp;nbsp; Choose depending on situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 07:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809237#M661063</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-03T07:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809238#M661064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case you could use fabs() which returned a positive value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 08:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809238#M661064</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-03T08:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809239#M661065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I always prefer the mapping appoach. To define my mappings I use an external table, like xls or txt. Simmple to maintain and add values, when needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 08:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809239#M661065</guid>
      <dc:creator>berndjaegle</dc:creator>
      <dc:date>2015-03-03T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809240#M661066</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;In that case use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Groupings2:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;gt;= 0,&lt;/P&gt;&lt;P&gt;If( seats_reamaining &amp;lt;= 10 , 'A',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 20 , 'B',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 30 , 'C',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 40 , 'D',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 50 , 'E',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 60 , 'F',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 70 , 'G',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 80 , 'H',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 90 , 'I',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 100 , 'J',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 110 , 'K',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 120 , 'L',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 130 , 'M',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 140 , 'N',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 150 , 'O',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 160 , 'P',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 170 , 'Q',&lt;/P&gt;&lt;P&gt;If(seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate'))))))))))))))))))) as Seat_Class&lt;/P&gt;&lt;P&gt;Resident Groupings1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 08:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809240#M661066</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-03-03T08:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809241#M661067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is good. But, For negative values, this will give null.&lt;/P&gt;&lt;P&gt;Just a small change to eradicate this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Groupings2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;gt;= 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If( seats_reamaining &amp;lt;= 10 , 'A',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 20 , 'B',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 30 , 'C',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 40 , 'D',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 50 , 'E',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 60 , 'F',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 70 , 'G',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 80 , 'H',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 90 , 'I',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 100 , 'J',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 110 , 'K',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 120 , 'L',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 130 , 'M',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 140 , 'N',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 150 , 'O',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 160 , 'P',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 170 , 'Q',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(seats_reamaining &amp;lt;= 180 , 'R', 'Cannot Calculate')))))))))))))))))),'Cannot Calculate') as Seat_Class&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Groupings1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809241#M661067</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-03T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809242#M661068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See above and use fabs().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809242#M661068</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-03T09:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809243#M661069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;fabs() will make the value positive and then it will come under any of groups 'A' to 'R' , which is not correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:29:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809243#M661069</guid>
      <dc:creator>timanshu</dc:creator>
      <dc:date>2015-03-03T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple nested if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809244#M661070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand your remark about negative values that they should be handled like positive values then otherwise all negatives will return "A". What should be the result from negative values NULL, 'Cannot Calculate' or ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 09:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-nested-if-statements/m-p/809244#M661070</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-03T09:44:29Z</dc:date>
    </item>
  </channel>
</rss>

