<?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: Sentence With Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634854#M232877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm missing something in this question. You have an expression to calculate a field, called Consumo12a, which gives you the right result. This expression has no if. It simply makes the sum of two fields. Why do want to achieve, in the calculation of Consumo12, with that IF. Excluding the positive sums gave you the wrong results. Maybe you don't need that if and use the same expression as that of Consumo12a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, tell me what I'm getting wrong from your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 16:32:33 GMT</pubDate>
    <dc:creator>eduardo_sommer</dc:creator>
    <dc:date>2014-06-02T16:32:33Z</dc:date>
    <item>
      <title>Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634841#M232864</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;I have this&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[conA1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] + [conB1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&amp;nbsp; as TotalSum&lt;/P&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;My Expression Sum(TotalSum) thrown 5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want to add an if sentence&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If([conA1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] + [conB1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ] &amp;gt;0,'0', [conA1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]+ [conB1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ])&lt;/TD&gt;&lt;TD&gt;as TotalSum,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;From Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Expression Sum(TotalSum) thrown 4900&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to appear 5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Could it be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 21:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634841#M232864</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-05-30T21:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634842#M232865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably inverted the then/else in the if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with:&lt;/P&gt;&lt;P&gt;if([conA1&amp;nbsp;&amp;nbsp; ] + [conB1&amp;nbsp;&amp;nbsp; ]&amp;gt;0,[conA1&amp;nbsp;&amp;nbsp; ]+[conB1&amp;nbsp;&amp;nbsp; ], 0) as TotalSum,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 21:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634842#M232865</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-05-30T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634843#M232866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still gives the same total 4900,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 22:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634843#M232866</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-05-30T22:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634844#M232867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can vou share your qvw or at least part of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 22:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634844#M232867</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-05-30T22:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634845#M232868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eduardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real result is -4714&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The wrong result is 4874&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 23:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634845#M232868</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-05-30T23:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634846#M232869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I tried to open the app, it asked for a userid and password. Please, disable Section Access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2014 01:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634846#M232869</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-05-31T01:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634847#M232870</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;Can you verify if, in the property of expression in you have checked &lt;SPAN style="background: yellow;"&gt;Expression Total &lt;/SPAN&gt;or &lt;SPAN style="background: yellow;"&gt;Sum of rows&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="expressionTotal.png" class="jive-image" height="140" src="https://community.qlik.com/legacyfs/online/59886_expressionTotal.png" width="275" /&gt;&lt;/P&gt;&lt;P&gt; This selection would affect the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2014 06:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634847#M232870</guid>
      <dc:creator>Joseph_Musekura</dc:creator>
      <dc:date>2014-05-31T06:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634848#M232871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not mention that this concerns "straight table". If you have a pivot table , no need to check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2014 07:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634848#M232871</guid>
      <dc:creator>Joseph_Musekura</dc:creator>
      <dc:date>2014-05-31T07:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634849#M232872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access was deleted,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634849#M232872</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-06-02T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634850#M232873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning , Pablo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you use Consumo12 in one object and Consumo12a in the other. The object with Consumo12a is giving you the result you expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, send me more details, since I don't have the data sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634850#M232873</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-02T14:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634851#M232874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real object is the if sentence, the other one (Consumo12a) is for check the real result. I don´t know why when I use If the final result change in the script. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634851#M232874</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-06-02T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634852#M232875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have some positive values in the inv-consumoso12 field, with zero in the corresponding inv-consumowo12. According to your if statement, when the sum of inv-consumoso12 plus inv_consumowo12 is positive, ignore them, changing the result to 0. This gives the difference in the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the product PV04IM-32-9928 that came selected in your app, inv-consumowo12 is 0 for all rows and inv-consumoso12 has some positive values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634852#M232875</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-02T14:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634853#M232876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that, so how could be the best if sentence and give 4714?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 15:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634853#M232876</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-06-02T15:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634854#M232877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm missing something in this question. You have an expression to calculate a field, called Consumo12a, which gives you the right result. This expression has no if. It simply makes the sum of two fields. Why do want to achieve, in the calculation of Consumo12, with that IF. Excluding the positive sums gave you the wrong results. Maybe you don't need that if and use the same expression as that of Consumo12a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, tell me what I'm getting wrong from your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634854#M232877</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-02T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sentence With Script</title>
      <link>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634855#M232878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did the follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Sum(Consumo12) &amp;lt; '0','0',Sum(Consumo12))+Sum(Despacho) Now Works for that expression.&lt;/P&gt;&lt;P&gt;I just I have to change all Consumo12 ,11 and 10 for that expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Eduardo. I marked your suggestion as better answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 17:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sentence-With-Script/m-p/634855#M232878</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2014-06-02T17:12:44Z</dc:date>
    </item>
  </channel>
</rss>

