<?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: Problem formul with 2 variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499814#M690912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using input box with these expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vC&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr ( Sum ({&amp;lt;Type={"Reception"}&amp;gt;} Quantity), MonthYear, Supplier)&lt;/P&gt;&lt;P&gt;vR =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr ( Sum ({$&amp;lt;Type={"Claim"}&amp;gt;} Quantity), MonthYear, Supplier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get 0.04 for&lt;/P&gt;&lt;P&gt;=$(vC) / $(vR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 20:46:27 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-02-18T20:46:27Z</dc:date>
    <item>
      <title>Problem formul with 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499810#M690908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Hello:&lt;/SPAN&gt;&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;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I have problem with the use of two variables in a formula:&lt;/SPAN&gt;&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;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;1) vReception= Aggr ( Sum ({&amp;lt;TYPE={&lt;SPAN style="font-style: inherit; font-family: inherit; color: #800000;"&gt;"Reception"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="font-style: inherit; font-family: inherit; color: #800000;"&gt; Quantity&lt;/SPAN&gt;) MonthYear, Supplier) . Per example: 25.000 kg&lt;/SPAN&gt;&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;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;2) vClaim= Aggr ( Sum ({&amp;lt;TYPE={&lt;SPAN style="font-style: inherit; font-family: inherit; color: #800000;"&gt;"Claim"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="font-style: inherit; font-family: inherit; color: #800000;"&gt; Quantity&lt;/SPAN&gt;) MonthYear, Supplier) . Per example: 1000 kg&lt;/SPAN&gt;&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;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;When I calcul in an expression:&lt;/SPAN&gt;&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;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;%=$(vClaim)/$(vReception) the result is only the first formul: 1000 kg instead of 1000/25000= 0,04&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;The result is like only use the first formul an forget to divide by the second.&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;The table is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="border: 1px solid black; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;MonthYear&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid black; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Supplier&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid black; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Type&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH class="header" style="border: 1px solid black; font-style: inherit; font-family: inherit; text-align: center; color: #ffffff; background-color: #6690bc; background-position: no-repeat no-repeat;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;01/2013&lt;/TD&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;Reception&lt;/TD&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;25000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;01/2013&lt;/TD&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;Claim&lt;/TD&gt;&lt;TD style="border: 1px solid black; font-style: inherit; font-family: inherit;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 20:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499810#M690908</guid>
      <dc:creator>inigoelv</dc:creator>
      <dc:date>2013-10-21T20:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formul with 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499811#M690909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a solution for this issue? I have the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499811#M690909</guid>
      <dc:creator />
      <dc:date>2014-02-18T10:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formul with 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499812#M690910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need this expression in the text object ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499812#M690910</guid>
      <dc:creator />
      <dc:date>2014-02-18T20:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formul with 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499813#M690911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Let vClaim and&lt;/P&gt;&lt;P&gt;Let vReception&lt;/P&gt;&lt;P&gt;to solve the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499813#M690911</guid>
      <dc:creator />
      <dc:date>2014-02-18T20:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formul with 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499814#M690912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using input box with these expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vC&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr ( Sum ({&amp;lt;Type={"Reception"}&amp;gt;} Quantity), MonthYear, Supplier)&lt;/P&gt;&lt;P&gt;vR =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggr ( Sum ({$&amp;lt;Type={"Claim"}&amp;gt;} Quantity), MonthYear, Supplier)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get 0.04 for&lt;/P&gt;&lt;P&gt;=$(vC) / $(vR)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499814#M690912</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-18T20:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem formul with 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499815#M690913</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;Use = symbol in variables .you can get that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at attached QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/53441_Example.jpg" style="width: 620px; height: 307px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 21:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-formul-with-2-variables/m-p/499815#M690913</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-02-18T21:00:14Z</dc:date>
    </item>
  </channel>
</rss>

