<?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: Month to Date using Master Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672092#M244101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need a if-loop which checked the day from current month against the day from calendar. Maybe you could set these check within the background-color from the expression to change the color to transparency:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(check, color(rowno()), argb(0,0,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 11:07:08 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-08-13T11:07:08Z</dc:date>
    <item>
      <title>Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672091#M244100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a master calendar with built in flags and want to calculate MTD for the chosen month, M -1 , M -2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data loaded until Aug 11 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the chosen month is not complete (e.g. Aug 2014), then the MTD numbers should show only until Aug 11th and for the other months it should show the MTD numbers for the whole month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MTD expression I am using for the current month (Aug) is&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;RangeSum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;above&lt;/SPAN&gt;( &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;={'=$(=max(Date))'},&lt;SPAN style="color: #800000;"&gt;%Flag_ThisMonth&lt;/SPAN&gt;={1} &amp;gt;}&lt;SPAN style="color: #800000;"&gt;measure&lt;/SPAN&gt;),0,&lt;SPAN style="color: #0000ff;"&gt;rowno&lt;/SPAN&gt;())) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The problem am facing is that for the M-1 and M -2 it works fine,&amp;nbsp; whereas for M i.e. Aug, the line extends until end of month with the same MTD value as of 13th Aug. I want the line to end on 13th August and not extend&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="mtd issue.png" class="jive-image" src="/legacyfs/online/64294_mtd issue.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now if&amp;nbsp; I remove the expressions for M-1, M-2 etc. then the above MTD expression for August works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="mtd issue 2.png" class="jive-image" src="/legacyfs/online/64316_mtd issue 2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anyone help me with this case ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Would appreciate any help/pointers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 10:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672091#M244100</guid>
      <dc:creator />
      <dc:date>2014-08-13T10:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672092#M244101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need a if-loop which checked the day from current month against the day from calendar. Maybe you could set these check within the background-color from the expression to change the color to transparency:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(check, color(rowno()), argb(0,0,0,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 11:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672092#M244101</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-13T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672093#M244102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Macus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That doesn't seem to do the trick, the check that I am making is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;)) &amp;lt;=&lt;SPAN style="color: #0000ff;"&gt;month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()), &lt;SPAN style="color: #0000ff;"&gt;color&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;rowno&lt;/SPAN&gt;()), &lt;SPAN style="color: #0000ff;"&gt;argb&lt;/SPAN&gt;(0,0,0,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So now each month porition is colored differently for 2014 - am thinking this is because of the fact that the other expressions bring back data until end of day (31st) and this is causing it ? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672093#M244102</guid>
      <dc:creator />
      <dc:date>2014-08-13T14:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672094#M244103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mustn't the expression check the day instead the month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(day(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;)) &amp;lt;=day(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()), &lt;SPAN style="color: #0000ff;"&gt;color&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;rowno&lt;/SPAN&gt;()), &lt;SPAN style="color: #0000ff;"&gt;argb&lt;/SPAN&gt;(0,0,0,0)) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672094#M244103</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-13T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672095#M244104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, but the one I tried was on YTD as I have the same problem in YTD chart (which shows month by month) . In both cases this doesn't seem to help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mtd issue 4.png" class="jive-image" src="/legacyfs/online/64381_mtd issue 4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And more over, this assumes that I am always comparing against today. Looking at the case when the chosen month is March, it brings back the same number from Feb 28th to Feb 31st &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mtd issue 23.png" class="jive-image" src="/legacyfs/online/64380_mtd issue 23.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because I have&amp;nbsp; Day as Dimension and this is until 31st - its extending the rangesum until that day ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 06:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672095#M244104</guid>
      <dc:creator />
      <dc:date>2014-08-14T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672096#M244105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it seems that to change the color didn't worked properly but if you set these condition in the expression it should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(day(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;)) &amp;lt;=day(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()), YourExpression, null()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;- Marcus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 07:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672096#M244105</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-14T07:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Month to Date using Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672097#M244106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in responding to your DM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As its using Day# as the dimension and the calculation is cumulative its continuing (flat line) within the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first solution to try would be what Marcus suggested. This should stop the calculation in its tracks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this isn't working I'll see if I can replicate it and come back to you with another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-to-Date-using-Master-Calendar/m-p/672097#M244106</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-08-14T15:48:59Z</dc:date>
    </item>
  </channel>
</rss>

