<?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: YTD analysis for previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636165#M1093872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this type of calculation I am getting previous total is wrong ... my straight table is comparing the current year and previous yar...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;teacher name&amp;nbsp;&amp;nbsp;&amp;nbsp; current yearsalary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previous year salary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this current year cumulative total salary is coming correct, but previous year total salary is wrong ie cumulative total salary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any clue.. I posted the information in my new thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/941380#941380"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; text-decoration: underline; font-family: Calibri;"&gt;https://community.qlik.com/message/941380#941380&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2015 10:17:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-30T10:17:01Z</dc:date>
    <item>
      <title>YTD analysis for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636161#M1093867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i am doing Year to Date comparison with current vs Previous year, I am writing below expressions-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For current YTD analysis-&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(=Max(Year)'},Date={'&amp;lt;=$(=Max(Date)'}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(=Max(Year)'}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the above expresssions gives same result to get values for the current year in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For previous YTD analysis-&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(=Max(Year)-1'},Date={'&amp;lt;=$(=addyears(Max(Date),-1))'}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;}Total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for the previous YTD analysis, both the above expressions doesnt give same result.&lt;/P&gt;&lt;P&gt;-I understand that because here the second expression gives result for the whole year.&lt;/P&gt;&lt;P&gt;Am i correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-While doing YTD analysis for previous year, which above expression should i need to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Also is it important to use Month=,Day=,MonthYear=, in the set analysis in YTD expreesion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636161#M1093867</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-05-16T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: YTD analysis for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636162#M1093868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right and I think you should use the first one &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;=SUM({&amp;lt;Year={'$(=Max(Year)-1'},Date={'&amp;lt;=$(=addyears(Max(Date),-1))'}&amp;gt;}Total)&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: 10pt; line-height: 1.5em;"&gt;as name says YTD, Year to Date for current year ideally should not be compared to complete previous year.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 14:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636162#M1093868</guid>
      <dc:creator />
      <dc:date>2014-05-16T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: YTD analysis for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636163#M1093870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you ask "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;-Also is it important to use Month=,Day=,MonthYear=, in the set analysis in YTD expreesion?"&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: 12.727272033691406px;"&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: 12.727272033691406px;"&gt;it depends: if you add list boxes for these 3 fields, selecting in these list box will modify the result of your expressions&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: 12.727272033691406px;"&gt;if you want to disregard selections in Month, add Month=&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: 12.727272033691406px;"&gt;same for other fields &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 20:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636163#M1093870</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-16T20:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: YTD analysis for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636164#M1093871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for the clear answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636164#M1093871</guid>
      <dc:creator>surajap123</dc:creator>
      <dc:date>2014-05-19T15:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: YTD analysis for previous year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636165#M1093872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this type of calculation I am getting previous total is wrong ... my straight table is comparing the current year and previous yar...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;teacher name&amp;nbsp;&amp;nbsp;&amp;nbsp; current yearsalary&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; previous year salary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this current year cumulative total salary is coming correct, but previous year total salary is wrong ie cumulative total salary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any clue.. I posted the information in my new thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/941380#941380"&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; text-decoration: underline; font-family: Calibri;"&gt;https://community.qlik.com/message/941380#941380&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 10:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-analysis-for-previous-year/m-p/636165#M1093872</guid>
      <dc:creator />
      <dc:date>2015-12-30T10:17:01Z</dc:date>
    </item>
  </channel>
</rss>

