<?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: Qliksense - Rolling 13 Months Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335013#M29237</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 your reply.&lt;/P&gt;&lt;P&gt;But its not working. May be my question is not clear.&lt;/P&gt;&lt;P&gt;What I want to achieve is in the Column level dimension(Month) to show only last 13 months from current month by default on opening the report or from the selected month in list box, rather than it showing all months in the data model for all years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for your reply again. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 12:20:28 GMT</pubDate>
    <dc:creator>praveenak</dc:creator>
    <dc:date>2017-05-12T12:20:28Z</dc:date>
    <item>
      <title>Qliksense - Rolling 13 Months Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335011#M29235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am working on a pivot table and stuck with below issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three row-level dimensions (let's say dim1, dim2, dim3), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one column level dimension (Month field) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one measure.&lt;/P&gt;&lt;P&gt;My Data in data model is of 2017, 2016, 2015, 2014.&lt;/P&gt;&lt;P&gt;My Measure expression(to show the percentage value of status='xxx') is like below,&lt;/P&gt;&lt;P&gt;count({&amp;lt;status={'xxx'},Tflag={'1'}&amp;gt;}status) &lt;STRONG&gt;/ &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;status=,Tflag={'1'}&amp;gt;}status).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But doing this way, my table will show data for all the years.&lt;/P&gt;&lt;P&gt;Now I'd like to show the data for rolling 13 months, like described in below two lines. &lt;/P&gt;&lt;P&gt;By default on opening the report I need to show data from current month to last 13 months. &lt;/P&gt;&lt;P&gt;And when a month is selected in list box - to show last 13 months from that month selected in filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, by default on opening the report to show data &lt;SPAN style="font-size: 13.3333px;"&gt;from May 2017 to April 2016. And If suppose a month(Jan 2017) is selected, pivot table should show data from Jan 2017 to Dec 2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 10:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335011#M29235</guid>
      <dc:creator>praveenak</dc:creator>
      <dc:date>2017-05-12T10:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense - Rolling 13 Months Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335012#M29236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have a MonthYear field created like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(Date), 'MMM-YYYY') as MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;status={'xxx'},Tflag={'1'}&lt;SPAN style="color: #ff0000;"&gt;, MonthYear = {"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(MonthYear), -13), 'MMM-YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(MonthYear), 'MMM-YYYY'))"}&lt;/SPAN&gt;&amp;gt;}status)/Count({&amp;lt;status=,Tflag={'1'}&amp;gt;}status)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify the expression based on the format of your MonthYear field or you can use Date field like this (assuming the format to be MM/DD/YYYY)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count({&amp;lt;status={'xxx'},Tflag={'1'}&lt;SPAN style="color: #ff0000;"&gt;, Date = {"$(='&amp;gt;=' &amp;amp; Date(MonthStart(Max(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Date &lt;/STRONG&gt;), -13), 'MM/DD/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(MonthEnd(Max(&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Date&lt;/STRONG&gt;)), '&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;MM/DD/YYYY&lt;/STRONG&gt;'))"}&lt;/SPAN&gt;&amp;gt;}status)/Count({&amp;lt;status=,Tflag={'1'}&amp;gt;}status)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, look here:&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 11:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335012#M29236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-12T11:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense - Rolling 13 Months Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335013#M29237</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 your reply.&lt;/P&gt;&lt;P&gt;But its not working. May be my question is not clear.&lt;/P&gt;&lt;P&gt;What I want to achieve is in the Column level dimension(Month) to show only last 13 months from current month by default on opening the report or from the selected month in list box, rather than it showing all months in the data model for all years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for your reply again. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 12:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335013#M29237</guid>
      <dc:creator>praveenak</dc:creator>
      <dc:date>2017-05-12T12:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense - Rolling 13 Months Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335014#M29238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might get easier if you can share a sample with the expected output to help you better &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 12:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Rolling-13-Months-Pivot-Table/m-p/1335014#M29238</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-12T12:48:44Z</dc:date>
    </item>
  </channel>
</rss>

