<?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: Limit Dates shown in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031365#M939557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable (&lt;SPAN style="font-size: 13.3333px;"&gt;vPrevSevenMonths&lt;/SPAN&gt;) which will contain the 7 months back date and use it in set analysis.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vPrevSevenMonths&lt;/SPAN&gt;=MonthStart(AddMonths(max(Month),-7))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this.&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date ={"&amp;lt;=$(=vPrevSevenMonths)"}&amp;gt;} FieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 18:00:03 GMT</pubDate>
    <dc:creator>ajayrai</dc:creator>
    <dc:date>2016-02-02T18:00:03Z</dc:date>
    <item>
      <title>Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031362#M939554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on creating a trending report for COGS% in a pivot table.&amp;nbsp; The report has our customers listed down on the left side with the columns being the our fiscal months.&amp;nbsp; I have three years worth of data however and only want the pivot table to show the most recent 7 months at any given point in time.&amp;nbsp; I've been told I need to do a set analysis but am unsure of how to incorporate that in to my sum statement.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the current sum statement:&amp;nbsp; (Sum({&amp;lt;[Trending]={'Cost of Sales'}&amp;gt;} [Amount]) / sum({&amp;lt;[Trending]={'Revenue'}&amp;gt;} [Amount]))&lt;/P&gt;&lt;P&gt;My date field is named MonthYr and is in the format of mm-dd-yyyy.&amp;nbsp; Ideally, I want to set up a formula where if 1/31/2016 is the most recent date for MonthYr variable within the data set, that the columns shown in my pivot table are Jan-16, Dec-15, Nov-15, Oct-15, Sep-15, Aug-15, Jul-15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help provided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 14:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031362#M939554</guid>
      <dc:creator />
      <dc:date>2016-02-02T14:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031363#M939555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data please !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 17:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031363#M939555</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-02-02T17:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031364#M939556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;STRONG&gt;[MonthYr={"&amp;gt;=$(=MonthStart(Max(MonthYr),-6))&amp;lt;=$(=Date(Max(Date)))"}&lt;/STRONG&gt;, Trending]={'Cost of Sales'}&amp;gt;} [Amount]) / sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[MonthYr={"&amp;gt;=$(=MonthStart(Max(MonthYr),-6))&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;=$(=Date(Max(Date)))&lt;/STRONG&gt;"}, &lt;/STRONG&gt;&lt;/SPAN&gt;[Trending]={'Revenue'}&amp;gt;} [Amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 17:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031364#M939556</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-02T17:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031365#M939557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable (&lt;SPAN style="font-size: 13.3333px;"&gt;vPrevSevenMonths&lt;/SPAN&gt;) which will contain the 7 months back date and use it in set analysis.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vPrevSevenMonths&lt;/SPAN&gt;=MonthStart(AddMonths(max(Month),-7))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this.&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date ={"&amp;lt;=$(=vPrevSevenMonths)"}&amp;gt;} FieldName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 18:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031365#M939557</guid>
      <dc:creator>ajayrai</dc:creator>
      <dc:date>2016-02-02T18:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031366#M939558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried both the methods which have been mentioned above by Gysbert and Ajay to no avail.&amp;nbsp; As I was unsure if it was related to the various linkage between my main tables, I removed all tables from my query except for 1 which contains InvoiceDate, Amount, and Unit.&amp;nbsp; Applying the methods above to the field InvoiceDate (as opposed to the previously mentioned MonthYr field) still does not produce any results.&amp;nbsp; My InvoiceDate field is being loaded in the format of MM/DD/YYYY Hr:Mm:Ss AM; could it be this load format which is causing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 13:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031366#M939558</guid>
      <dc:creator />
      <dc:date>2016-02-04T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031367#M939559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be. Perhaps your MonthYr field contains text values. Try posting a small qlikview document that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031367#M939559</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-04T17:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Dates shown in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031368#M939560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date format should be same on both sides which you are comparing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Post a sample application or sample excel which contains your dummy data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limit-Dates-shown-in-pivot-table/m-p/1031368#M939560</guid>
      <dc:creator>ajayrai</dc:creator>
      <dc:date>2016-02-04T17:53:10Z</dc:date>
    </item>
  </channel>
</rss>

