<?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: Rolling Half Years Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354515#M826014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample file has the same field structure as is in my database. So HY_Period and HalfYear both are in my actual database files also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can you guide me accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 12:11:22 GMT</pubDate>
    <dc:creator>manpri7078</dc:creator>
    <dc:date>2017-07-10T12:11:22Z</dc:date>
    <item>
      <title>Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354507#M826003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am attaching both sample excel file and sample qlikview document.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to make a rolling bar chart for half yearly data. The last bar will represent last possible half year as per the data and previous bars will represent last n half years data depending upon the requirements of n.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My year start with April every year. So HY1 means Apr to Sep and HY2 means Oct to Mar..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please guide me in making the expression.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For Rolling Months data I am using following expression at present :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[Mon-Y]={"&amp;gt;$(=Num(Addmonths(Max([Mon-Y]),-5))) &amp;lt;=$(=Max([Mon-Y]))"} - for last 5 rolling Months&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;and dimension I am using is Date([Mon-Y],'MMM-YY').&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and for Rolling Quarters Data I am using following expression at present :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;QS={'&amp;gt;=$(=AddMonths(Max(QS),-(5*3-1)))&amp;lt;=$(=Max(QS))'} - for last 5 rolling quarters&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;and dimension I am using is Quarter.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now I want to make similar expression for rolling half years for dimension representing half year.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am attaching sample excel file and also sample QVW file for this query.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Manish Prasad&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/Rolling-Half-Years-Data/m-p/1354507#M826003</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354508#M826005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have Quarter Field then you can Quarter field rather the Date &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354508#M826005</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-10T08:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354509#M826007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to understand what you want to say. Can you please elaborate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354509#M826007</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-10T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354510#M826009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My intention is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Rolling 5 Months&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Month = {"&amp;gt;=$(=AddMonths(Max(Month),-5)) &amp;lt;=$(=Max(Month))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Rolling 5 Quarters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Quarter = {"&amp;gt;=$(=AddMonths(Max(&lt;STRONG style="font-size: 13.3333px;"&gt;Quarter&lt;/STRONG&gt;),-5)) &amp;lt;=$(=Max(&lt;STRONG style="font-size: 13.3333px;"&gt;Quarter&lt;/STRONG&gt;))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354510#M826009</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-10T08:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354511#M826010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please show me by way of bar chart how to make expressions for say last 2 half years. If May is selected and year 2018 is selected then only two months data is available in year 2018 so half year will mean Apr + May.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select 2 from the slider object, then the bar chart should show last two half years. It means last half year data will be related to Apr 17 and May 17 data combined. and the second last half year will mean data from Oct 16 to Mar 17 combined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly if 3 is selected from Slider object, then &lt;SPAN style="font-size: 13.3333px;"&gt;the bar chart should show last three half years. It means last half year data will be related to Apr 17 and May 17 data combined. the second last half year will mean data from Oct 16 to Mar 17 combined and the third last half year will mean &lt;SPAN style="font-size: 13.3333px;"&gt;data from Apr 16 to Sep 16 combined&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make dynamic bar chart in this way depending upon the number selected from the slider object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear in my query now. Can you please guide me now as how to make bar chart and what expression I have to use in accordance with the data as per attached sample excel file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rolling Quarters Data Bar chart is there in my QVW document. now I want same chart for rolling half year as my query above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354511#M826010</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-10T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354512#M826011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's think, If you have data set around 2015 to Till date like Jan-2015 , Feb - 2015 ..... June-2017 . Here if you select Feb - 2017 what would be the need from your expectation ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354512#M826011</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-07-10T08:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354513#M826012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am selecting Feb-2017 and if I select 4 from the slider object then my bar chart should show :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Bar -&amp;nbsp; Data pertaining to Oct 2016 to Feb 2017&lt;/P&gt;&lt;P&gt;Second Last Bar - Data pertaining to Apr 2016 to Sep 2016&lt;/P&gt;&lt;P&gt;Third last Bar - Data pertaining to Oct 2015 to Mar 2016&lt;/P&gt;&lt;P&gt;Fourth Last Bar - Data pertaining to Apr 2015 to Sep 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am clear in my query now. Since I am clicking on Feb 2017 the last bar will show data for 5 months only, but all three other bars will show data for corresponding 6 months data as described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354513#M826012</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-10T09:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354514#M826013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HY is a field in your database or is this just to show us a sample? I think it would be fairly simple if we have HY as a file with HYNum as another field which would look something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(Ceil(Month(TempDate)/6) &amp;amp; Year(TempDate), 'HalfYear') as HYNum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(Month(TempDate) &lt;STRONG style="font-size: 13.3333px;"&gt;&amp;amp; Year(TempDate), 'MonthYear')&lt;/STRONG&gt; as MonthNum&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then may be just this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;HYNum = {"$(='&amp;gt;=' &amp;amp; (Max(&lt;SPAN style="font-size: 13.3333px;"&gt;HYNum) - vInputRolling + 1) &amp;amp; '&amp;lt;=' &amp;amp; Max(HYNum)&lt;/SPAN&gt;)"}, MonthNum = {"$(='&amp;lt;=' &amp;amp; Max(&lt;SPAN style="font-size: 13.3333px;"&gt;MonthNum&lt;/SPAN&gt;))"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354514#M826013</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-10T12:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354515#M826014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample file has the same field structure as is in my database. So HY_Period and HalfYear both are in my actual database files also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can you guide me accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354515#M826014</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-10T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354516#M826015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the directions I gave above &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;... those are not working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354516#M826015</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-10T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354517#M826016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using any calendar script as of now for this QVW. So can you guide me through front end any solution.&lt;/P&gt;&lt;P&gt;I am not very familiar with Calendar script so I usually ignore it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 03:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354517#M826016</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-11T03:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354518#M826017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignoring something which will make your life easier is not a good thing... I would suggest you to add these two fields to your script (even if you don't have a master calendar field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoNumber(Ceil(Month(TempDate)/6) &amp;amp; Year(TempDate), 'HalfYear') as HYNum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoNumber(Month(TempDate) &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;amp; Year(TempDate), 'MonthYear')&lt;/STRONG&gt; as MonthNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;May be something like this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QuarterStart([Mon-Y]) as QS,'HY'&amp;amp;Ceil(Month([Mon-Y])/6) as HY,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(Ceil(Month([Mon-Y])/6) &amp;amp; Year([Mon-Y]), 'HalfYear') as HYNum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(Month([Mon-Y]) &amp;amp; Year([Mon-Y]), 'MonthYear') as MonthNum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Particulars, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item_Grouping, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expense_Type, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unit, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FY, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HY_Period, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HalfYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Mon-Y], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [P&amp;amp;B_Qty]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Data);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this&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;{&amp;lt;HYNum = {"$(='&amp;gt;=' &amp;amp; (Max(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;HYNum) - vInputRolling + 1) &amp;amp; '&amp;lt;=' &amp;amp; Max(HYNum)&lt;/SPAN&gt;)"}, MonthNum = {"$(='&amp;lt;=' &amp;amp; Max(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;MonthNum&lt;/SPAN&gt;))"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 08:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354518#M826017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-11T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354519#M826018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your guidance. There is only one small problem here. It is working perfectly except that If in my current selection's Half year only three months have gone so far, i.e. Apr, May and Jun then the bar chart is showing the following if I am selecting 3 as vInputRolling value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Bar -&amp;nbsp;&amp;nbsp; Three months data as only those are available so far. No problem here&lt;/P&gt;&lt;P&gt;Second Last Bar - Last Half year's data for Oct 16 to Mar 17. No Problem here also&lt;/P&gt;&lt;P&gt;Third Last Bar - 1st half data of previous year, i.e. Apr 16 to Sep 16. No Problem here also&lt;/P&gt;&lt;P&gt;Fourth Last Bar - Data pertaining to Jan 16 to Mar 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am selecting only 3 but four bars are showing since my last bar data is for three months only so 1st bar is showing for three more months which are before the second bar data. 4th Last Bar should not show as such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expectation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Bar - 1&lt;SPAN style="font-size: 13.3333px;"&gt;st half data of previous year, i.e. Apr 16 to Sep 16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2nd Bar - &lt;SPAN style="font-size: 13.3333px;"&gt;2nd half data of previous year, i.e.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Oct 16 to Mar 17&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Last Bar - Data from Apr 17 to Jun 17 (Here only three months data will accumulate to Half Year Data)&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;Hope I am clear in my query. Otherwise your solution is working perfectly with my actual database except this.&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;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Manish Prasad&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 10:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354519#M826018</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-11T10:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354520#M826019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share the newly updated application to check it out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 11:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354520#M826019</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-11T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354521#M826020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching sample qvw document modified as per your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can see that when I am selecting 2 then bottom bar chart is showing incorrectly. Top chart is for quarterly rolling period which is showing perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am selecting 2 then the bottom chart should show value for H2-17 and H1-18. It is also showing data for part of the half year H1-17 (From Jul-16 to Sep-16)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you now understands my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 11:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354521#M826020</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-11T11:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354522#M826021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slight change in how you need to define HYNum and MonthNum in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QuarterStart([Mon-Y]) as QS,'HY'&amp;amp;Ceil(Month([Mon-Y])/6) as HY,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;AutoNumber(HalfYear, 'HalfYear') as HYNum,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;AutoNumber([Mon-Y], 'MonthYear') as MonthNum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Particulars, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Item_Grouping, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expense_Type, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unit, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FY, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Period, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HY_Period, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HalfYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Days, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Mon-Y], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [P&amp;amp;B_Qty]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Sample Excel File.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Data)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Len(Trim(Particulars)) &amp;gt; 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354522#M826021</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-11T12:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354523#M826022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your guidance. It is now working perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manish Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354523#M826022</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2017-07-11T12:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Half Years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354524#M826023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &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, 11 Jul 2017 12:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-Half-Years-Data/m-p/1354524#M826023</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-11T12:17:54Z</dc:date>
    </item>
  </channel>
</rss>

