<?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: how to avoid nested if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574256#M213912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That link says at the end that the speed compared to a nested if was not any different.&amp;nbsp; Is my assumption that nested ifs are big hits to performance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 16:15:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-26T16:15:22Z</dc:date>
    <item>
      <title>how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574253#M213909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that is essentially: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if exp1 is not null then&lt;/P&gt;&lt;P&gt;exp1&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;exp2;&lt;/P&gt;&lt;P&gt;if exp2 is not null then&lt;/P&gt;&lt;P&gt;exp2&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;exp3;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;if expn is not null then&lt;/P&gt;&lt;P&gt;expn&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;'Unknown';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't do this in the load statement because each of these expressions are based off of user input.&amp;nbsp; Essentially, I have a hierarchy classifications.&amp;nbsp; A record could have a value for several different sources of classifications and the user can change their hierarchy (preferred order of classifications) for all securities.&amp;nbsp; Some securities may only have classifications from a classification source that the user does not select, which is the reason for the 'Unknown' at the end of the nested if.&amp;nbsp; I'm hoping there is a better way to do this process in QV as it will be pervasive across many reports and I expect would hit performance.&amp;nbsp; Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574253#M213909</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574254#M213910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try it with the function alt().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574254#M213910</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-02-26T16:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574255#M213911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5841"&gt;http://community.qlik.com/docs/DOC-5841&lt;/A&gt; might help, hopefully.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574255#M213911</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-02-26T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574256#M213912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That link says at the end that the speed compared to a nested if was not any different.&amp;nbsp; Is my assumption that nested ifs are big hits to performance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574256#M213912</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574257#M213913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If-Statements are always slow. But you could try it with conditions on the expressions - this means you have no nested if then only the expression(s) with a valid condition will be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574257#M213913</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-02-26T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574258#M213914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alt(exp1,exp2,exp3,exp4,'Unknow')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574258#M213914</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574259#M213915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does alt only work on numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574259#M213915</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574260#M213916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574260#M213916</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T16:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574261#M213917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is alt significantly faster than a nested if?&amp;nbsp; I can probably convert the field i'm working with to duals, allowing alt to work on them but return the strings I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574261#M213917</guid>
      <dc:creator />
      <dc:date>2014-02-26T16:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid nested if</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574262#M213918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´ve never tested speed of both.&lt;/P&gt;&lt;P&gt;I generally use it because is much 'cleaner' to read and mantain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-avoid-nested-if/m-p/574262#M213918</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-02-26T16:45:37Z</dc:date>
    </item>
  </channel>
</rss>

