<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222265#M851967</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;"&gt;Hi Qlik Experts I have a problem.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm trying to optimize an IF statement that I have in a Load. This is my IF expression:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt; If(Adt&amp;gt;0 and Adt &amp;lt;200,'E',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=200 and Adt &amp;lt;500,'D',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=500 and Adt &amp;lt;1200,'C',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=1200 and Adt &amp;lt;2700,'B',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=2700 and Adt &amp;lt;100000,'A'))))) as Segment&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any suggestion?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; 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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222265#M851967</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;"&gt;Hi Qlik Experts I have a problem.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm trying to optimize an IF statement that I have in a Load. This is my IF expression:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt; If(Adt&amp;gt;0 and Adt &amp;lt;200,'E',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=200 and Adt &amp;lt;500,'D',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=500 and Adt &amp;lt;1200,'C',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=1200 and Adt &amp;lt;2700,'B',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Adt&amp;gt;=2700 and Adt &amp;lt;100000,'A'))))) as Segment&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Any suggestion?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; 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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222265#M851967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222266#M851968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think whether we have another way to do this. Here, You can do class function but the data values you need as variant. So, Could be the best way as you wrote. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 03:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222266#M851968</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-03T03:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222267#M851969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using mapping load like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;Map: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Low+IterNo()-1 as ABC,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SegmentMap&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&lt;STRONG style="color: #0000ff;"&gt;While IterNo()+Low&amp;lt;=High ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;load * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;Low, High, SegmentMap &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;0, 200, E&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;200, 500, D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;500, 1200, C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;1200, 2700, B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;2700, 100000, A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #0000ff;"&gt;ApplyMap&lt;/STRONG&gt;('Map', Adt,null()) as Segment,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as Adt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'courier new', courier;"&gt;AutoGenerate 100000;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 04:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222267#M851969</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-03-03T04:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222268#M851970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually there is nothing you can do about it. &lt;/P&gt;&lt;P&gt;So my main question is, why are you trying to optimize that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always use mapping but I don't know if that is going to increase your performance, or whatever you are looking for.&lt;/P&gt;&lt;P&gt;Could you please be more specific about what you are trying to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, pal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 16:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222268#M851970</guid>
      <dc:creator />
      <dc:date>2017-03-03T16:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222269#M851971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the inline table like already mentioned here like :&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;load * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;Low, High, SegmentMap&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;0, 200, E&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;200, 500, D&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;500, 1200, C&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;1200, 2700, B&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;2700, 100000, A&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier; color: #000000;"&gt;After that you have to use the INTERVALMATCH function. This function is there for situations like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 06:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222269#M851971</guid>
      <dc:creator>marioglasmv</dc:creator>
      <dc:date>2017-03-04T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222270#M851972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option, join&lt;/P&gt;&lt;P&gt;You got 4 different answers (if, applymap, interval match, join); if you can, try and let we know which is the one with the best performance in your case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;X:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Low, High, SegmentMap&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0, 200, E&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;200, 500, D&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;500, 1200, C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1200, 2700, B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2700, 100000, A&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Y:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Low+IterNo()-1 as Adt,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SegmentMap &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident X&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;While IterNo()+Low&amp;lt;=High ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table X;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Z:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load floor(rand()*100000) as Adt&amp;nbsp; AutoGenerate 100000;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join (Z)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Adt,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; SegmentMap&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Y;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Y;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 07:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222270#M851972</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-03-04T07:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222271#M851973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If(Adt&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Adt&amp;lt;&amp;nbsp;&amp;nbsp; 200,'E',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Adt&amp;lt;&amp;nbsp;&amp;nbsp; 500,'D',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Adt&amp;lt;&amp;nbsp; 1200,'C',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Adt&amp;lt;&amp;nbsp; 2700,'B',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If(Adt&amp;lt;100000,'A')))))) as Segment;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 19:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222271#M851973</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-03-04T19:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222272#M851974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yet another:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Adt&amp;gt;0,Pick(Match(-1,Adt&amp;lt;200,Adt&amp;lt;500,Adt&amp;lt;1200,Adt&amp;lt;2700,Adt&amp;lt;100000),'E','D','C','B','A')) as Segment&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_251976_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155245_QlikCommunity_Thread_251976_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14886652670238449 jive_text_macro" jivemacro_uid="_14886652670238449"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Adt&amp;gt;0,Pick(Match(-1,Adt&amp;lt;200,Adt&amp;lt;500,Adt&amp;lt;1200,Adt&amp;lt;2700,Adt&amp;lt;100000),'E','D','C','B','A')) as Segment;&lt;/P&gt;
&lt;P&gt;LOAD Ceil(pow(10,1+4.3*Rand()))&amp;nbsp; as Adt&lt;/P&gt;
&lt;P&gt;AutoGenerate 30;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 22:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222272#M851974</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-03-04T22:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222273#M851975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, an eye-opener, Marco ! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 18:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222273#M851975</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-03-05T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222274#M851976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Adt&amp;gt;0,Mid('EDCBA',Match(-1,Adt&amp;lt;200,Adt&amp;lt;500,Adt&amp;lt;1200,Adt&amp;lt;2700,Adt&amp;lt;100000),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222274#M851976</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-03-05T21:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222275#M851977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea whether this one perfoms better/is faster than the typical nested IF from the Original Post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222275#M851977</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-03-05T21:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222276#M851978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I didn't test the performance, so using a string operation it might even be slower ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 21:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222276#M851978</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-03-05T21:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222277#M851979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Marco!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried all the different options and this was the option with the best performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 23:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222277#M851979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-07T23:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222278#M851980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it helped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 23:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if/m-p/1222278#M851980</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-03-07T23:50:42Z</dc:date>
    </item>
  </channel>
</rss>

