<?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: Like For Like Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182656#M21924</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;1 month above&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;Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear, Month, Date, Year&amp;gt;}&lt;/SPAN&gt;Head_Flag)) * Avg(1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12 months above&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;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear, Month, Date, Year&amp;gt;}&lt;/SPAN&gt;Head_Flag), 12) * Avg(1)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;12 month rolling average&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;RangeAvg(Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear, Month, Date, Year&amp;gt;}&lt;/SPAN&gt;Head_Flag), 0, 12)) * Avg(1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2016 01:16:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-15T01:16:56Z</dc:date>
    <item>
      <title>Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182653#M21921</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;&lt;/P&gt;&lt;P&gt;I trying to do some like for like analysis looking at the previous month and last year and I'm stumped on the syntax.&amp;nbsp; The data looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 420px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;MonthYear&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;LastMonth&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;LastYear&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;sum(Head_Flag)&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Sep-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Aug-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Sep-2014&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2192&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Oct-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Sep-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Oct-2014&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2211&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Nov-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Oct-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Nov-2014&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2207&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Dec-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Nov-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Dec-2014&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2196&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jan-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Dec-2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jan-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2219&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Feb-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jan-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Feb-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2224&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Mar-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Feb-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Mar-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2185&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Apr-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Mar-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Apr-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2172&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;May-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Apr-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;May-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2173&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jun-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;May-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jun-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2146&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jul-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jun-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jul-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2129&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Aug-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Jul-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Aug-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2109&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Sep-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Aug-2016&lt;/TD&gt;&lt;TD align="right" class="xl63" style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Sep-2015&lt;/TD&gt;&lt;TD style="color: rgb(87, 87, 87); text-align: center; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2093&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add three additional columns, Headcount last month, Head count last year and Average headcount between last year and current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current month is provided as a selection criteria ultimately resulting in the straight table containing one row of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get last month and Last Years headcount this syntax seems to work as long as none of the dimensions in the straight table are dates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Month:Sum({&amp;lt;MonthYear = P(Previous_MonthYear)&amp;gt;}Head_Flag) &lt;/P&gt;&lt;P&gt;Last Year:Sum({&amp;lt;MonthYear = P(LastYear)&amp;gt;}Head_Flag) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to find the right syntax to do a between statement in the set analysis that refers to LastYear and MonthYear&amp;nbsp; for the final column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 11:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182653#M21921</guid>
      <dc:creator />
      <dc:date>2016-09-13T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182654#M21922</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;Last Month&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(Sum(Head_Flag))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Year&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above(Sum(Head_Flag), 12)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 16:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182654#M21922</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-13T16:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182655#M21923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, thanks for the response.&amp;nbsp; I've had a play with the above function and looked at the documentation.&amp;nbsp;&amp;nbsp; It certainly works until I make a selection criteria of a specific month at which point the function returns no results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Selection criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 526px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="75"&gt;MonthYear&lt;/TD&gt;&lt;TD width="109"&gt;Sum(Head_Flag)&lt;/TD&gt;&lt;TD width="159"&gt;above(Sum(Head_Flag))&lt;/TD&gt;&lt;TD width="183"&gt;Above(Sum(Head_Flag), 12)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Sep-2015&lt;/TD&gt;&lt;TD&gt;2192&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Oct-2015&lt;/TD&gt;&lt;TD&gt;2211&lt;/TD&gt;&lt;TD&gt;2192&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Nov-2015&lt;/TD&gt;&lt;TD&gt;2207&lt;/TD&gt;&lt;TD&gt;2211&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Dec-2015&lt;/TD&gt;&lt;TD&gt;2196&lt;/TD&gt;&lt;TD&gt;2207&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Jan-2016&lt;/TD&gt;&lt;TD&gt;2219&lt;/TD&gt;&lt;TD&gt;2196&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Feb-2016&lt;/TD&gt;&lt;TD&gt;2224&lt;/TD&gt;&lt;TD&gt;2219&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Mar-2016&lt;/TD&gt;&lt;TD&gt;2185&lt;/TD&gt;&lt;TD&gt;2224&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Apr-2016&lt;/TD&gt;&lt;TD&gt;2172&lt;/TD&gt;&lt;TD&gt;2185&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;May-2016&lt;/TD&gt;&lt;TD&gt;2173&lt;/TD&gt;&lt;TD&gt;2172&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Jun-2016&lt;/TD&gt;&lt;TD&gt;2146&lt;/TD&gt;&lt;TD&gt;2173&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Jul-2016&lt;/TD&gt;&lt;TD&gt;2129&lt;/TD&gt;&lt;TD&gt;2146&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Aug-2016&lt;/TD&gt;&lt;TD&gt;2109&lt;/TD&gt;&lt;TD&gt;2129&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Sep-2016&lt;/TD&gt;&lt;TD&gt;2093&lt;/TD&gt;&lt;TD&gt;2109&lt;/TD&gt;&lt;TD&gt;2192&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Oct-2016&lt;/TD&gt;&lt;TD&gt;2091&lt;/TD&gt;&lt;TD&gt;2093&lt;/TD&gt;&lt;TD&gt;2211&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once selection criteria is set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="420"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="105"&gt;MonthYear&lt;/TD&gt;&lt;TD width="105"&gt;Sum(Head_Flag)&lt;/TD&gt;&lt;TD width="105"&gt;above(Sum(Head_Flag))&lt;/TD&gt;&lt;TD width="105"&gt;Above(Sum(Head_Flag), 12)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;Sep-2016&lt;/TD&gt;&lt;TD&gt;2093&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get a cumulative total using RangeAvg(Above(Sum(Head_Flag),0,12)) but again this only works if no selection criteria are made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the assistance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 09:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182655#M21923</guid>
      <dc:creator />
      <dc:date>2016-09-14T09:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182656#M21924</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;1 month above&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;Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear, Month, Date, Year&amp;gt;}&lt;/SPAN&gt;Head_Flag)) * Avg(1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12 months above&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;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear, Month, Date, Year&amp;gt;}&lt;/SPAN&gt;Head_Flag), 12) * Avg(1)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;12 month rolling average&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;RangeAvg(Above(Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear, Month, Date, Year&amp;gt;}&lt;/SPAN&gt;Head_Flag), 0, 12)) * Avg(1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 01:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182656#M21924</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-15T01:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182657#M21925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching a sample for you to have a look at. I am only ignoring selection in MonthYear field because I don't have other date and time fields, but you need to ignore all date and time related fields where you can possibly make selections and you don't want them to impact the result of your calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137501_Capture.PNG" style="height: 93px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 01:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182657#M21925</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-15T01:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182658#M21926</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;&lt;/P&gt;&lt;P&gt;Thanks for all the assistance.&amp;nbsp; I continued reading up on the Above function after your last suggestion and ended up with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;MonthYear=&amp;gt;}Aggr(RangeAvg(Above(Sum({$&amp;lt;MonthYear=&amp;gt;}Head_Flag),0,12)), MonthYear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks pretty similar to your suggestion above.&amp;nbsp; Can I ask what is the *Avg(1) doing in your example above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also trying to limit the results to the current month (without the user specifying it via a selection criteria.&amp;nbsp; I've settled on this code, but it has some issues if the user does actually use a selection criteria you get all the months up to the maximum from the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;MonthYear={"&amp;gt;=$(=max(MonthYear))"}&amp;gt;}Aggr(RangeAvg(Above(Sum({$&amp;lt;MonthYear=&amp;gt;}Head_Flag),0,12)), MonthYear))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 10:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182658#M21926</guid>
      <dc:creator />
      <dc:date>2016-09-19T10:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Like For Like Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182659#M21927</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;Only(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear = {"&amp;gt;=$(=Min(MonthYear))&amp;lt;=$(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Max(MonthYear)&lt;/SPAN&gt;)"}&amp;gt;}&lt;/SPAN&gt; Aggr(RangeAvg(Above(Sum({$&amp;lt;MonthYear&amp;gt;} Head_Flag),0,12)), MonthYear))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Only(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;MonthYear = {"$(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Max(MonthYear)&lt;/SPAN&gt;)"}&amp;gt;}&lt;/SPAN&gt; Aggr(RangeAvg(Above(Sum({$&amp;lt;MonthYear&amp;gt;} Head_Flag),0,12)), MonthYear))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 00:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Like-For-Like-Set-Analysis/m-p/1182659#M21927</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-20T00:21:40Z</dc:date>
    </item>
  </channel>
</rss>

