<?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: Previous Year in Set Analysis calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44379#M769153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Sum({&amp;lt;YearMonth = {"&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;$(=Date(MonthStart(Max(YearMonth), -1), 'YYYYMM'))&lt;/SPAN&gt;"}, KPI = {[Overheads]}&amp;gt;} Amount),'#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2018 14:19:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-06-01T14:19:36Z</dc:date>
    <item>
      <title>Previous Year in Set Analysis calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44376#M769150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I currently have an expression:&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt;YearMonth={"$(vMaxYearMonth)"},KPI = {[Overheads]}&amp;gt;} Amount),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where $(vMaxYearMonth is being used to limit the month to no greater than today:&lt;/P&gt;&lt;P&gt;=Date(addmonths(max({&amp;lt;[YearMonth]*={'&amp;lt;=$(=Date(today(), 'YYYYMM'))'}&amp;gt;}[YearMonth]),0), 'YYYYMM')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a similar expression to view the same month for the previous year. However, every attempt I have made has not worked. I believe I should be using AddMonths function but I cannot seem to get it to work within this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone clarify where I would put it in this expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44376#M769150</guid>
      <dc:creator>ngulliver</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Set Analysis calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44377#M769151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Num(Sum({&amp;lt;YearMonth = {"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(=Date(MonthStart(Today(), -1), 'YYYYMM'))&lt;/SPAN&gt;"}, KPI = {[Overheads]}&amp;gt;} Amount),'#,##0')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 13:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44377#M769151</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-01T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Set Analysis calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44378#M769152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sunny.&lt;/P&gt;&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt; I can see how that would work but I am trying to make the calculation react according to dates selected (hence the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxYearMonth). So if February 2018 is selected, it will show February 2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44378#M769152</guid>
      <dc:creator>ngulliver</dc:creator>
      <dc:date>2018-06-01T14:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Set Analysis calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44379#M769153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Sum({&amp;lt;YearMonth = {"&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;$(=Date(MonthStart(Max(YearMonth), -1), 'YYYYMM'))&lt;/SPAN&gt;"}, KPI = {[Overheads]}&amp;gt;} Amount),'#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44379#M769153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-01T14:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Set Analysis calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44380#M769154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use =Date(AddYears(today(),-1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44380#M769154</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2018-06-01T14:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Year in Set Analysis calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44381#M769155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi probably this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Num(Sum({&amp;lt;YearMonth = {"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;$(=date(AddYears(Date#(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YearMonth &lt;/STRONG&gt;,'YYYYMMM'),-1),'YYYYMMM'))&lt;/SPAN&gt;"}, KPI = {[Overheads]}&amp;gt;} Amount),'#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 14:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Year-in-Set-Analysis-calculation/m-p/44381#M769155</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2018-06-01T14:33:32Z</dc:date>
    </item>
  </channel>
</rss>

