<?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: set issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937047#M323437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So yes, you can create a variable vPreviousYear = '&lt;STRONG&gt;=Max(FYear) - 1&lt;/STRONG&gt;' (Everything within the single quotes need to be in your variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;FYear = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;{'&lt;/SPAN&gt;$(vPreviousYear&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;-1&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)'}&amp;gt;}&lt;/SPAN&gt; Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 13:07:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-02T13:07:42Z</dc:date>
    <item>
      <title>set issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937042#M323432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have wrote the code of Previous Year in set it show previous year in set expression but data show of current year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what will be the issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FYear=$(=Max(FYear-1)Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 12:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-issue/m-p/937042#M323432</guid>
      <dc:creator>QlikAngel</dc:creator>
      <dc:date>2015-12-02T12:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: set issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937043#M323433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am amazed that it is showing you anything because syntax is not right. Try this:&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: 13px;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;FYear = &lt;SPAN style="color: #ff0000;"&gt;{'&lt;/SPAN&gt;$(=Max(FYear&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;-1&lt;SPAN style="color: #ff0000;"&gt;)'}&amp;gt;}&lt;/SPAN&gt; Amount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 12:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-issue/m-p/937043#M323433</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-02T12:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: set issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937044#M323434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nopes.. i have wrote so here got syntax mistake.. but i took in variable also it shows me previous year.. but data &amp;amp; total is coming of current year..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just let me know one thing.. is selected Year field will be in Variable field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in selection box i have field name called FYear&lt;/P&gt;&lt;P&gt;in Expression i am comparing with FYear = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{'&lt;/SPAN&gt;$(=Max(FYear&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;)&lt;/SPAN&gt;-1&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;)'}&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so is that correct.. in variable i m creating like Max(FYear)-1 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-issue/m-p/937044#M323434</guid>
      <dc:creator>QlikAngel</dc:creator>
      <dc:date>2015-12-02T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: set issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937045#M323435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your chart dimension? Is it FYear by any chance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 12:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-issue/m-p/937045#M323435</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-02T12:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: set issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937046#M323436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am selecting FYear on top .. my dimension is Customer Name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 12:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-issue/m-p/937046#M323436</guid>
      <dc:creator>QlikAngel</dc:creator>
      <dc:date>2015-12-02T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: set issue</title>
      <link>https://community.qlik.com/t5/QlikView/set-issue/m-p/937047#M323437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So yes, you can create a variable vPreviousYear = '&lt;STRONG&gt;=Max(FYear) - 1&lt;/STRONG&gt;' (Everything within the single quotes need to be in your variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #575757; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;FYear = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;{'&lt;/SPAN&gt;$(vPreviousYear&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;-1&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)'}&amp;gt;}&lt;/SPAN&gt; Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 13:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-issue/m-p/937047#M323437</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-02T13:07:42Z</dc:date>
    </item>
  </channel>
</rss>

