<?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 month to date max value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458558#M486612</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;I would like to compare two values between the same dates.&lt;/P&gt;&lt;P&gt;My formula is :&lt;/P&gt;&lt;P&gt;Sum (if(InMONTH(cal,timestamp(reloadTime()),0),codep_premier))-sum (if(InMONTHtodate(cal,ReloadTime(),-1),codep_premier))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is I would like to replace my ReloadTime by the max of the calendar because sometimes the max will be 2, 3 or 4 days before I reloaded my application.&lt;/P&gt;&lt;P&gt;I tried to put "max(cal)", it didn't work, I tried timestamp(max(cal)) didn't work either. I pretty much tried everything, and when I just put max(cal) or others in a random text it works, but everytime i try with inmonthtodate it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'm using Qlikview 10.00 SR4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 14:05:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-21T14:05:50Z</dc:date>
    <item>
      <title>month to date max value</title>
      <link>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458558#M486612</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;I would like to compare two values between the same dates.&lt;/P&gt;&lt;P&gt;My formula is :&lt;/P&gt;&lt;P&gt;Sum (if(InMONTH(cal,timestamp(reloadTime()),0),codep_premier))-sum (if(InMONTHtodate(cal,ReloadTime(),-1),codep_premier))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is I would like to replace my ReloadTime by the max of the calendar because sometimes the max will be 2, 3 or 4 days before I reloaded my application.&lt;/P&gt;&lt;P&gt;I tried to put "max(cal)", it didn't work, I tried timestamp(max(cal)) didn't work either. I pretty much tried everything, and when I just put max(cal) or others in a random text it works, but everytime i try with inmonthtodate it doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I'm using Qlikview 10.00 SR4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458558#M486612</guid>
      <dc:creator />
      <dc:date>2013-02-21T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: month to date max value</title>
      <link>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458559#M486613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be done by set analysis, something liek the example below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month={$(=max(Month))} &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;codep_premier&lt;/SPAN&gt;) -&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month={$(=max(Month)-1)} &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;codep_premier&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provided that Month is a number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458559#M486613</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-02-21T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: month to date max value</title>
      <link>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458560#M486614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ioannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new xith Qlikview and I found this document online talking about set analysis but I still don't know how to use it.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/servlet/JiveServlet/previewBody/1867-102-1-1858/QlikLearn-Set-Analysis-Presentation.pdf" title="http://community.qlik.com/servlet/JiveServlet/previewBody/1867-102-1-1858/QlikLearn-Set-Analysis-Presentation.pdf"&gt;http://community.qlik.com/servlet/JiveServlet/previewBody/1867-102-1-1858/QlikLearn-Set-Analysis-Presentation.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calendar table is the following :&lt;/P&gt;&lt;P&gt;"cal" for the day&lt;/P&gt;&lt;P&gt;"month_codep" for the month&lt;/P&gt;&lt;P&gt;"codep_premier" is the value I'm trying to sum up.&lt;/P&gt;&lt;P&gt;When I do :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;month_codep={$(=month(max(cal)))}&amp;gt;} codep_premier) &lt;/P&gt;&lt;P&gt;it show a wrong number, higher than the sum of codep_premier for the whole previous month&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;month_codep={$(=month(max(cal))-1)}&amp;gt;} codep_premier) shows only 0.&lt;/P&gt;&lt;P&gt;I'm having hard time correcting this code since I don't understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 09:46:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458560#M486614</guid>
      <dc:creator />
      <dc:date>2013-02-22T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: month to date max value</title>
      <link>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458561#M486615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this looks correct to me :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({$&amp;lt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;month_codep&lt;/SPAN&gt;={$(=Month(Max&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(cal)&lt;/SPAN&gt;)-1)} &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;codep_premier&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it gives you 0 then maybe there is a data issue or we should take year in account also.&lt;/P&gt;&lt;P&gt;A sample application with sample data would help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 10:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-to-date-max-value/m-p/458561#M486615</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-02-22T10:36:52Z</dc:date>
    </item>
  </channel>
</rss>

