<?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 Set Analysis last year calculation syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558130#M483275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following expression in my Qv Doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;FY = {$(=max(FY))}, Year=,Quarter=, YearMonth = {"&amp;lt;=$(=max(YearMonth))"},Month= &amp;gt;} Nettobelopp), '$#,##0;($#,##0)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to find the values&amp;nbsp; - 1 year to measure against.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my syntax however seems wrong, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;FY = {$(&lt;STRONG&gt;=max(FY)-1)&lt;/STRONG&gt;}, Year=,Quarter=, YearMonth = {"&amp;lt;=$(=max(YearMonth))"},Month= &amp;gt;} Nettobelopp), '$#,##0;($#,##0)')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 18:18:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-09T18:18:07Z</dc:date>
    <item>
      <title>Set Analysis last year calculation syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558130#M483275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following expression in my Qv Doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;FY = {$(=max(FY))}, Year=,Quarter=, YearMonth = {"&amp;lt;=$(=max(YearMonth))"},Month= &amp;gt;} Nettobelopp), '$#,##0;($#,##0)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to find the values&amp;nbsp; - 1 year to measure against.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my syntax however seems wrong, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({$&amp;lt;FY = {$(&lt;STRONG&gt;=max(FY)-1)&lt;/STRONG&gt;}, Year=,Quarter=, YearMonth = {"&amp;lt;=$(=max(YearMonth))"},Month= &amp;gt;} Nettobelopp), '$#,##0;($#,##0)')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 18:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558130#M483275</guid>
      <dc:creator />
      <dc:date>2013-07-09T18:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis last year calculation syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558131#M483276</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;The calculation for the FY is OK, the problem is that you are also calculating the YearMonth.&amp;nbsp; You will need to perform a calculcation that returns the correct YearMonth that you want for last year.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Stephen Redmond is author of &lt;/SPAN&gt;&lt;A href="http://www.packtpub.com/qlikview-developers-cookbook/book?utm_source=mention.com&amp;amp;utm_medium=QVCommunity&amp;amp;utm_campaign=book_mention"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;QlikView for Developer's Cookbook&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;He is CTO of &lt;A href="http://www.capventis.com/"&gt;CapricornVentis&lt;/A&gt; a &lt;/SPAN&gt;&lt;A href="http://www.qlik.com/us/explore/experience/free-download?id=/&amp;amp;sourcepartner=CapricornVentis"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;QlikView&lt;/SPAN&gt;&lt;/A&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Elite Partner. We are always looking for the right people to &lt;/SPAN&gt;&lt;A href="http://capventis.com/category/careers/"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;join our team&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;Follow me on Twitter: &lt;/SPAN&gt;&lt;A href="http://twitter.com/stephencredmond"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;@stephencredmond&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 19:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558131#M483276</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2013-07-09T19:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis last year calculation syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558132#M483277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Year:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Num(Sum({&amp;lt;FY = {"$(=Max(FY)-1)"}, Quarter=,Year=, Month= &amp;gt;} Nettobelopp) , '$#,##0;($#,##0)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Last Year Month i.e&amp;nbsp; July-2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Quarter&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;CalDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'&amp;gt;=$(=MonthStart(Max(CalDate), -12))&amp;lt;=$(=MonthEnd(Max(CalDate), -12))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Nettobelopp&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Nirav Bhimani&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 19:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558132#M483277</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-07-09T19:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis last year calculation syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558133#M483278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try this with the month number,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;({$&amp;lt;Year=, Year={$(=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;(Year)-1)},MonthNumber={$(=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;(MonthNumber))}&amp;gt;}&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12.222222328186035px; background-color: #ffffff;"&gt;Nettobelopp&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Times New Roman', serif; color: black;"&gt;Nirav Bhimani&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Times New Roman','serif'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 19:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-last-year-calculation-syntax/m-p/558133#M483278</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-07-09T19:46:21Z</dc:date>
    </item>
  </channel>
</rss>

