<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable/m-p/553481#M206805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your year is fiscal year i.e 2013-14, then&lt;/P&gt;&lt;P&gt;SUM( {$&amp;lt;YEAR = {'$(=Only(YEAR))'}&amp;gt;} [ENetProfit])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your year is normal year i.e 2014, then&lt;/P&gt;&lt;P&gt;SUM( {$&amp;lt;YEAR = {'$(=Max(YEAR))'}&amp;gt;} [ENetProfit])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jan 2014 04:50:42 GMT</pubDate>
    <dc:creator>brijesh1991</dc:creator>
    <dc:date>2014-01-06T04:50:42Z</dc:date>
    <item>
      <title>variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/553476#M206800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created the following expression using ENetProfit as a variable. But It is not working. Pls help me to trace where I have gone wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SUM( {$&amp;lt;YEAR = {"$(=Only([YEAR]))"}&amp;gt;} [ENetProfit])&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 15:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/553476#M206800</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-01-05T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/553477#M206801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share the expression within the Variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 15:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/553477#M206801</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-01-05T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/553478#M206802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(sum( {&amp;lt;NOTE = {'100'}&amp;gt;}[ACTUAL] )*-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my expression for variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 15:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/553478#M206802</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-01-05T15:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/553479#M206803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it wont work, why not create a variable for the whole thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EOnlyYearNetProfit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;sum( {&amp;lt;NOTE = {'100'},YEAR = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;{"$(=Only([YEAR]))"}&lt;/SPAN&gt; &amp;gt;}[ACTUAL] )*-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 15:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/553479#M206803</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-01-05T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/553480#M206804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should save only the set expression that is enclosed in the angle brackets "&amp;lt;&amp;gt;" into a variable.&amp;nbsp; So vNetProfit should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;vNetProfit =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTE = {'100'}&lt;/STRONG&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;&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;So your base equation would be &lt;STRONG&gt;eNetProfit = &lt;/STRONG&gt;&lt;STRONG&gt;SUM({$&amp;lt;$(vNetProfit)&amp;gt;}[ACTUAL]*-1).&lt;/STRONG&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;&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;When you expand upon it then it would look like this.&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;&lt;STRONG&gt;eNetProfittByYearOnly = SUM({$&amp;lt;$(vNetProfit),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YEAR = {"$(=Only([YEAR]))"}&lt;/SPAN&gt;&amp;gt;}[ACTUAL]*-1).&lt;/STRONG&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;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;&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;&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;&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 22:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/553480#M206804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-05T22:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.qlik.com/t5/QlikView/variable/m-p/553481#M206805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your year is fiscal year i.e 2013-14, then&lt;/P&gt;&lt;P&gt;SUM( {$&amp;lt;YEAR = {'$(=Only(YEAR))'}&amp;gt;} [ENetProfit])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your year is normal year i.e 2014, then&lt;/P&gt;&lt;P&gt;SUM( {$&amp;lt;YEAR = {'$(=Max(YEAR))'}&amp;gt;} [ENetProfit])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 04:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable/m-p/553481#M206805</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2014-01-06T04:50:42Z</dc:date>
    </item>
  </channel>
</rss>

