<?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: Pivot Grid - Variables - Expression Bad Result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933605#M322498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you show screenshots of the variable overview editor for each of the three variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or post a sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2015 22:04:46 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-12-01T22:04:46Z</dc:date>
    <item>
      <title>Pivot Grid - Variables - Expression Bad Result</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933604#M322497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! First of all, sorry for my english.&lt;/P&gt;&lt;P&gt;This is my app environment.&lt;/P&gt;&lt;P&gt;I'm using a Pivot Grid and the expression results came from Variables.&lt;/P&gt;&lt;P&gt;Variable 1: &lt;SPAN style="font-size: 13.3333px;"&gt;tBultosLiq&lt;/SPAN&gt;&amp;lt;- sum(if(EstadoLiq='Liquidado',(MANIBultos)))&lt;/P&gt;&lt;P&gt;Variable 2: tPrecioFOB&amp;lt;- sum(if(LCPRECIOTipoLiqId=vLiquidacionTipoId , PrecioBulto*MANIBultos,0))/$(tBultosLiq)&lt;/P&gt;&lt;P&gt;Variable 3: tMontoFInal -&amp;gt; $(tBultosLiq) * $(tPrecioFOB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached you an image with the Expressions Values (in red an example). &lt;/P&gt;&lt;P&gt;Expression 1: BtosLiq &amp;lt;- $(tBultosLiq) = 336 (this value is ok)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression 2: FOB MO &amp;lt;- $(&lt;SPAN style="font-size: 13.3333px;"&gt;tPrecioFOB&lt;/SPAN&gt;) = 11,46 (this value is ok)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Expression 3: Monto Final &amp;lt;- $(tMontoFinal) = 6058.11 (this value is wrong). It must be = $3849 (336 * 11.46)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What i'm doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933604#M322497</guid>
      <dc:creator />
      <dc:date>2015-12-01T21:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grid - Variables - Expression Bad Result</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933605#M322498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you show screenshots of the variable overview editor for each of the three variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or post a sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 22:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933605#M322498</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-01T22:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grid - Variables - Expression Bad Result</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933606#M322499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! I attach you an image per variable.&lt;/P&gt;&lt;P&gt;"tPrecioFOB" has a SUM of another Variables. I give you only an image of one of this variables because they are similar and the result of this is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i change the expression in the pivot grid it works, but i don't know why. &lt;/P&gt;&lt;P&gt;In Pivot Grid I change this: Monto Final = [FOB MO] * [BtosLiq] (instead of tMontoFinal). I'm using the other expressions instead of variable (but the formula is the same). I don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 13:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933606#M322499</guid>
      <dc:creator />
      <dc:date>2015-12-02T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grid - Variables - Expression Bad Result</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933607#M322500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't you enclose the complete sum of variables (tPrecioFOB) in brackets, so QV won't just multiply the first variable when expanding &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(tBultosLiq) * $(tPrecioFOB) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Variable 3: tMontoFInal -&amp;gt; $(tBultosLiq) * ( $(tPrecioFOB) )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 17:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933607#M322500</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-02T17:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Grid - Variables - Expression Bad Result</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933608#M322501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 19:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Grid-Variables-Expression-Bad-Result/m-p/933608#M322501</guid>
      <dc:creator />
      <dc:date>2015-12-02T19:17:28Z</dc:date>
    </item>
  </channel>
</rss>

