<?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: expressions with current/previous months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054175#M926490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Make sure that Your month field is calculated using Month function&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;YourYearField = {"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;YourYearField&lt;/SPAN&gt;))"}, YourMonthField ={"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;YourMonthField&lt;/SPAN&gt;))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 07:33:05 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-04-06T07:33:05Z</dc:date>
    <item>
      <title>expressions with current/previous months</title>
      <link>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054171#M926486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to qlikview and I've been trying to solve this problem for a while now.&lt;/P&gt;&lt;P&gt;I found a lot of answers on the forum, but none that could help me (probably because I'm still fairly new).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a document with colums year (f.e. 2016) and month (f.e. Jan).&lt;/P&gt;&lt;P&gt;Now I'm trying to get an expression that offers me the sum of another column for the most recent month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found a lot of expressions on the forum, but they don't seem to help, maybe I made a mistake in my script or with formatting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please provide me of an adequate answer?&lt;/P&gt;&lt;P&gt;(I'm sorry if I didn't post in the right section or in the right way, as I said I'm really new to Qlikview).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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/expressions-with-current-previous-months/m-p/1054171#M926486</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: expressions with current/previous months</title>
      <link>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054172#M926487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition, one of the expressions I've already tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;Year={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=year(today()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},Month={'$(=upper(Month(today())))'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[001 - 007]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'€ ###.###.###,##0') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 09:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054172#M926487</guid>
      <dc:creator />
      <dc:date>2016-04-05T09:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: expressions with current/previous months</title>
      <link>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054173#M926488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a sample you can share? Would be good to know how the data is structured and where exactly are you trying to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054173#M926488</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-05T17:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: expressions with current/previous months</title>
      <link>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054174#M926489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response, but I've actually found it with a bit of help. Might some people encounter the same problem they will benefit of my solution:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Most recent month: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateAB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=max(DateAB))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FIELD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Previous month:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( { &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateAB&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Date(max(DateAB)-1,'YYYYMM'))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FIELD]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; )&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DateAB being structured as followed: &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;DateAB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;,'MMM-YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;DateAB&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; color: black; font-size: 9pt; mso-ansi-language: EN-US; mso-fareast-theme-font: minor-latin; font-family: 'Courier New'; mso-fareast-font-family: Calibri;"&gt;Have a nice day!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 07:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054174#M926489</guid>
      <dc:creator />
      <dc:date>2016-04-06T07:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: expressions with current/previous months</title>
      <link>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054175#M926490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Make sure that Your month field is calculated using Month function&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;YourYearField = {"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;YourYearField&lt;/SPAN&gt;))"}, YourMonthField ={"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;YourMonthField&lt;/SPAN&gt;))"}&amp;gt;}Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 07:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expressions-with-current-previous-months/m-p/1054175#M926490</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-04-06T07:33:05Z</dc:date>
    </item>
  </channel>
</rss>

