<?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: Nested If statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107031#M628746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you get a syntax errore for the second one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 14:42:44 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2016-08-29T14:42:44Z</dc:date>
    <item>
      <title>Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107028#M628743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering how Qlikview handles Nested If Statments. For example, is there a difference between the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( x &amp;gt; y, 'Yes',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( J = U, 'Missing',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(R &amp;lt; H, 'Hung Up', 'Successful'))) as [Call Outcome]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(x&amp;gt;y, 'Yes') as [Call Outcome]&lt;/P&gt;&lt;P&gt;if(J=U, 'Missing') as [Call Outcome]&lt;/P&gt;&lt;P&gt;if( R &amp;lt; H, 'Hung Up', 'Successful') as [Call Outcome]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107028#M628743</guid>
      <dc:creator />
      <dc:date>2016-08-29T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107029#M628744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your Example2 won't run&lt;/P&gt;&lt;P&gt;you can only define one fieldname&lt;/P&gt;&lt;P&gt;otherwise you get an error message&lt;/P&gt;&lt;P&gt;you Need to use a nested if like example 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107029#M628744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-29T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107030#M628745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think code from Example 2 would work in your load script as I would expect QV to return an error - something like "columns in your tables must have unique names" --&amp;gt; let's not forget that QV builds the association between the tables based on field name (and it is case sensitive), so it will not allow you to create 3 [Call Outcome] fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1 would work - of course considering that that's the logic you need in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps, good luck!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107030#M628745</guid>
      <dc:creator>kuczynska</dc:creator>
      <dc:date>2016-08-29T14:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107031#M628746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you get a syntax errore for the second one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 14:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107031#M628746</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-08-29T14:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107032#M628747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so example 2 won't work. Disregarding how qlikview would handle this, is the logic at least the same. In other words, in qlikview you must nest the if statements, but really all the logic is, is a bunch of if statements together with no difference in priority. Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107032#M628747</guid>
      <dc:creator />
      <dc:date>2016-08-29T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107033#M628748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No difference in priority? Do you mean you would like all if statements to produce a value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so you might want to take a look at the crosstable load, see help and/or&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3628"&gt;The Crosstable Load&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107033#M628748</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-08-29T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107034#M628749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A example for your situation would be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database:&lt;/P&gt;&lt;P&gt;Load ID,x,y,J,U,R,H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrossTable(Metric,Data,1) load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;if(x&amp;gt;y, 'Yes') as [Call Outcome],&lt;/P&gt;&lt;P&gt;if(J=U, 'Missing') as [Call Outcome],&lt;/P&gt;&lt;P&gt;if( R &amp;lt; H, 'Hung Up', 'Successful') as [Call Outcome]&lt;/P&gt;&lt;P&gt;resident Database;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107034#M628749</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-08-29T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statements</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107035#M628750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There won't be any difference in nested if else, you can use the same logic as you would do in any programming language. Your second one will give error for field names as the Qv works on field name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 15:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statements/m-p/1107035#M628750</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-08-29T15:39:58Z</dc:date>
    </item>
  </channel>
</rss>

