<?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: Get previous month value with Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59216#M775075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have built a Master Calendar in my script to follow your advice. I have tried to set up my new chart using the fields created in the Master Calendar, but it still does not work. See attached what I have done.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am struggling with this for several hours now, without success. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;What I would like to see is the table below, it looks quite simple but I cannot get it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="442"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="114"&gt; &lt;/TD&gt;&lt;TD class="xl66" width="41"&gt;Cumulated YTD&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="41"&gt;Monthly&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;Month&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Mar&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Apr&lt;/TD&gt;&lt;TD class="xl78" style="border-top: none;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Mar&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Apr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17"&gt;Site&lt;/TD&gt;&lt;TD class="xl71"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl71" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_A&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_B&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_C&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_D&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_E&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_F&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_G&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_H&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none; border-left: none;"&gt;&lt;P&gt;-&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2018 09:44:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-07T09:44:18Z</dc:date>
    <item>
      <title>Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59211#M775065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;After spending hours on this I decided to seek your help as I cannot find a solution, and I am sure it is quite simple, but I am a beginner in QV. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;I have Excel source files where data is reported in YTD cumulated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;I would like to present it for each month in both cumulated and monthly figures, therefore I need to “de-cumulate” data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;The calculation is quite simple : &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Current month Monthly figure = Current month Cumulated YTD – Previous Month Cumulated YTD, except for January where Current Month Monthly figure = Current month Cumulated YTD&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;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;This is applicable only if there is a value in current month, otherwise it should return 0 for monthly figure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;I have searched in numerous forum posts, found various solution which I have tired, using variables, set analysis, Above() function…without success.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;In my data model, indicators names are entered as values under the INDICATOR_ID field, and I am using set analysis to present data in charts and graphs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;I am sure it is possible with the set analysis to get the previous period and then perform a difference between current month and previous month but I cannot find how for the given INDICATOR_ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Another option would be to use the load script to de-cumulate data and transform cumulated into monthly figures, but I would prefer to avoid this and use data which was found in the source file directly in QV.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;You will find attached the QV file, the XLS source file and the table I would like to get as a result. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;Your help will be greatly appreciated !&lt;/SPAN&gt;&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/Get-previous-month-value-with-Set-analysis/m-p/59211#M775065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59212#M775067</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;Please find attached the Qvw. that full fill your requirement through back end (scripting)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ftm.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201573_ftm.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;frankly speaking,i really don`t have idea how we can archive this in front end using set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if you found this helpful, please mark this as helpful or correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhasker Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 17:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59212#M775067</guid>
      <dc:creator>bhaskar_sm</dc:creator>
      <dc:date>2018-05-05T17:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59213#M775071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for you super quick answer. It seems to work, however I am not sure to fully understand how you did this in your script, could you explain your script in more detail ?&lt;/P&gt;&lt;P&gt;Also I would much prefer to do this using Set Analysis and not manipulate the data in the script, because then I lose the ability to use Indicator_ID field.&lt;/P&gt;&lt;P&gt;Anyone else has an idea on how to do this using Ste Analysis ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 19:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59213#M775071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-05T19:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59214#M775073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try creating a master calendar in your script: &lt;A href="https://community.qlik.com/thread/48693"&gt;Creating A Master Calendar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;(please use this as a base example, but dont use these fields: &lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;YeartoDate(TempDate)*-1 as CurYTDFlag,&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;YeartoDate(TempDate,-1)*-1 as LastYTDFlag,&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should however&amp;nbsp; contain all useful calendar fields, plus: &lt;STRONG&gt;add a sequential numeric value&lt;/STRONG&gt; (MonthSerial) to each of the sequential unique months (careful: year-month) in order to be able to create set analysis expressions like max(MonthSerial) to get the latest month; max(MonthSerial-1) to get the previous month, max(Monthserial - 12) to get last year same month,... &lt;/P&gt;&lt;P&gt;(*also accumulations become possible (&amp;gt;=max(MonthSerial-12)) to get latest 12 months, etc etc etc) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you're confident enough with Qlik Scripting take a look at @Rob Wunderlich's QV Components: &lt;A href="https://github.com/RobWunderlich/Qlikview-Components/blob/master/QVC_Source/Qvc_Calendar.qvs" title="https://github.com/RobWunderlich/Qlikview-Components/blob/master/QVC_Source/Qvc_Calendar.qvs"&gt;https://github.com/RobWunderlich/Qlikview-Components/blob/master/QVC_Source/Qvc_Calendar.qvs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it contains examples for these sequential fields: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoNumber(MonthStart(Date),'$(_f_MonthSerial)')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as $(_f_MonthSerial),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoNumber(QuarterStart(Date),'$(_f_QuarterSerial)')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as $(_f_QuarterSerial),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoNumber(weekyear(Date) &amp;amp;'|' &amp;amp; week(Date),'$(_f_WeekSerial)')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as $(_f_WeekSerial),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;good luck&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 May 2018 20:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59214#M775073</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-05T20:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59215#M775074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. I am not sure to see how creating a Master calendar can help but I will try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 06:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59215#M775074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T06:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59216#M775075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have built a Master Calendar in my script to follow your advice. I have tried to set up my new chart using the fields created in the Master Calendar, but it still does not work. See attached what I have done.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am struggling with this for several hours now, without success. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;What I would like to see is the table below, it looks quite simple but I cannot get it right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="442"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="114"&gt; &lt;/TD&gt;&lt;TD class="xl66" width="41"&gt;Cumulated YTD&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="41"&gt;Monthly&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-left: none;" width="41"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;Month&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Mar&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Apr&lt;/TD&gt;&lt;TD class="xl78" style="border-top: none;"&gt;Jan&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Feb&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Mar&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Apr&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17"&gt;Site&lt;/TD&gt;&lt;TD class="xl71"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl71" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_A&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_B&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_C&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_D&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_E&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_F&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl74" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_G&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl74" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top: none;"&gt;Site_H&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl76" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl77" style="border-top: none; border-left: none;"&gt;&lt;P&gt;-&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;Any help would be much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 09:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59216#M775075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59217#M775076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, didn't read the requirement correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as Bhasker noted, what you want to achieve is not possible (?) using straightforward set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you want to get monthly values from accumulated ones (IMHO, a nightmare), you need to script this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in attachment&amp;nbsp;&amp;nbsp; a similar approach as Bhasker: &lt;/P&gt;&lt;P&gt;1. load table with your data but not in its final form,&lt;/P&gt;&lt;P&gt;2. create a calendar from the 1st date to the last available in your data&lt;/P&gt;&lt;P&gt;3. create an entry for all possible combinations of Site, Indicator, YearMonth&lt;/P&gt;&lt;P&gt;4. Add Data field or 0&amp;nbsp; for all combinations where they exist&lt;/P&gt;&lt;P&gt;4bis: sort records for interrecord caluclations&lt;/P&gt;&lt;P&gt;5. perform the calculations (and replace with null() where necessary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 19:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59217#M775076</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-07T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59218#M775077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Knipsel.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201726_Knipsel.PNG" style="height: 166px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 19:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59218#M775077</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-07T19:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59219#M775078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and the app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 19:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59219#M775078</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-07T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59220#M775079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I thought that it was simple but apparently it is not simple !&lt;/P&gt;&lt;P&gt;However I cannot open your file, I am currently using Qlikview 9 and it seems that this is using a more recent version of QV ?&lt;/P&gt;&lt;P&gt;Can you share a file that I can open with QV9 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 03:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59220#M775079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-08T03:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59221#M775080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use qlik sense&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 14:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59221#M775080</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-08T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get previous month value with Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59222#M775081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really the coicie, QV is the tool used at my company, not Qlik Sense...&lt;/P&gt;&lt;P&gt;Thanks anyway for your help, I was able to solve my problem using your guidelines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 14:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-previous-month-value-with-Set-analysis/m-p/59222#M775081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-09T14:21:58Z</dc:date>
    </item>
  </channel>
</rss>

