<?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 statment not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555349#M689642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the exact expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Oct 2013 13:23:39 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2013-10-31T13:23:39Z</dc:date>
    <item>
      <title>Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555341#M689634</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;The below if statement is not working. I dont know why. It is only calculating values for the &amp;lt;4 part not the =4 or =5 part. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Intervall RD]&amp;lt;'4',[Rörlig Lön]*[Procent RD], &lt;/P&gt;&lt;P&gt;if([Intervall RD]='4',[Rörlig Lön]*%AvBudget,&lt;/P&gt;&lt;P&gt;if([Intervall RD]='5',[Rörlig Lön],0)))&lt;/P&gt;&lt;P&gt;as Utbetalt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy for any help to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555341#M689634</guid>
      <dc:creator />
      <dc:date>2013-10-31T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555342#M689635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Just remove the quotes:&lt;/P&gt;&lt;P&gt;if ([interval RD] &amp;lt; 4 ......)&lt;/P&gt;&lt;P&gt;2) check also the numbers of this Intervall RD field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 12:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555342#M689635</guid>
      <dc:creator />
      <dc:date>2013-10-31T12:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555343#M689636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend you trying each if separately...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field [Intervall RD] is numeric??? If it's numeric, so this&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;if([Intervall RD]&amp;lt;4,[Rörlig Lön]*[Procent RD],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]=4,[Rörlig Lön]*%AvBudget,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]=5,[Rörlig Lön],0)))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;as Utbetalt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555343#M689636</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555344#M689637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;might be its getting always &amp;lt; 4, so in that case it will not go to the else part...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make sure you have the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Intervall RD]=4 values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do a try to , &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;if([Intervall RD]&amp;lt;4,[Rörlig Lön]*[Procent RD],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]=4,[Rörlig Lön]*[%AvBudget],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]=5,[Rörlig Lön],0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555344#M689637</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-31T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555345#M689638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you´re using a table, add an expression with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Intervall RD]&lt;/SPAN&gt; and check the values this expression can assume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555345#M689638</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-31T13:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555346#M689639</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;Intervall RD is numeric and I have values for all [Intervall RD]. I have included a printscreen of the table here. Where it is visible that only calculations for the values [Intervall RD]&amp;lt;4 are being made and null values for [Intervall RD]=4 and [Intervall RD]=5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Skärmklipp.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48408_Skärmklipp.JPG.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555346#M689639</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555347#M689640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whats the expresion for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;%AvBudget&lt;/SPAN&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555347#M689640</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-31T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555348#M689641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a calulated value that I have imported from another table. It is a numerc value that I want to multiply with for the records where [Interval RD]=4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555348#M689641</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555349#M689642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the exact expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555349#M689642</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-31T13:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555350#M689643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;left join (UtbetBeräkningar)&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;if([Intervall RD]&amp;lt;4,[Rörlig Lön]*[Procent RD], &lt;/P&gt;&lt;P&gt;if([Intervall RD]=4,[Rörlig Lön]*%AvBudget,&lt;/P&gt;&lt;P&gt;if([Intervall RD]=5,[Rörlig Lön],0)))&lt;/P&gt;&lt;P&gt;as Utbetalt&lt;/P&gt;&lt;P&gt;resident UtbetBeräkningar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Written before in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (UtbetBeräkningar)&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;UtfallTot/SäljBudgetTot as %AvBudget&lt;/P&gt;&lt;P&gt;resident UtbetBeräkningar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(UtbetBeräkningar)&lt;/P&gt;&lt;P&gt;IntervalMatch(%AvBudget) load&amp;nbsp; [Start Intervall RD], [Slut Intervall RD] resident RDMapping;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 13:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555350#M689643</guid>
      <dc:creator />
      <dc:date>2013-10-31T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statment not working</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555351#M689644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just guessing, could you add [] around?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]&amp;lt;'4',[Rörlig Lön]*[Procent RD],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]='4',[Rörlig Lön]*[%AvBudget],&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if([Intervall RD]='5',[Rörlig Lön],0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 14:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statment-not-working/m-p/555351#M689644</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-10-31T14:06:55Z</dc:date>
    </item>
  </channel>
</rss>

