<?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 Ignoring current month in a calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291321#M108122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;I have the formula beloe which calculates the mean of a data set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 9pt; font-family: Arial;"&gt;Count&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;total&lt;/STRONG&gt; &lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;distinct&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;PROBLEM_CODE&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;'CM'&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;}&amp;gt;}(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;REQUEST_ID&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;))/&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 9pt; font-family: Arial;"&gt;count&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;total&lt;/STRONG&gt; &lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;YearMonth&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;))*&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;12 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;As the current month is not yet complete I don't want to include it in in my calculation. Does anybody know how to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;My Year Month field is in the YY-MM format i.e 11-10 equals 2011 October&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 13:29:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-02T13:29:00Z</dc:date>
    <item>
      <title>Ignoring current month in a calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291321#M108122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;I have the formula beloe which calculates the mean of a data set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 9pt; font-family: Arial;"&gt;Count&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;total&lt;/STRONG&gt; &lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;distinct&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;PROBLEM_CODE&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;'CM'&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;}&amp;gt;}(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;REQUEST_ID&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;))/&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 9pt; font-family: Arial;"&gt;count&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;total&lt;/STRONG&gt; &lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;YearMonth&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;))*&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;12 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;As the current month is not yet complete I don't want to include it in in my calculation. Does anybody know how to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;My Year Month field is in the YY-MM format i.e 11-10 equals 2011 October&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291321#M108122</guid>
      <dc:creator />
      <dc:date>2011-11-02T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Ignoring current month in a calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291322#M108123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haycockd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about the logic but there is some systax error that I can correct. Try the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;( &lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: purple;"&gt;Count&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;total&lt;/STRONG&gt; &lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;distinct&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;PROBLEM_CODE&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: #4d0000;"&gt;'CM'&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;REQUEST_ID&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;)/&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: purple;"&gt;count&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;total &amp;lt;&lt;/STRONG&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;YearMonth&amp;gt; &lt;STRONG style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: green;"&gt;REQUEST_ID&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: black;"&gt;) )*&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: #4d0000;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Please be vigilant as distinct is in the numerator but missing in the denomiator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: #4d0000;"&gt;Hope this solves your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: #4d0000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 9pt; font-family: Arial; color: #4d0000;"&gt;Kiran.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291322#M108123</guid>
      <dc:creator />
      <dc:date>2011-11-02T13:59:04Z</dc:date>
    </item>
    <item>
      <title>Ignoring current month in a calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291323#M108124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 9pt; font-family: Arial;"&gt;Count&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;total&lt;/STRONG&gt; &lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;distinct&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;PROBLEM_CODE&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;'CM'&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;}, YearMonth -= {$(maxstring(YearMonth))} &amp;gt;} &lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;REQUEST_ID &lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;)/ (&lt;/SPAN&gt;&lt;STRONG style="color: purple; font-size: 9pt; font-family: Arial;"&gt;count&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;total&lt;/STRONG&gt; distinct &lt;STRONG style="color: green; font-size: 9pt; font-family: Arial;"&gt;YearMonth&lt;/STRONG&gt;&lt;SPAN style="font-family: Arial; color: black; font-size: 9pt;"&gt;)-1))*&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;12 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;I assumed you want to divide by the number of months to get an average per month, not a total share (I guess that what's Kiran assuming).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; color: #4d0000; font-size: 9pt;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291323#M108124</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-02T14:09:22Z</dc:date>
    </item>
    <item>
      <title>Ignoring current month in a calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291324#M108125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In this instrance I don't want average by month becuase I want to calcuate the mean. My formula does this a treat but ideally I don't want the current month as it is not yet over. All request Ids are not raised until the end of the month which is why I am trying to ignore this month.&lt;/P&gt;&lt;P&gt;Currently users have to select every month but this the current one which is not ideal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-current-month-in-a-calculation/m-p/291324#M108125</guid>
      <dc:creator />
      <dc:date>2011-11-02T14:25:20Z</dc:date>
    </item>
  </channel>
</rss>

