<?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: Need to display data comparing two years sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522365#M195152</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;If you want to compare the value of current year till current month then used the following expression. &lt;/P&gt;&lt;P&gt;FISCAL_MONTHNum is Months in numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;YEAR = {"$(=Max(YEAR ))"}, FISCAL_MONTHNum={"&amp;lt;$(=num(Month(Today())))"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; [Sales Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;YEAR = {"$(=Max(YEAR )-1)"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; [Sales Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jun 2013 17:16:58 GMT</pubDate>
    <dc:creator>nirav_bhimani</dc:creator>
    <dc:date>2013-06-28T17:16:58Z</dc:date>
    <item>
      <title>Need to display data comparing two years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522362#M195149</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 data for two years Sales ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display them in a single graph(Line graph) to compare this year sales with last year sales..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current year has not ended, it has few more months left&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Set Analysis,the following expressions used as in User manual.it does not yield the desired output i expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Year={$(=Only(Year))}&amp;gt;} [Sales Amount]) - Sum({$&amp;lt;Year={$(=Only(Year)-1)}&amp;gt;} [Sales Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the graph which i get while using this expression &amp;amp; the desired output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43354" class="jive-image-thumbnail jive-image" onclick="" alt="Desired Output.jpg" src="/legacyfs/online/43354_Desired Output.jpg" width="450" /&gt;&lt;IMG __jive_id="43355" class="jive-image" alt="My output.jpg" src="/legacyfs/online/43355_My output.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated in resolving this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 15:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522362#M195149</guid>
      <dc:creator />
      <dc:date>2013-06-28T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display data comparing two years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522363#M195150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me. See attached example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read this document if you need more help: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290" style="font-size: 12px; color: #007fc0; font-family: Arial;"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 17:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522363#M195150</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-28T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display data comparing two years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522364#M195151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({$&amp;lt;year={"$(=only(year))"}&amp;gt;}sales) //current year&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year={"$(=only(year)-1)"}&amp;gt;}sales) //last year&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year={"$(=only(year))"}&amp;gt;}sales)-sum({$&amp;lt;year={"$(=only(year)-1)"}&amp;gt;}sales) //difference between the year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 17:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522364#M195151</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2013-06-28T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display data comparing two years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522365#M195152</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;If you want to compare the value of current year till current month then used the following expression. &lt;/P&gt;&lt;P&gt;FISCAL_MONTHNum is Months in numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;YEAR = {"$(=Max(YEAR ))"}, FISCAL_MONTHNum={"&amp;lt;$(=num(Month(Today())))"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; [Sales Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;YEAR = {"$(=Max(YEAR )-1)"}&amp;gt;}&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; [Sales Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2013 17:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522365#M195152</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-06-28T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display data comparing two years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522366#M195153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Tried out with the same it displays "No data to display"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated in this regard..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 09:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522366#M195153</guid>
      <dc:creator />
      <dc:date>2013-09-24T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need to display data comparing two years sales</title>
      <link>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522367#M195154</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;Why do you use Set analysis ?&lt;/P&gt;&lt;P&gt;You can use Year as dimension (or calculated dimension to display only last 2) and Month as dimension as well&lt;/P&gt;&lt;P&gt;Amount will be displayed along all the months from jan to dec &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 12:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-to-display-data-comparing-two-years-sales/m-p/522367#M195154</guid>
      <dc:creator />
      <dc:date>2013-09-24T12:59:58Z</dc:date>
    </item>
  </channel>
</rss>

