<?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: How to write a current month / previous month (or year) expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-a-current-month-previous-month-or-year-expression/m-p/952952#M969030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can close this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression was good. The problem came from the format of month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2015 11:58:55 GMT</pubDate>
    <dc:creator>marieclaire</dc:creator>
    <dc:date>2015-10-02T11:58:55Z</dc:date>
    <item>
      <title>How to write a current month / previous month (or year) expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-current-month-previous-month-or-year-expression/m-p/952951#M969029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to calculate the evolution of monthly audience (based on a selection date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vs the previous month (M-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and vs&amp;nbsp; the previous year (A-1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use these expressions, but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;(sum( {$&amp;lt;Mois = {$(=Max (Mois))}&amp;gt;} [m_visits]))-(sum( {$&amp;lt;Mois = {$(=Max (Mois)-1)}&amp;gt;} [m_visits])))&lt;/P&gt;&lt;P&gt;/sum( {$&amp;lt;Mois = {$(=Max (Mois)-1)}&amp;gt;} [m_visits])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( {$&amp;lt;Mois = {$(=Max (Mois))}&amp;gt;} [m_visits]) - ( {$&amp;lt;Mois = {$(=Max (Mois)-1)}&amp;gt;}&amp;nbsp; [m_visits]))&lt;/P&gt;&lt;P&gt;/( {$&amp;lt;Mois = {$(=Max (Mois)-1)}&amp;gt;}&amp;nbsp; [m_visits])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( {$&amp;lt;Année = {$(=Max (Année))}&amp;gt;}&amp;nbsp; [m_visits]) - (sum( {$&amp;lt;Année = {$(=Max (Année)-1)}&amp;gt;}&amp;nbsp; [m_visits] ))&lt;/P&gt;&lt;P&gt;/( {$&amp;lt;Année = {$(=Max (Année)-1)}&amp;gt;} [m_visits])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody could help me ?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached file (August 2015)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 20:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-current-month-previous-month-or-year-expression/m-p/952951#M969029</guid>
      <dc:creator>marieclaire</dc:creator>
      <dc:date>2015-09-28T20:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a current month / previous month (or year) expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-a-current-month-previous-month-or-year-expression/m-p/952952#M969030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can close this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression was good. The problem came from the format of month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 11:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-a-current-month-previous-month-or-year-expression/m-p/952952#M969030</guid>
      <dc:creator>marieclaire</dc:creator>
      <dc:date>2015-10-02T11:58:55Z</dc:date>
    </item>
  </channel>
</rss>

