<?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: Calculate Previous Month Value based on Filter Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549994#M457051</link>
    <description>OK thanks for the reply let me try it and get back to you on the same</description>
    <pubDate>Wed, 27 Feb 2019 16:12:32 GMT</pubDate>
    <dc:creator>RohanPR</dc:creator>
    <dc:date>2019-02-27T16:12:32Z</dc:date>
    <item>
      <title>Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549181#M457047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know this topic has been discussed many time and I have gone through each and every post. However, I am unable to get previous month value (count of account number) for the current year in my data set. The sample of my data set is given below&lt;/P&gt;&lt;P&gt;Month_Production , Acc_No,&amp;nbsp; Category&lt;/P&gt;&lt;P&gt;Jan -18 , 123456,E&lt;/P&gt;&lt;P&gt;Jan-18, 234567,E&lt;/P&gt;&lt;P&gt;Jan-18, 123567,E&lt;/P&gt;&lt;P&gt;Feb-18, 246801, E&lt;/P&gt;&lt;P&gt;Feb-18, 357680,E&lt;/P&gt;&lt;P&gt;Mar-18,786502,E&lt;/P&gt;&lt;P&gt;Jan-18, 234590, P&lt;/P&gt;&lt;P&gt;Jan-18, 349086,P&lt;/P&gt;&lt;P&gt;Jan-18, 124509,P&lt;/P&gt;&lt;P&gt;Feb-18, 567890,P&lt;/P&gt;&lt;P&gt;Feb-18, 788090,P&lt;/P&gt;&lt;P&gt;Feb-18, 890877,P&lt;/P&gt;&lt;P&gt;E.g. 1&amp;nbsp; If I select category E and Month_Prod as Feb-18 from the multi drop down filter&amp;nbsp; then the Prev month count for account number should display 3&lt;/P&gt;&lt;P&gt;E.g. 2 If I select category E and Month_Prod as Mar-18 from the multi drop down filter then the Prev month count for account number should display 2.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I wan to display the number in the text box in front end. I used set analysis but didn't end up with right answer. Looking forward to a quick TAT. Thanks in advance&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 12:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549181#M457047</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-26T12:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549539#M457048</link>
      <description>&lt;P&gt;First thing first, how exactly do you create Month_Production field in the script? Is it created using Date() function?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 02:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549539#M457048</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-27T02:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549564#M457049</link>
      <description>&lt;P&gt;I am not creating the month_production field in my script. It is coming from the raw file.&amp;nbsp; It is not created using date function.&lt;/P&gt;&lt;P&gt;It indicates the first day of the month. e..g 1/1/2018, 2/1/2018,3/1/2018 etc. It is in 'MM/DD/YYYY' format and is represented as Jan-18, Feb -18 etc&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 04:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549564#M457049</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-27T04:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549794#M457050</link>
      <description>&lt;P&gt;In that case, it might not be read as a date field, but in order to make it work, get it to be read as a date field.&lt;/P&gt;&lt;PRE&gt;Date(MonthStart(Date#(Month_Production, 'MMM-YY')), 'MMM-YY') as Month_Production&lt;/PRE&gt;&lt;P&gt;now use this for your last month's expression&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;Month_Production = {"$(=Date(MonthStart(Max(Month_Production), -1), 'MMM-YY'))"}&amp;gt;} Acc_No)&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2019 12:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549794#M457050</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-27T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549994#M457051</link>
      <description>OK thanks for the reply let me try it and get back to you on the same</description>
      <pubDate>Wed, 27 Feb 2019 16:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1549994#M457051</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-27T16:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550232#M457052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried the calculation you have me. However, the first calculation evaluates to blank. Any idea why this is happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 06:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550232#M457052</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-28T06:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550249#M457053</link>
      <description>&lt;P&gt;In the inline load statement i tried and it worked. However, in my data set it didn't work. When I dug deep I found out that the month_production is given as 1/1/2018,2/1/2018,3/1/2018 etc in MM/DD/YYYY format. So when I tried applying your formula it failed and gave me a blank value. I removed the date function you had used and applied the formula. Is there any other way I can calculate or should I convert it into Jan-18,Feb-18 etc and then apply your formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 07:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550249#M457053</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-28T07:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550445#M457054</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/65100"&gt;@RohanPR&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried the calculation you have me. However, the first calculation evaluates to blank. Any idea why this is happening?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;First calculation? Which 1st calculation are you talking about?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550445#M457054</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-28T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550461#M457055</link>
      <description>&lt;PRE&gt;Date(MonthStart(Date#(Month_Production, 'MMM-YY')), 'MMM-YY') as Month_Production&lt;/PRE&gt;&lt;P&gt;This is the first calculation I was talking about. However, I kind of tweaked your date format to suit my data and it is working now. Thanks a lot. Appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Count({&amp;lt;Month_Production = {"$(=Date(MonthStart(Max(Month_Production), -1), 'MMM YY'))"}&amp;gt;} Acc_No)&lt;/PRE&gt;&lt;P&gt;This is the final formula i used finally&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550461#M457055</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-28T12:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550474#M457056</link>
      <description>&lt;P&gt;Awesome, I am glad you were able to figure it out.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550474#M457056</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-28T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550482#M457057</link>
      <description>&lt;P&gt;again thanks for all your help&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.qlik.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1550482#M457057</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-02-28T12:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1553931#M457058</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I am reopening this discussion again. I am facing a peculiar problem. When I do the calculation you provided in a text box I get a different number for both current month as well as for previous month. However, when I plot it on a graph either as a table or bar chart I get the exact correct numbers which is there in my excel. Jut to give some more context, the account numbers repeat in a month. Any reason why this is happening? My account number gets linked with other tables. However, that is not causing the problem since the table chart gives me exact numbers but in the text box I get a different number..&lt;/P&gt;&lt;P&gt;I need count(Account Number) every month and not count(distinct Account Number) in the text box.&amp;nbsp; I tried count(Account Number) in the text box calculation, however it doesn't count duplicate values&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 06:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1553931#M457058</guid>
      <dc:creator>RohanPR</dc:creator>
      <dc:date>2019-03-08T06:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1554173#M457059</link>
      <description>&lt;P&gt;Would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 11:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1554173#M457059</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-08T11:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Value based on Filter Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1987679#M1221209</link>
      <description>&lt;P&gt;Hi Guys - i am new to qlik sense - i have the same issue - i want previous month KPI to be based on filtered selection. e.g. if i select June i want previous month(May)figures to show - can someone please help ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 16:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Previous-Month-Value-based-on-Filter-Selection/m-p/1987679#M1221209</guid>
      <dc:creator>dching</dc:creator>
      <dc:date>2022-09-30T16:32:34Z</dc:date>
    </item>
  </channel>
</rss>

