<?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 Current month calculation while current month not selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220986#M73843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders!&lt;/P&gt;&lt;P&gt;Great, it works! Don't know what went wrong. I think the num function was not necessary, but i thought I tried without and that didn't work. Very strange...but I am happy with the result.&lt;/P&gt;&lt;P&gt;Thank you both a lot, you saved me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Dec 2010 13:00:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-13T13:00:39Z</dc:date>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220979#M73836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;For my application I tried several things to make a Current month calculation. The problem is that customer would like to select a year/month combination for 1 expression and another expression always shows the current month figures.&lt;/P&gt;&lt;P&gt;I tried several thins to achieve this:&lt;/P&gt;&lt;P&gt;1. make Current month field in script&lt;/P&gt;&lt;P&gt;2. make 'CM' indicator field in script&lt;/P&gt;&lt;P&gt;3. expression: Sum({$&amp;lt;Year_Month={$(=Year(today())&amp;amp;num(month(today()),'00'))}&amp;gt;}Score)&lt;/P&gt;&lt;P&gt;All these options work perfect as long as I select the current month. But I do not want to select the current month. I want to select for example July 2010 and 1 expression is showing this while another expression always shows the current month figure; in this case december 2010.&lt;/P&gt;&lt;P&gt;How can i change above expression to achieve this?&lt;/P&gt;&lt;P&gt;Thanx a lot for helping me!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patricia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 20:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220979#M73836</guid>
      <dc:creator />
      <dc:date>2010-12-12T20:48:25Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220980#M73837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patricia,&lt;/P&gt;&lt;P&gt;Take a look at the Dashboard tab of the What's New in QlikView 9 application (&lt;A href="http://community.qlik.com/media/p/67011.aspx"&gt;http://community.qlik.com/media/p/67011.aspx&lt;/A&gt;). You will see that to show year comparisons, the example uses max(year) and max (year)-1.&lt;/P&gt;&lt;P&gt;This should point you in the right direction.&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 23:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220980#M73837</guid>
      <dc:creator />
      <dc:date>2010-12-12T23:05:51Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220981#M73838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I saw this example. It is a nice example which shows you the max year if no selections are made. But if you choose for 2007, the current year figure will change to 2007. I already used this calculation for my application.&lt;/P&gt;&lt;P&gt;What i would like, that if I select 2007, the current year of 2009 will still be shown. Another expression will show the figure of 2007.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 09:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220981#M73838</guid>
      <dc:creator />
      <dc:date>2010-12-13T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220982#M73839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, it sounds to me like you have separate Year and Month fields that you are displaying in listboxes. Your expression number 3 is almost correct for the current year, ie. Sum({$&amp;lt;Year_Month={$(=Year(today())&amp;amp;num(month(today()),'00'))}&amp;gt;} Score) but you need to tell QlikView to ignore any selections in your separate Year and Month fields. To do this add 2 more conditions to your set analysis expression, i.e. Year=, Month=.&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year_Month={$(=Year(today())&amp;amp;num(month(today()),'00')), Year=, Month=}&amp;gt;} Score)&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220982#M73839</guid>
      <dc:creator />
      <dc:date>2010-12-13T10:24:30Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220983#M73840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops - missings '}'. Should be:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year_Month={$(=Year(today())&amp;amp;num(month(today()),'00'))}, Year=, Month=}&amp;gt;} Score)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220983#M73840</guid>
      <dc:creator />
      <dc:date>2010-12-13T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220984#M73841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I tried your solution (and more...). The calculation works perfect as long as you have the current month selected....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 12:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220984#M73841</guid>
      <dc:creator />
      <dc:date>2010-12-13T12:15:05Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220985#M73842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patricia&lt;/P&gt;&lt;P&gt;I use this and it´s working fine.&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;Year={$(=Year(today()))},Month={$(=Month(today()))}&amp;gt;} Order)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 12:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220985#M73842</guid>
      <dc:creator />
      <dc:date>2010-12-13T12:50:31Z</dc:date>
    </item>
    <item>
      <title>Current month calculation while current month not selected</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220986#M73843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders!&lt;/P&gt;&lt;P&gt;Great, it works! Don't know what went wrong. I think the num function was not necessary, but i thought I tried without and that didn't work. Very strange...but I am happy with the result.&lt;/P&gt;&lt;P&gt;Thank you both a lot, you saved me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 13:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-calculation-while-current-month-not-selected/m-p/220986#M73843</guid>
      <dc:creator />
      <dc:date>2010-12-13T13:00:39Z</dc:date>
    </item>
  </channel>
</rss>

