<?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 previous year ytd calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178359#M45592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the scrip you should add a financial date dimmention. For example:&lt;/P&gt;&lt;P&gt;AddMonths(Date,-3) as Financial_Date&lt;/P&gt;&lt;P&gt;then add Financial_Year and Financial_Month fields based on Financial_Date.&lt;/P&gt;&lt;P&gt;The Set Analysis expression based on those fields should be:&lt;/P&gt;&lt;P&gt;{$&amp;lt;Financial_Year={'$(=(Financial_Year)-1)'},Financial_Month={"&amp;lt;=$(#=Num(Financial_Month))"} &amp;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>Tue, 08 Sep 2009 17:16:46 GMT</pubDate>
    <dc:creator>piotr_kierul</dc:creator>
    <dc:date>2009-09-08T17:16:46Z</dc:date>
    <item>
      <title>previous year ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178357#M45590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;i want to calculte previous YTD sale&lt;/P&gt;&lt;P&gt;this calculation will be financial year wise based.&lt;/P&gt;&lt;P&gt;my financial year is starts from october - september&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose i select fin_year 2008-2009 july then previous yeartytd should calculate sale upto july 2007-2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require this help urgently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 17:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178357#M45590</guid>
      <dc:creator>rajtechnocraft</dc:creator>
      <dc:date>2009-09-08T17:02:01Z</dc:date>
    </item>
    <item>
      <title>previous year ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178358#M45591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asuume your list box or rolling month looks someting like Sep-2009&lt;BR /&gt;When you are loading the script it looks like&lt;BR /&gt;Load&lt;BR /&gt;date(monthstart(Date),'MMM-YYYY') as RollingMonth,&lt;BR /&gt;etc&lt;BR /&gt;FROM table x;&lt;/P&gt;&lt;P&gt;You can then create two variables&lt;/P&gt;&lt;P&gt;vDate1=date(addmonths(RollingMonth,-11),'MMM-YYYY')&lt;BR /&gt;vDate2=RollingMonth&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Your list box or selection field is based on RollingMonth&lt;/P&gt;&lt;P&gt;Then you can use the following expression in the report/chart&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;RollingMonth={"&amp;gt;=$(#vDate1)&amp;lt;=$(#vDate2)"}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;So no matter what month-year you select the expression will alway total 12 months of data i.e. if you select Feb-2009 it will sum Mar-2008 to Feb-2009 etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2009 17:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178358#M45591</guid>
      <dc:creator />
      <dc:date>2009-09-08T17:12:04Z</dc:date>
    </item>
    <item>
      <title>previous year ytd calculation</title>
      <link>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178359#M45592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the scrip you should add a financial date dimmention. For example:&lt;/P&gt;&lt;P&gt;AddMonths(Date,-3) as Financial_Date&lt;/P&gt;&lt;P&gt;then add Financial_Year and Financial_Month fields based on Financial_Date.&lt;/P&gt;&lt;P&gt;The Set Analysis expression based on those fields should be:&lt;/P&gt;&lt;P&gt;{$&amp;lt;Financial_Year={'$(=(Financial_Year)-1)'},Financial_Month={"&amp;lt;=$(#=Num(Financial_Month))"} &amp;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>Tue, 08 Sep 2009 17:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-year-ytd-calculation/m-p/178359#M45592</guid>
      <dc:creator>piotr_kierul</dc:creator>
      <dc:date>2009-09-08T17:16:46Z</dc:date>
    </item>
  </channel>
</rss>

