<?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 Variable calcuations not working online in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-calcuations-not-working-online/m-p/237948#M88932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using variables to enable me to reuse complex calculations that include set analysis throughout a document. Everything works fine on the desktop application however when view the document through the web the calculations return a value of zero in some cases.&lt;/P&gt;&lt;P&gt;Here is an example of the variables and the equation behind it.&lt;/P&gt;&lt;P&gt;Equation returning zero result on web but not on desktop application: $(vPYGrossValueShipLocal)&lt;/P&gt;&lt;P&gt;Variable definition:&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt; GetSelectedCount([Ship Year]) &amp;gt; 0,&lt;BR /&gt; if(GetSelectedCount([Order Price Year]) &amp;gt; 0,&lt;BR /&gt; sum({$&amp;lt;[Ship Year] = {$(=max([Ship Year]) - 1)}, [Order Price Year] = {$(=max([Order Price Year]) - 1)}&amp;gt;}&lt;BR /&gt; [Gross Value Shipped Local]),&lt;BR /&gt; sum({$&amp;lt;[Ship Year] = {$(=max([Ship Year]) - 1)}&amp;gt;}&lt;BR /&gt; [Gross Value Shipped Local])&lt;BR /&gt; ),&lt;BR /&gt;&lt;BR /&gt; if(GetSelectedCount([Order Price Year]) &amp;gt; 0,&lt;BR /&gt; sum({$&amp;lt;[Order Price Year] = {$(=max([Order Price Year]) - 1)}&amp;gt;}&lt;BR /&gt; [Gross Value Shipped Local])))&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 17:31:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-29T17:31:05Z</dc:date>
    <item>
      <title>Variable calcuations not working online</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-calcuations-not-working-online/m-p/237948#M88932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using variables to enable me to reuse complex calculations that include set analysis throughout a document. Everything works fine on the desktop application however when view the document through the web the calculations return a value of zero in some cases.&lt;/P&gt;&lt;P&gt;Here is an example of the variables and the equation behind it.&lt;/P&gt;&lt;P&gt;Equation returning zero result on web but not on desktop application: $(vPYGrossValueShipLocal)&lt;/P&gt;&lt;P&gt;Variable definition:&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt; GetSelectedCount([Ship Year]) &amp;gt; 0,&lt;BR /&gt; if(GetSelectedCount([Order Price Year]) &amp;gt; 0,&lt;BR /&gt; sum({$&amp;lt;[Ship Year] = {$(=max([Ship Year]) - 1)}, [Order Price Year] = {$(=max([Order Price Year]) - 1)}&amp;gt;}&lt;BR /&gt; [Gross Value Shipped Local]),&lt;BR /&gt; sum({$&amp;lt;[Ship Year] = {$(=max([Ship Year]) - 1)}&amp;gt;}&lt;BR /&gt; [Gross Value Shipped Local])&lt;BR /&gt; ),&lt;BR /&gt;&lt;BR /&gt; if(GetSelectedCount([Order Price Year]) &amp;gt; 0,&lt;BR /&gt; sum({$&amp;lt;[Order Price Year] = {$(=max([Order Price Year]) - 1)}&amp;gt;}&lt;BR /&gt; [Gross Value Shipped Local])))&lt;/P&gt;&lt;P&gt;Thanks for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 17:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-calcuations-not-working-online/m-p/237948#M88932</guid>
      <dc:creator />
      <dc:date>2010-07-29T17:31:05Z</dc:date>
    </item>
  </channel>
</rss>

