<?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: variable that is defined as a formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542793#M1146381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Only({&amp;lt;PERIODO = {$(=Max(PERIODO))}&amp;gt;}Aggr(Only($(vCalculo)),CodIndicador,PERIODO))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Nicolas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 15:10:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-28T15:10:54Z</dc:date>
    <item>
      <title>variable that is defined as a formula</title>
      <link>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542792#M1146380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems currently using a formula variable in set analysis. This is my first time using a variable that is defined as a formula -- there must be something I'm missing regarding correct syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my application I have defined:&lt;/P&gt;&lt;P&gt;Variable: vCalculo&lt;BR /&gt;Value: Formula&lt;BR /&gt;Formula contains something like this: (VBLE1-VBLE2)/VBLE3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try this:&lt;/P&gt;&lt;P&gt;1. =Only({&amp;lt;PERIODO = {$(=Max(PERIODO))}&amp;gt;}Aggr(Only(Formula),CodIndicador,PERIODO))&lt;/P&gt;&lt;P&gt;The result is = (VBLE1-VBLE2)/VBLE3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for this:&lt;/P&gt;&lt;P&gt;2. =Only({&amp;lt;PERIODO = {$(=Max(PERIODO))}&amp;gt;}Aggr(Only($(=vCalculo)),CodIndicador,PERIODO))&lt;/P&gt;&lt;P&gt;The result is = -&lt;/P&gt;&lt;P&gt;Second one only shows results when select an specific row on the simple table. I don´t know what else condition I need to include for the syntax in option 2 if the formula to evaluate (option 1) is recognized for each row.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="45976" alt="example.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/45976_example.JPG" style="width: 620px; height: 180px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 15:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542792#M1146380</guid>
      <dc:creator />
      <dc:date>2013-08-28T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: variable that is defined as a formula</title>
      <link>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542793#M1146381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Only({&amp;lt;PERIODO = {$(=Max(PERIODO))}&amp;gt;}Aggr(Only($(vCalculo)),CodIndicador,PERIODO))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Nicolas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 15:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542793#M1146381</guid>
      <dc:creator />
      <dc:date>2013-08-28T15:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: variable that is defined as a formula</title>
      <link>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542794#M1146382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, u&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;nfortunately&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;behavior is the same. When i have two rows can´t calculate the formula value; but if you select one specific row it works. A&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt; parameter&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;seems&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;missing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Olga&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 15:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-that-is-defined-as-a-formula/m-p/542794#M1146382</guid>
      <dc:creator />
      <dc:date>2013-08-28T15:45:28Z</dc:date>
    </item>
  </channel>
</rss>

