<?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 Rolling 3months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757727#M269687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to make a Bar chart For total amount in for last 3months.&lt;BR /&gt;For example if user selects Report_Month= 1214 then i should show 3bars for 1214,1114,1014.&lt;BR /&gt;I created 2 other fields like Prev_Report_Month1 &amp;amp; Prev_Report_Month2 in script - which calculates the Previous MonthYear values.&lt;/P&gt;&lt;P&gt;In chart i Used below expressions.&lt;BR /&gt;dimension : Report_Month (1214,1114,1014,0914 etc..)&lt;BR /&gt;Expression1:Sum(AMOUNT)&lt;BR /&gt;Expression2: sum({&amp;lt;Report_Month={"$(=num(Only(Prev_Report_Month1),'0'))"}&amp;gt;}AMOUNT)&lt;BR /&gt;Expression3: sum({&amp;lt;Report_Month={"$(=num(Only(Prev_Report_Month2),'0'))"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;But i am getting "0" for both Expression2 &amp;amp; 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2015 14:50:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-23T14:50:01Z</dc:date>
    <item>
      <title>Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757727#M269687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to make a Bar chart For total amount in for last 3months.&lt;BR /&gt;For example if user selects Report_Month= 1214 then i should show 3bars for 1214,1114,1014.&lt;BR /&gt;I created 2 other fields like Prev_Report_Month1 &amp;amp; Prev_Report_Month2 in script - which calculates the Previous MonthYear values.&lt;/P&gt;&lt;P&gt;In chart i Used below expressions.&lt;BR /&gt;dimension : Report_Month (1214,1114,1014,0914 etc..)&lt;BR /&gt;Expression1:Sum(AMOUNT)&lt;BR /&gt;Expression2: sum({&amp;lt;Report_Month={"$(=num(Only(Prev_Report_Month1),'0'))"}&amp;gt;}AMOUNT)&lt;BR /&gt;Expression3: sum({&amp;lt;Report_Month={"$(=num(Only(Prev_Report_Month2),'0'))"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;But i am getting "0" for both Expression2 &amp;amp; 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 14:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757727#M269687</guid>
      <dc:creator />
      <dc:date>2015-01-23T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757728#M269688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You won't need additional three columns or separate three expressions.&amp;nbsp; See attached example by simply adding a data field associated with each Report_Month value, which will be also useful in sorting unless you already have a calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Shelvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 15:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757728#M269688</guid>
      <dc:creator>shelvinpatel</dc:creator>
      <dc:date>2015-01-23T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757729#M269689</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;Check the below link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252"&gt;http://community.qlik.com/docs/DOC-4252&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 15:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757729#M269689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T15:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757730#M269690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create three expressions,&lt;/P&gt;&lt;P&gt;First one,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={“$(=Max(Month))”}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;Second one,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={“$(=Max(Month)-1)”}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;Third one,&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Month={“$(=Max(Month)-2)”}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 16:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757730#M269690</guid>
      <dc:creator />
      <dc:date>2015-01-23T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757731#M269691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have the Column Date(or Month Start etc..), I only relay on Report Month... If i am going to create a Date, then i should create from 1st to 31st.. but i only use Month Start in that, will this be good practise? Ofcourse it is because once in a year we will update the Calendar..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757731#M269691</guid>
      <dc:creator />
      <dc:date>2015-01-23T18:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757732#M269692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Report Month values are like 1014, 1114,1214,0115 etc.. So we cant just write Max(Month)-1&lt;/P&gt;&lt;P&gt;these give values 1013,1113,1213,0114 etc.. which are irrelavent..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757732#M269692</guid>
      <dc:creator />
      <dc:date>2015-01-23T18:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757733#M269693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This post is to calculate over all total amount in one bar for all 3months. but i need seperate bars.&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757733#M269693</guid>
      <dc:creator />
      <dc:date>2015-01-23T18:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757734#M269694</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;Try below 3 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="color: black; font-family: 'Courier New';"&gt;Sum({&amp;lt;Month={“$(=Max(Month(Date#(ReportMonth,'MM/YY'))))”}&amp;gt;}Value)&lt;BR /&gt; &lt;BR /&gt; Sum({&amp;lt;Month={“$(=Max(Month(Date#(ReportMonth,'MM/YY'))))-1)”}&amp;gt;}Value)&lt;BR /&gt; &lt;BR /&gt; Sum({&amp;lt;Month={“$(=Max(Month(Date#(ReportMonth,'MM/YY'))))-2&lt;STRONG&gt;)&lt;/STRONG&gt;”}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt; line-height: normal; ; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757734#M269694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T18:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757735#M269695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will recommend you to use&amp;nbsp; a variable which will have value of the max month of max year&amp;nbsp; by default.&lt;/P&gt;&lt;P&gt;Or if any month selected then the month selected one.&lt;/P&gt;&lt;P&gt;Now for other two rolling months you need to use set analysis in your expressions as month variable-1 and month variable -2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 18:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757735#M269695</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-01-23T18:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757736#M269696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can able to get the result bu using these expressions&lt;/P&gt;&lt;P&gt;dimension : Report_Month (1214,1114,1014,0914 etc..)&lt;BR /&gt;Expression1:Sum(AMOUNT)&lt;BR /&gt;Expression2: sum({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;Report_Month={"$(=num(Only(Prev_Report_Month1),'0'))"}&amp;gt;}AMOUNT)&lt;BR /&gt;Expression3: sum({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;Report_Month={"$(=num(Only(Prev_Report_Month2),'0'))"}&amp;gt;}AMOUNT)&lt;BR /&gt;I am trying to pull Report_Month which is apart from current selections. So We should use "1" in set analysis to avoid current selections.&lt;BR /&gt;Thank you for all your suggestions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 19:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757736#M269696</guid>
      <dc:creator />
      <dc:date>2015-01-23T19:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3months</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757737#M269697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Yes. This is one way of doing..&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 19:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3months/m-p/757737#M269697</guid>
      <dc:creator />
      <dc:date>2015-01-23T19:57:57Z</dc:date>
    </item>
  </channel>
</rss>

