<?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: LY YTD Acumulative in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396326#M491024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add something that I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm testing this one but the result is rare:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(#vPriorFiscalYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(=Only([Fiscal Year]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustProd_SaleAmtLocalCurr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Using this &lt;SPAN style="color: #800000;"&gt;[Fiscal Period]&lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;p&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Fiscal Year]&lt;/SPAN&gt;={&lt;SPAN style="color: #808080;"&gt;$(=Only([Fiscal Year]))&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Fiscal Period]&lt;/SPAN&gt;) I'm expecting to get only the valid fiscal period for 2012 (which are 1 to 10), but instead the sum is returning the same value as the complete fiscal year 2011. It seems the p is not working as I expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 00:54:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-10T00:54:32Z</dc:date>
    <item>
      <title>LY YTD Acumulative</title>
      <link>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396325#M491023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm strugglin with the LY YTD sales calculation. What I need is to get the Sum of sales for the acumulation of the last year until the same period that we are now. So for example. now we are in Fiscal Period 11 (Due to our Fiscal period started on December), what I need is the acumulative sales for FY 2011 which is from Dec 2010 to Oct 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I did is something like this:&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;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(#vPriorFiscalYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$("&amp;lt;="$(@FP_CURRENT))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustProd_SaleAmtLocalCurr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Of course the ${"&amp;lt;=" is not working as I expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any idea would be very apreciated!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 23:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396325#M491023</guid>
      <dc:creator />
      <dc:date>2012-10-09T23:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Acumulative</title>
      <link>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396326#M491024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add something that I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'm testing this one but the result is rare:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(#vPriorFiscalYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(=Only([Fiscal Year]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CustProd_SaleAmtLocalCurr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Using this &lt;SPAN style="color: #800000;"&gt;[Fiscal Period]&lt;/SPAN&gt;= &lt;SPAN style="color: #0000ff;"&gt;p&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Fiscal Year]&lt;/SPAN&gt;={&lt;SPAN style="color: #808080;"&gt;$(=Only([Fiscal Year]))&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Fiscal Period]&lt;/SPAN&gt;) I'm expecting to get only the valid fiscal period for 2012 (which are 1 to 10), but instead the sum is returning the same value as the complete fiscal year 2011. It seems the p is not working as I expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 00:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396326#M491024</guid>
      <dc:creator />
      <dc:date>2012-10-10T00:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Acumulative</title>
      <link>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396327#M491025</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;Do you have a sample data or qvw file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 03:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396327#M491025</guid>
      <dc:creator />
      <dc:date>2012-10-10T03:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: LY YTD Acumulative</title>
      <link>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396328#M491026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the solution was there all the time. The P is working perfect. I was the one that was not working so well!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was in the selection. I had selected fiscal period so that why I got the same value for both fiscal year. Anyway, I have add a little extra in the formula just to consider the closed fiscal period. So now the completed and working formula is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vPriorFiscalYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Fiscal Year]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(=Only([Fiscal Year]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Fiscal Period]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)-{&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(=max([Fiscal Period]))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CustProd_SaleAmtLocalCurr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 14:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LY-YTD-Acumulative/m-p/396328#M491026</guid>
      <dc:creator />
      <dc:date>2012-10-10T14:41:35Z</dc:date>
    </item>
  </channel>
</rss>

