<?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 declaration of last year and current year? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407931#M796892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good, Is that value is the same for Current Year / Different? Remove Red part and try. Not sure, What your intend to write different for Curr and Prev. ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt;sold_year = {"$(curr_year)"}&amp;gt;}[inv value])/(Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt; sold_Year = {"$(&lt;STRONG style="color: #ff0000;"&gt;=$(&lt;/STRONG&gt;prev_year&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;)"}&amp;gt;} [inv value]/Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2017 06:07:59 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-12-15T06:07:59Z</dc:date>
    <item>
      <title>variable declaration of last year and current year?</title>
      <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407928#M796889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;i want to compare sales for current and previous year but i am getting same values for all. pease help&lt;/P&gt;&lt;P&gt;so for that i have declared &lt;/P&gt;&lt;P&gt;current year&lt;/P&gt;&lt;P&gt;curr_year = Max(sold_Year)&lt;/P&gt;&lt;P&gt;previous year&lt;/P&gt;&lt;P&gt;prev_year=max(sold_year)-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for&amp;nbsp; expression for current year &lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt;sold_year = {"$(curr_year)"}&amp;gt;}[inv value])/(Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;P&gt;for expression for previous_year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt; sold_Year = {"$(=$(prev_year))"}&amp;gt;}&lt;/P&gt;&lt;P&gt; [inv value]/Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for total growth &lt;/P&gt;&lt;P&gt;=num( &lt;/P&gt;&lt;P&gt;sum({&amp;lt;sold_year = {"$(curr_year)"}&amp;gt;}[inv value])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; sold_Year = {"$(=$(prev_year))"}&amp;gt;}&lt;/P&gt;&lt;P&gt; [inv value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; sold_Year = {"$(=$(prev_year))"}&amp;gt;}&lt;/P&gt;&lt;P&gt; [inv value]/Sales_INR_Unit),'#,##0%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407928#M796889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: variable declaration of last year and current year?</title>
      <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407929#M796890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you check this in Text box?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(Sum({&amp;lt; sold_Year = {'$(=Max(sold_year)-1)'}&amp;gt;} [inv value]/Sales_INR_Unit),'#,##0.0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 05:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407929#M796890</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-15T05:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: variable declaration of last year and current year?</title>
      <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407930#M796891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have taken in text box (circlen in black color) its giving the same value as in charts total&lt;IMG alt="kkkk.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/187070_kkkk.png" style="height: 189px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 06:02:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407930#M796891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-15T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: variable declaration of last year and current year?</title>
      <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407931#M796892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good, Is that value is the same for Current Year / Different? Remove Red part and try. Not sure, What your intend to write different for Curr and Prev. ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt;sold_year = {"$(curr_year)"}&amp;gt;}[inv value])/(Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt; sold_Year = {"$(&lt;STRONG style="color: #ff0000;"&gt;=$(&lt;/STRONG&gt;prev_year&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;)"}&amp;gt;} [inv value]/Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 06:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407931#M796892</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-15T06:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: variable declaration of last year and current year?</title>
      <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407932#M796893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What output you get in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;curr_year = Max(sold_Year)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;prev_year=max(sold_year)-1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Individually check expression on the text object did you get anything on this objects if not means your year field is string which not give correct result so please check this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 06:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407932#M796893</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-12-15T06:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: variable declaration of last year and current year?</title>
      <link>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407933#M796895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok then try this direct use the Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sold_Year&lt;/SPAN&gt;) on the set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num(sum({&amp;lt;sold_year = {'$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(sold_Year)&lt;/SPAN&gt;)'}&amp;gt;} [inv value])/(Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Previous Year&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=num(sum({&amp;lt; sold_Year = {"$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(sold_Year)-1&lt;/SPAN&gt;)"}&amp;gt;} [inv value]/Sales_INR_Unit),'#,##0.0')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 06:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-declaration-of-last-year-and-current-year/m-p/1407933#M796895</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-12-15T06:34:23Z</dc:date>
    </item>
  </channel>
</rss>

