<?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/1352490#M415447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;SET vYear={'2015;2016'}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;sum({$&amp;lt;DESCRIPTION = {GROSS_PREMIUM},$(vYear)&amp;gt;}[ACTUAL])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 07:25:25 GMT</pubDate>
    <dc:creator>0li5a3a</dc:creator>
    <dc:date>2017-05-16T07:25:25Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352489#M415446</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;I have created the following variable in my QV doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vYear=YEAR={'2015','2016'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have written the below expression using the above variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;DESCRIPTION = {GROSS_PREMIUM},YEAR=$(vYear)&amp;gt;}[ACTUAL])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But result is blank. Pls help me to correct my above expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352489#M415446</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-05-16T07:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352490#M415447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;SET vYear={'2015;2016'}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;sum({$&amp;lt;DESCRIPTION = {GROSS_PREMIUM},$(vYear)&amp;gt;}[ACTUAL])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352490#M415447</guid>
      <dc:creator>0li5a3a</dc:creator>
      <dc:date>2017-05-16T07:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352491#M415448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Upali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is GROSS_PREMIUM a field or text? If it is a field, present like this this - [GROSS_PREMIUM]. If it is text, like this - 'GROSS_PREMIUM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;DESCRIPTION={'GROSS_PREMIUM'},YEAR={'=$(=$(vYear))'}&amp;gt;}[ACTUAL])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352491#M415448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T07:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352492#M415449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352492#M415449</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-05-16T07:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352493#M415450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried it does not work&lt;/P&gt;&lt;P&gt;In fact &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({$&amp;lt;DESCRIPTION={'GROSS_PREMIUM'}&amp;gt;}[ACTUAL])&amp;nbsp; works well Once I add vYear it does not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352493#M415450</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2017-05-16T07:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352494#M415451</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;SET vYear={'2015','2016'};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Year=$(vYear)&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163466_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352494#M415451</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-05-16T07:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352495#M415452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;DESCRIPTION={'GROSS_PREMIUM'},YEAR={$(vYear)}&amp;gt;}[ACTUAL])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352495#M415452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T07:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352496#M415453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this &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; font-size: 13px;"&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; font-size: 13px;"&gt;sum({$&amp;lt;DESCRIPTION = {GROSS_PREMIUM},YEAR={2014,2015}&amp;gt;}[ACTUAL])&lt;/SPAN&gt;&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;&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; font-size: 13px;"&gt;or&lt;/SPAN&gt;&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;&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; font-size: 13px;"&gt;vYear=max(year)-1&lt;/SPAN&gt;&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;vCurrentYear=max(Year)&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; font-size: 13px;"&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; font-size: 13px;"&gt;sum({&amp;lt;YEAR={$(vYear),$(vcurrentYear)}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352496#M415453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1352497#M415454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({$&amp;lt;DESCRIPTION = {GROSS_PREMIUM},YEAR="$(vYear)"&amp;gt;}[ACTUAL])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be possible that your variable is in string and you are passing the number in your set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 07:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1352497#M415454</guid>
      <dc:creator>sanjay006</dc:creator>
      <dc:date>2017-05-16T07:52:38Z</dc:date>
    </item>
  </channel>
</rss>

