<?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 Record Count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046929#M86110</link>
    <description>&lt;P&gt;Sure, here is an xlsx of the non-sensitive data involved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be enough&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/189728"&gt;@Gabbar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 15:20:04 GMT</pubDate>
    <dc:creator>asmith_rc_23</dc:creator>
    <dc:date>2023-03-08T15:20:04Z</dc:date>
    <item>
      <title>Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2045846#M86023</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have a calculation in an app that&amp;nbsp;Gets count of records from previous month.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All individual variables seem to be working.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;however,&amp;nbsp;the calculation returns zero.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Calc=&amp;nbsp; count({$&amp;lt;RecordCurrent_Month = {"Previous_Month_End"}&amp;gt;}Month_end_note_id)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WHERE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RecordCurrent_Month =&amp;nbsp;date(DATA_DATE,'MM/YY')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Previous_Month_End =&amp;nbsp;date(addmonths(DATA_DATE,-1),'MM/YY')&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 18:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2045846#M86023</guid>
      <dc:creator>asmith_rc_23</dc:creator>
      <dc:date>2023-03-06T18:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046292#M86065</link>
      <description>&lt;P&gt;This set analysis is going row wise, so there is no data where current_month=previous_month in backend in the same row,&lt;BR /&gt;&lt;SPAN&gt;try this&lt;BR /&gt;Calc=&amp;nbsp; count({$&amp;lt;RecordCurrent_Month = {"=$(=date(addmonths(DATA_DATE,-1),'MM/YY')&amp;nbsp;)"}&amp;gt;}Month_end_note_id) it should&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; work when data can be in tabular format like in charts and table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 15:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046292#M86065</guid>
      <dc:creator>Gabbar</dc:creator>
      <dc:date>2023-03-07T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046321#M86067</link>
      <description>&lt;P&gt;Gabbar,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out.&lt;/P&gt;
&lt;P&gt;i had to replace data_date but otherwise i copied the above. I verified that the addmonths calc works too.&lt;/P&gt;
&lt;P&gt;count({$&amp;lt;RecordCurrent_Month = {"=$(=date(addmonths(common_loan_wam_month_end_date,-1),'MM/YY') )"}&amp;gt;}Month_end_note_id)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above returns zero still. I am using a pivot table, not sure if that plays a factor.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alec&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 16:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046321#M86067</guid>
      <dc:creator>asmith_rc_23</dc:creator>
      <dc:date>2023-03-07T16:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046349#M86069</link>
      <description>&lt;P&gt;Try this:&lt;BR /&gt;&lt;SPAN&gt;count({$&amp;lt;RecordCurrent_Month = {"=$(=date(addmonths(RecordCurrent_Month,-1),'MM/YY') )"}&amp;gt;}Month_end_note_id)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 17:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046349#M86069</guid>
      <dc:creator>Gabbar</dc:creator>
      <dc:date>2023-03-07T17:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046395#M86073</link>
      <description>&lt;P&gt;No luck.&amp;nbsp;&lt;SPAN&gt;date(addmonths(RecordCurrent_Month,-1),'MM/YY') is valid however.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Results in the screen shot, even included the previous month calculation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlecRC23_0-1678213067218.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/102201iDF859AA700748E69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlecRC23_0-1678213067218.png" alt="AlecRC23_0-1678213067218.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 18:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046395#M86073</guid>
      <dc:creator>asmith_rc_23</dc:creator>
      <dc:date>2023-03-07T18:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046623#M86088</link>
      <description>&lt;P&gt;Please share a sample dataset for the same.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 08:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046623#M86088</guid>
      <dc:creator>Gabbar</dc:creator>
      <dc:date>2023-03-08T08:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046929#M86110</link>
      <description>&lt;P&gt;Sure, here is an xlsx of the non-sensitive data involved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be enough&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/189728"&gt;@Gabbar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 15:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2046929#M86110</guid>
      <dc:creator>asmith_rc_23</dc:creator>
      <dc:date>2023-03-08T15:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2047125#M86124</link>
      <description>&lt;P&gt;Will update the solution as soon as i am able to find, till then&amp;nbsp;&lt;BR /&gt;try this:&lt;BR /&gt;Above('Your Normal Set expression of current month')&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Sort your data in ascending order according to recordcurrent_month&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 05:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2047125#M86124</guid>
      <dc:creator>Gabbar</dc:creator>
      <dc:date>2023-03-09T05:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2047429#M86147</link>
      <description>&lt;P&gt;I am sharing a .qvf file showing how I would solve this using The As Of Table.&lt;/P&gt;
&lt;P&gt;All you need to know about that is described on this post:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_self"&gt;The As Of Table&lt;/A&gt;&amp;nbsp;. I don't think I can explain better than Hic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I hope it solve your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 11:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2047429#M86147</guid>
      <dc:creator>rpennacchi</dc:creator>
      <dc:date>2023-03-13T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Previous Month Record Count</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2050618#M86360</link>
      <description>&lt;P&gt;So sorry for the delay. &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146368"&gt;@rpennacchi&lt;/a&gt;&amp;nbsp;solution worked.&lt;/P&gt;
&lt;P&gt;Thank you all for your efforts.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Previous-Month-Record-Count/m-p/2050618#M86360</guid>
      <dc:creator>asmith_rc_23</dc:creator>
      <dc:date>2023-03-17T17:10:22Z</dc:date>
    </item>
  </channel>
</rss>

