<?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: Show values for the past months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281182#M624863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution would depend on your data, specially the date field. Try to share a sample qvw with sample data set so that we can provide you the solution accordingly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 05:41:21 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-11-21T05:41:21Z</dc:date>
    <item>
      <title>Show values for the past months</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281181#M624862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi there, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm stuck on something which seems to be quite simple... Appreciate your help with the requirements below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How to show values prior to the current month in bar chart? &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;If the current month is Oct, I only want to see values for the past nine month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;WY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 05:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281181#M624862</guid>
      <dc:creator />
      <dc:date>2016-11-21T05:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show values for the past months</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281182#M624863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution would depend on your data, specially the date field. Try to share a sample qvw with sample data set so that we can provide you the solution accordingly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 05:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281182#M624863</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-21T05:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show values for the past months</title>
      <link>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281183#M624864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you are looking for is what is called a 'Point in Time Comparison'. You Achieve this through Set Analysis. Follow the below thread for understanding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/109172" title="https://community.qlik.com/thread/109172"&gt;https://community.qlik.com/thread/109172&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you then have to do is create seven other statements in your set analysis for the pother months (as this comparison already has 2). As an example, it would be something like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;let v2MonthsAgo = '=month(addmonths(max(Date),-2))';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;let v3MonthsAgo = '=month(addmonths(max(Date),-3))';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;let v4MonthsAgo = '=month(addmonths(max(Date),-4))';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;let v5MonthsAgo = '=month(addmonths(max(Date),-5))';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;STRONG&gt;let v6MonthsAgo............etc.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;let v7MonthsAgo..............etc.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;let v8MonthsAgo...........etc.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;let v9MonthsAgo............etc.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You then substitute these variables into your 'Prior Month' expression for each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 09:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-values-for-the-past-months/m-p/1281183#M624864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-21T09:15:41Z</dc:date>
    </item>
  </channel>
</rss>

