<?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 Fetch previous 12 months data from current month selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236640#M855727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am having trouble in fetching the &lt;SPAN style="font-size: 13.3333px;"&gt;previous 12 months data&lt;/SPAN&gt; in the bar chart. I have written the following query: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=count({1}{&amp;lt;M_Month={"&amp;lt;=$(vCurrentSelectionMonth)"},[Action Category]={'Leavers'}&amp;gt;}[Number of Actions])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to fetch the &lt;STRONG&gt;previous 12 months data&lt;/STRONG&gt; as per my current month selection. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Suppose, I am selecting &lt;EM&gt;&lt;STRONG&gt;Oct 2016 &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;month&lt;/STRONG&gt;&lt;/EM&gt; &lt;/SPAN&gt; then it should show me data in the bar chart from &lt;EM&gt;&lt;STRONG&gt;Nov 2015 to Oct 2016&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;PFA images&lt;/STRONG&gt; for more details.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Fetch previous 12 months data from current month selection</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236640#M855727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi All&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am having trouble in fetching the &lt;SPAN style="font-size: 13.3333px;"&gt;previous 12 months data&lt;/SPAN&gt; in the bar chart. I have written the following query: &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=count({1}{&amp;lt;M_Month={"&amp;lt;=$(vCurrentSelectionMonth)"},[Action Category]={'Leavers'}&amp;gt;}[Number of Actions])&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to fetch the &lt;STRONG&gt;previous 12 months data&lt;/STRONG&gt; as per my current month selection. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Suppose, I am selecting &lt;EM&gt;&lt;STRONG&gt;Oct 2016 &lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;&lt;STRONG&gt;month&lt;/STRONG&gt;&lt;/EM&gt; &lt;/SPAN&gt; then it should show me data in the bar chart from &lt;EM&gt;&lt;STRONG&gt;Nov 2015 to Oct 2016&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;PFA images&lt;/STRONG&gt; for more details.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks in advance&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/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236640#M855727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch previous 12 months data from current month selection</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236641#M855728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your M_Month field format? Also, you have {1} at the incorrect location&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Count(&lt;SPAN style="text-decoration: line-through;"&gt;{1}&lt;/SPAN&gt;{1&amp;lt;M_Month = {"&amp;lt;=$(vCurrentSelectionMonth)"}, [Action Category] = {'Leavers'}&amp;gt;}[Number of Actions])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 16:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236641#M855728</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T16:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch previous 12 months data from current month selection</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236642#M855729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Format for M_Month is "MMM" ie. Jan, Feb, Mar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 05:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236642#M855729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T05:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch previous 12 months data from current month selection</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236643#M855730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and how is &lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vCurrentSelectionMonth&lt;/STRONG&gt; defined? I would suggest creating a numerical Month field in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(M_Month) as Num_M_Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use that in your expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 11:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-previous-12-months-data-from-current-month-selection/m-p/1236643#M855730</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-09T11:18:21Z</dc:date>
    </item>
  </channel>
</rss>

