<?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: Previous Month in Set Analys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924259#M1218700</link>
    <description>&lt;P&gt;In this case you should transform output of MonthStart(Today(),-1) expression to MMM/YYYY format, your expressions are:&lt;/P&gt;
&lt;P&gt;COUNT({1&amp;lt;CD_SETOR={22},&lt;/P&gt;
&lt;P&gt;MESANO_PRIMDIA={"$(=Date(MonthStart(Today(),-1), 'MMM/YYYY'))"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;DISTINCT Value)&lt;/P&gt;
&lt;P&gt;Based on today() function, today is 4/28/2022,&amp;nbsp; Qlik will show the count for the previous month - Mar/2022 even if you select Feb/2022 in MESANO_PRIMDIA&amp;nbsp;&lt;/P&gt;
&lt;P&gt;COUNT({1&amp;lt;CD_SETOR={22},&lt;/P&gt;
&lt;P&gt;MESANO_PRIMDIA={"$(=Date(MonthStart(Max(MESANO_PRIMDIA),-1), 'MMM/YYYY'))"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;DISTINCT Value)&lt;/P&gt;
&lt;P&gt;Based on Max(MESANO_PRIMDIA),&amp;nbsp; if the latest MESANO_PRIMDIA in your application is Apr/2022 Qlik will show the count for Mar/2022. If you select Mar/2022 Qlik will show data for Feb/2022&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 20:33:44 GMT</pubDate>
    <dc:creator>vchuprina</dc:creator>
    <dc:date>2022-04-28T20:33:44Z</dc:date>
    <item>
      <title>Previous Month in Set Analys</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924060#M1218689</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;
&lt;P&gt;I read some forum posts about "previous month". However, I was not successful in applying.&lt;BR /&gt;I have the following situation, I need to lock my &lt;SPAN&gt;Set Analys&lt;/SPAN&gt; so that it always takes the previous month. My expression is like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;COUNT({1&amp;lt;CD_SETOR={22},
		 MESANO_PRIMDIA={"$(=Monthstart(Today())-1)"}&amp;gt;}
		 DISTINCT  NR_NUMERIC))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924060#M1218689</guid>
      <dc:creator>lucasx15</dc:creator>
      <dc:date>2022-04-28T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month in Set Analys</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924069#M1218690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can add '-1' as a second parameter to monthsstart function&lt;/P&gt;
&lt;P&gt;COUNT({1&amp;lt;CD_SETOR={22},&lt;BR /&gt;MESANO_PRIMDIA={"$(=Monthstart(Today()&lt;STRONG&gt;,-1&lt;/STRONG&gt;))"}&amp;gt;}&lt;BR /&gt;DISTINCT NR_NUMERIC))&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/monthstart.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunctions/monthstart.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924069#M1218690</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-28T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month in Set Analys</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924091#M1218692</link>
      <description>&lt;P&gt;Thank you for reply, Vitalii.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, even using the second argument the field still appears null for me in the display. The dimension that I am using MESANO_PRIMDIA. Do I need to put the -1" argument in the dimension as well?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924091#M1218692</guid>
      <dc:creator>lucasx15</dc:creator>
      <dc:date>2022-04-28T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month in Set Analys</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924095#M1218694</link>
      <description>&lt;P&gt;What do you have in&amp;nbsp;&lt;SPAN&gt;MESANO_PRIMDIA column?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924095#M1218694</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-28T14:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month in Set Analys</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924170#M1218697</link>
      <description>&lt;P&gt;In column,&amp;nbsp;&lt;SPAN&gt;MESANO_PRIMDIA ,has the date in the format: "MMM/YYYY"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924170#M1218697</guid>
      <dc:creator>lucasx15</dc:creator>
      <dc:date>2022-04-28T17:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month in Set Analys</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924259#M1218700</link>
      <description>&lt;P&gt;In this case you should transform output of MonthStart(Today(),-1) expression to MMM/YYYY format, your expressions are:&lt;/P&gt;
&lt;P&gt;COUNT({1&amp;lt;CD_SETOR={22},&lt;/P&gt;
&lt;P&gt;MESANO_PRIMDIA={"$(=Date(MonthStart(Today(),-1), 'MMM/YYYY'))"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;DISTINCT Value)&lt;/P&gt;
&lt;P&gt;Based on today() function, today is 4/28/2022,&amp;nbsp; Qlik will show the count for the previous month - Mar/2022 even if you select Feb/2022 in MESANO_PRIMDIA&amp;nbsp;&lt;/P&gt;
&lt;P&gt;COUNT({1&amp;lt;CD_SETOR={22},&lt;/P&gt;
&lt;P&gt;MESANO_PRIMDIA={"$(=Date(MonthStart(Max(MESANO_PRIMDIA),-1), 'MMM/YYYY'))"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;DISTINCT Value)&lt;/P&gt;
&lt;P&gt;Based on Max(MESANO_PRIMDIA),&amp;nbsp; if the latest MESANO_PRIMDIA in your application is Apr/2022 Qlik will show the count for Mar/2022. If you select Mar/2022 Qlik will show data for Feb/2022&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 20:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month-in-Set-Analys/m-p/1924259#M1218700</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-28T20:33:44Z</dc:date>
    </item>
  </channel>
</rss>

