<?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: How to Get YTD values into Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081495#M360356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use set analysis to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sales)&lt;/P&gt;&lt;P&gt;Past Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;MyYear={$(=Max(MyYear)-1), MyMonth}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select 2016, the second expression calculate last year.&amp;nbsp; Take care with de Month selected, in this case I include the month in the set in order you have the full year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2016 12:43:27 GMT</pubDate>
    <dc:creator>jolivares</dc:creator>
    <dc:date>2016-02-09T12:43:27Z</dc:date>
    <item>
      <title>How to Get YTD values into Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081494#M360355</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've to create a variable which calculates YTD and Previous year YTD.&lt;/P&gt;&lt;P&gt;Here is my requirements.&lt;/P&gt;&lt;P&gt;For Prev YTD it has to calculate from Jan to Dec.ie Jan 2015 to Dec 2015. and&lt;/P&gt;&lt;P&gt; Current year YTD calculated from Jan to till current month ie from Jan 2016 to Feb 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Anyone help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 12:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081494#M360355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-09T12:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get YTD values into Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081495#M360356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use set analysis to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Sales)&lt;/P&gt;&lt;P&gt;Past Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;MyYear={$(=Max(MyYear)-1), MyMonth}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select 2016, the second expression calculate last year.&amp;nbsp; Take care with de Month selected, in this case I include the month in the set in order you have the full year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 12:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081495#M360356</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2016-02-09T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get YTD values into Variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081496#M360357</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;may be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;Current Year:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, DateField=, DateNum={"&amp;gt;=$(=Num(YearStart(Max(DateNum))))&amp;lt;=$(=Max(DateNum))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Previous Year:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, DateField=, DateNum={"&amp;gt;=$(=Num(YearStart(Max(DateNum))-1))&amp;lt;=$(=Max(DateNum))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;SPAN style="color: #000000;"&gt;Hirish&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 12:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Get-YTD-values-into-Variable/m-p/1081496#M360357</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-02-09T12:53:48Z</dc:date>
    </item>
  </channel>
</rss>

