<?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: Divide measure before date X in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234533#M517790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is it, great! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 11:57:46 GMT</pubDate>
    <dc:creator>skoppe</dc:creator>
    <dc:date>2017-02-08T11:57:46Z</dc:date>
    <item>
      <title>Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234525#M517782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need some help, I have the following chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152418_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;formulas are:&lt;/P&gt;&lt;P&gt;Aantal klantvragen: count({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)&lt;/P&gt;&lt;P&gt;Verzekerd: count({&amp;lt;[Klant label]={'XX'},[IsVerzekerde]={1},[Month]=&amp;gt;}AppID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want and can't get working. I would like to divide al numbers before Date 25-11-2016 by 2. And round up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;numbers would be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aantal klantvragen:&lt;/P&gt;&lt;P&gt;jan 238&lt;/P&gt;&lt;P&gt;feb 192&lt;/P&gt;&lt;P&gt;mrt 314&lt;/P&gt;&lt;P&gt;dec 230&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Date field in format 'DD-MM-YYYY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 09:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234525#M517782</guid>
      <dc:creator>skoppe</dc:creator>
      <dc:date>2017-02-08T09:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234526#M517783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Date &amp;lt; '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;25-11-2016', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; count({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)&lt;/SPAN&gt; /2, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; count({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234526#M517783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-08T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234527#M517784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Month(MakeDate(2016, 11, 25)) &amp;lt; Maand, C&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ount({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)/2, C&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ount({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234527#M517784</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T10:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234528#M517785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've changed this to:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(MakeDate(2016, 11, 25) &amp;lt; Date, C&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ount({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)/2, C&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;ount({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Now it works when I select one date, when I select more dates I get the old numbers.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Any ideas?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Thanks, Stefan&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234528#M517785</guid>
      <dc:creator>skoppe</dc:creator>
      <dc:date>2017-02-08T10:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234529#M517786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still trying to understand how this is being used.... Can you share images of how it looks when you select a single date and how it looks when you select multiple dates? May be a sample might help speed up things&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234529#M517786</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T10:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234530#M517787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample is not easy because of non disclosure agreement, scrambling screws up my set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try it with more images:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) No selection on date gives bad result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152434_1.png" style="height: 276px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;2) selection on date 1-1-2016 gives good result (15/2 = 7.5) :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/152435_2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;3) selection on 2-1-2016 gives good result (16/2 = 8):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/152436_3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;4) selection on 1-1-2016 and 2-1-2016 gives bad result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/152437_4.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;So it only works when there is one date selected. The goal is that everything up to 25-11-2016 is divided by two (even without selections).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234530#M517787</guid>
      <dc:creator>skoppe</dc:creator>
      <dc:date>2017-02-08T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234531#M517788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try may be using Aggr() function around this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum(Aggr(&lt;/SPAN&gt;If(MakeDate(2016, 11, 25) &amp;lt; Date, C&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ount({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)/2, C&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;ount({&amp;lt;[Klant label]={'XX'},[Month]=&amp;gt;}AppID)&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;, Date, Maand))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you are doing this by date and not month, you will have more than half of the month of december where the result is divided by 2. Is that what you want?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234531#M517788</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T11:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234532#M517789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean more than half of the month november?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234532#M517789</guid>
      <dc:creator>skoppe</dc:creator>
      <dc:date>2017-02-08T11:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234533#M517790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is it, great! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234533#M517790</guid>
      <dc:creator>skoppe</dc:creator>
      <dc:date>2017-02-08T11:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234534#M517791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, that's what I meant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 11:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234534#M517791</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-08T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Divide measure before date X</title>
      <link>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234535#M517792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I tried, thanks. Sunny pointed me to aggr() function, this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 12:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Divide-measure-before-date-X/m-p/1234535#M517792</guid>
      <dc:creator>skoppe</dc:creator>
      <dc:date>2017-02-08T12:05:22Z</dc:date>
    </item>
  </channel>
</rss>

