<?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 Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814017#M1042616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can do it by using number of days,&lt;/P&gt;&lt;P&gt;as 1 year has total 365 days, than on particular date which day is there,&lt;/P&gt;&lt;P&gt;Like on 28th'Dec there are 362th day of year, we can take till&amp;nbsp; 362th day of last year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2014 05:19:19 GMT</pubDate>
    <dc:creator>tyagishaila</dc:creator>
    <dc:date>2014-12-12T05:19:19Z</dc:date>
    <item>
      <title>YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814013#M1042612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want year wise slots,&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;day and month must be Today's date but Year should not be&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;e.g.&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YTD(11-12)&amp;nbsp; is 1/1/2011 to 11/12/2012&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YTD(12-13) is &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333339691162px; font-family: inherit;"&gt;1/1/2012 to 11/12/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333339691162px; font-family: inherit;"&gt;YTD(13-14) is &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333339691162px; font-family: inherit;"&gt;1/1/2031 to 11/12/2014&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is for sale comparison, if I am comparing my sale today, than last year sale must be compare from start date to till date on last year&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;otherwise comparison will be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think You understand my requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814013#M1042612</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-11T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814014#M1042613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done YTDs like this in the past, I usually have 2 or 3 columns (one per Year for comparison).&amp;nbsp; The below does this year and last year, for any extra years replace -1 in the second statement with -2 etc for 2012 etc....&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;CY: sum({$&amp;lt;Year = {$(=max(Year))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 15px;"&gt;LY &lt;SPAN style="color: #000000; font-family: Arial; font-size: 15px;"&gt;=sum({$&amp;lt;Year = {$(=max(Year-1))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 10:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814014#M1042613</guid>
      <dc:creator />
      <dc:date>2014-12-11T10:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814015#M1042614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Salvatore,&lt;/P&gt;&lt;P&gt;Thanks for reply, these CY and LY expressions are also helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not full fill my requirement, There is no expression for today's date, like 12/12&lt;/P&gt;&lt;P&gt;its important, because we can compare sale of this year to sale of last year to particular date,&lt;/P&gt;&lt;P&gt;we don't have no data of this year after today's date, and we cant compare this year data till 12/12/14 to last year data till 31/12/13. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 05:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814015#M1042614</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T05:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814016#M1042615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.222222328186px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Hi Salvatore,&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Thanks for reply, these CY and LY expressions are also helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;But its not full fill my requirement, There is no expression for today's date, like 12/12&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;its important, because we can compare sale of this year to sale of last year to particular date,&lt;/P&gt;&lt;P style="font-size: 12.222222328186px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;we don't have no data of this year after today's date, and we cant compare this year data till 12/12/14 to last year data till 31/12/13.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 05:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814016#M1042615</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T05:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814017#M1042616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can do it by using number of days,&lt;/P&gt;&lt;P&gt;as 1 year has total 365 days, than on particular date which day is there,&lt;/P&gt;&lt;P&gt;Like on 28th'Dec there are 362th day of year, we can take till&amp;nbsp; 362th day of last year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 05:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814017#M1042616</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T05:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814018#M1042617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah okay, will look into that today for you and come back, cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 09:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814018#M1042617</guid>
      <dc:creator />
      <dc:date>2014-12-12T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814019#M1042618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ThankYou&amp;nbsp; so&amp;nbsp; much Salvatore,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814019#M1042618</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T10:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814020#M1042619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalia&lt;/P&gt;&lt;P&gt;I think this might give you want you seek (I hope) its basically at a day/date level instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YourDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(=Date(Today()))', '$(=Date(AddYears(Today(), -1)))'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814020#M1042619</guid>
      <dc:creator />
      <dc:date>2014-12-12T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814021#M1042620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really very very thanks to you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am not sure because I am not well aware to qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think,It takes today's date and same date of last year because of -1.&lt;/P&gt;&lt;P&gt;(Its perfect).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create same slots of 1 year back, i.e. -2,&lt;/P&gt;&lt;P&gt;I have to do,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Today()))' = Date(AddYears(Today(), -1)&lt;/P&gt;&lt;P&gt;and  '$(=Date(AddYears(Today(), -1) = $(=Date(AddYears(Today(), -2) and so&lt;/P&gt;&lt;P&gt;on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is am I right or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Dec 12, 2014 at 4:27 PM, Salvatore Zannino &amp;lt;qcwebmaster@qlikview.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814021#M1042620</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814022#M1042621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you are correct - you've got it!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814022#M1042621</guid>
      <dc:creator />
      <dc:date>2014-12-12T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814023#M1042622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThankYou &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Dec 12, 2014 at 4:42 PM, Salvatore Zannino &amp;lt;qcwebmaster@qlikview.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814023#M1042622</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T11:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814024#M1042623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; if it works please mark my answer as correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814024#M1042623</guid>
      <dc:creator />
      <dc:date>2014-12-12T11:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814025#M1042624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, Dec 12, 2014 at 4:45 PM, Salvatore Zannino &amp;lt;qcwebmaster@qlikview.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814025#M1042624</guid>
      <dc:creator>tyagishaila</dc:creator>
      <dc:date>2014-12-12T11:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: YTD Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814026#M1042625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shaila - have a nice day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 11:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Calculation/m-p/814026#M1042625</guid>
      <dc:creator />
      <dc:date>2014-12-12T11:29:59Z</dc:date>
    </item>
  </channel>
</rss>

