<?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: Set Analysis: Rolling Months &amp; 2nd condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473293#M557813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for rolling 12 month try this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(=MonthStart(Max(Date), -11))&amp;lt;=$(=MonthEnd(Max(Date)))"},DATE=,Year=,Month=&amp;gt;}Points)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 11:40:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-14T11:40:49Z</dc:date>
    <item>
      <title>Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473290#M557810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running a test to create rolling 12 months using set analysis. I have attached an example. Pivot table 1 uses the following expression but does not work. I think it is something so obvious I am blind to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({=$(=Date(addmonths(Max(MonthYr), -12, 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(MonthYr), 0,&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Points)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to add a second set analysis condition into it, found in pivot table 3. Is this possible? I would be grateful for some help. Manny thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 10:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473290#M557810</guid>
      <dc:creator>simongoodman</dc:creator>
      <dc:date>2013-06-14T10:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473291#M557811</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;you don't close a bracket for addmonths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Sum({=$(=Date(addmonths(Max(MonthYr), -12&lt;STRONG&gt;)&lt;/STRONG&gt;, 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(MonthYr), 0&lt;STRONG&gt;)&lt;/STRONG&gt;,&amp;nbsp; 'MMM-YY'))"} &amp;gt;} Points)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473291#M557811</guid>
      <dc:creator>prodanov</dc:creator>
      <dc:date>2013-06-14T11:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473292#M557812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473292#M557812</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-06-14T11:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473293#M557813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for rolling 12 month try this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {"&amp;gt;=$(=MonthStart(Max(Date), -11))&amp;lt;=$(=MonthEnd(Max(Date)))"},DATE=,Year=,Month=&amp;gt;}Points)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 11:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473293#M557813</guid>
      <dc:creator />
      <dc:date>2013-06-14T11:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473294#M557814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I have just realised a further wrinkle. The actual data model will have actual data (e.g. last month May-13) and budget data (e.g. last month Sep-13). So this solution will always return months from Sep-12 to Sep-13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this? Such an amended expression and a list box where user selection determines the 12 months. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473294#M557814</guid>
      <dc:creator>simongoodman</dc:creator>
      <dc:date>2013-06-14T13:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473295#M557815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a work around I modified the dataset by creating a new date field called RollMthYr applying an IF statement that distingished between actual and budget data, putting a date for the former and '-' for the latter. Then applied the suggested above set analysis replacing RollMthYr for Date. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 15:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473295#M557815</guid>
      <dc:creator>simongoodman</dc:creator>
      <dc:date>2013-06-15T15:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473296#M557816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a great solution, my only issue is that my data set lacks consecutive months how would i add something that would add consecutive data sets that have a 0 value. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 20:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473296#M557816</guid>
      <dc:creator />
      <dc:date>2015-09-24T20:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473297#M557817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gr8 Demo Mohit!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 05:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473297#M557817</guid>
      <dc:creator>bharani8</dc:creator>
      <dc:date>2016-06-02T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Rolling Months &amp; 2nd condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473298#M557818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar problem. I need to roll up balances based on the select all dates upto current date and not only 12 months. How can I do this. I need to also incorporate a conditions to include where my balances &amp;lt;0 and rank = 1, hten select all the dates and sum my balances. can you please explain how to write the syntax. Below is what I wrote and I'm getting syntax error. Your help is really appreciated. can I write set analysis with IF condition? Sorry I'm new to Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;If balance =0 then do&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;If key_rank =1 then &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;Sum of all the balances for the min-max dates selected in the data.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;Then finally converting the balance in billions. That is why dividing by billion.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;BALANCE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)&amp;lt;0,&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;KEY_RANK&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; = 1,{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[DEFAULT_DT]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;"&amp;gt;=$(= Min(DEFAULT_DT)) &amp;lt; $(=Max([DEFAULT_DT]))"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;}&amp;gt;}) BALANCE,0)*(-1)/1000000000),'##,#.#0') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Rolling-Months-2nd-condition/m-p/473298#M557818</guid>
      <dc:creator />
      <dc:date>2017-07-11T15:33:26Z</dc:date>
    </item>
  </channel>
</rss>

