<?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 YoY Chart Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YoY-Chart-Expressions/m-p/1517061#M750091</link>
    <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need some help here. I am trying to do a YoY Chart.&amp;nbsp; My objective is to get Amount USD for the current year and the previous year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my expressions for Previous Year and Current Year.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previous Year:&amp;nbsp;=rangemax(Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear-1)} &amp;gt;}{&amp;lt;Description={'TD'}&amp;gt;}[Amount USD]))&lt;/P&gt;&lt;P&gt;Current Year:&amp;nbsp;=rangemax(Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear)} &amp;gt;}{&amp;lt;Description={'TD'}&amp;gt;}[Amount USD]))&lt;/P&gt;&lt;P&gt;My Variables:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Definitions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;vCurrentYear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=max([FiscalYear]) &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;vPreviousYear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=$(vCurrentYear) - 1&lt;/P&gt;&lt;P&gt;My issue is that both expression are populating the same data.&amp;nbsp; For example, if year 2019 is populated, I get two chart lines with data for 2019 and do not get any data for 2018.&lt;/P&gt;&lt;P&gt;Please see attachment for a picture of what the chart looks like with these expressions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate everybody's help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>MattReinders</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>YoY Chart Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/YoY-Chart-Expressions/m-p/1517061#M750091</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need some help here. I am trying to do a YoY Chart.&amp;nbsp; My objective is to get Amount USD for the current year and the previous year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my expressions for Previous Year and Current Year.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previous Year:&amp;nbsp;=rangemax(Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear-1)} &amp;gt;}{&amp;lt;Description={'TD'}&amp;gt;}[Amount USD]))&lt;/P&gt;&lt;P&gt;Current Year:&amp;nbsp;=rangemax(Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear)} &amp;gt;}{&amp;lt;Description={'TD'}&amp;gt;}[Amount USD]))&lt;/P&gt;&lt;P&gt;My Variables:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Definitions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;vCurrentYear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=max([FiscalYear]) &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;vPreviousYear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=$(vCurrentYear) - 1&lt;/P&gt;&lt;P&gt;My issue is that both expression are populating the same data.&amp;nbsp; For example, if year 2019 is populated, I get two chart lines with data for 2019 and do not get any data for 2018.&lt;/P&gt;&lt;P&gt;Please see attachment for a picture of what the chart looks like with these expressions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate everybody's help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YoY-Chart-Expressions/m-p/1517061#M750091</guid>
      <dc:creator>MattReinders</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YoY Chart Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/YoY-Chart-Expressions/m-p/1517067#M750092</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Previous Year&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear-1)}, Description = {'TD'}&amp;gt;}[Amount USD])&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;Above(Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear-1)}, Description = {'TD'}&amp;gt;} [Amount USD]))&lt;/PRE&gt;&lt;P&gt;Current Year&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;[FiscalYear] = {$(=vCurrentYear)}, Description = {'TD'}&amp;gt;} [Amount USD])&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Dec 2018 02:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YoY-Chart-Expressions/m-p/1517067#M750092</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-06T02:03:27Z</dc:date>
    </item>
  </channel>
</rss>

