<?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: Daily based calculation in a monthly based dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317240#M584852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing the aggregation in the script has the advantage of being more performant.&lt;/P&gt;&lt;P&gt;But it also has the disadvantage that it is not sensitive to selections (on the granular level e.g. selecting a subset of dates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it really depends what your requirements are, if you want more flexibilty, I think you should stick with the aggr() function, but if you experience low performance &lt;SPAN style="text-decoration: underline;"&gt;and &lt;/SPAN&gt;you don't need this flexibility / sensitivity to selections, you could go with putting it in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 13:10:40 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-07T13:10:40Z</dc:date>
    <item>
      <title>Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317234#M584846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I placed a table (diagram) in my application with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- dimension: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- formula: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum all "impressions" from the item, that has the most "impresssions"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.gif" class="jive-image" src="https://community.qlik.com/legacyfs/online/6933_1.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now take a look at my formula, please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.gif" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/6932_2.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;This formula checks, which item has the most impressions. After that the sum()-forumlar is used for the item with the most impressions and will display the value in the diagram. For example:&lt;/P&gt;&lt;P&gt;if&amp;nbsp; sum("sb")&amp;nbsp; has more IMPRESSIONS&amp;nbsp; than&amp;nbsp; sum("sky")&amp;nbsp;&amp;nbsp;&amp;nbsp; then&amp;nbsp;&amp;nbsp;&amp;nbsp; sum("sb")&amp;nbsp;&amp;nbsp; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum("sky").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment the formula cover the whole month (because the dimension is "month"), BUT I need to apply this formula on a DAILY base (to become more exaclty). BUT I HAVE TO DISPLAY THE RESULT IN A MONTHLY DIMENSION AS SHOWN IN THE TABLE's SCREENSHOT ABOVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this?&lt;/P&gt;&lt;P&gt;thanks for your input &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;jup&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 12:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317234#M584846</guid>
      <dc:creator />
      <dc:date>2011-09-01T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317235#M584847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Addendum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a &lt;SPAN style="text-decoration: underline;"&gt;daily calculation &lt;/SPAN&gt;and want to &lt;SPAN style="text-decoration: underline;"&gt;display &lt;/SPAN&gt;in &lt;SPAN style="text-decoration: underline;"&gt;monthly &lt;/SPAN&gt;based table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.gif" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7022_1.gif" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 15:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317235#M584847</guid>
      <dc:creator />
      <dc:date>2011-09-05T15:27:32Z</dc:date>
    </item>
    <item>
      <title>Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317236#M584848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use advanced aggregation for this, just use as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum( aggr( YOURCURRENTEXPRESSION, Day))&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>Mon, 05 Sep 2011 17:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317236#M584848</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-05T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317237#M584849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm. Where and how to use it? In the formula-Field of the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to explain again what I need...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here' s the workflow where the calculation is at the moment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7095" alt="8.gif" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/7095_8.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is very imprecise because we compare the SUM() of the whole month for "sb" and "sky".&lt;/P&gt;&lt;P&gt;We need to check wether "sb" or "sky" has the most Impressions für ONE day and use this value to count the impressions for the month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7096" alt="7.gif" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/7096_7.gif" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Please take a look at my attached QVW. You can use it and modify it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 11:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317237#M584849</guid>
      <dc:creator />
      <dc:date>2011-09-07T11:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317238#M584850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this ( have a look at the expression in the chart).&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, 07 Sep 2011 12:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317238#M584850</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-07T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317239#M584851</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;Here's an alternative where the calculations is done in the load script instead!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(NB! You may need to take Year into account if you will have more than one year in your final app)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 12:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317239#M584851</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-07T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Daily based calculation in a monthly based dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317240#M584852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doing the aggregation in the script has the advantage of being more performant.&lt;/P&gt;&lt;P&gt;But it also has the disadvantage that it is not sensitive to selections (on the granular level e.g. selecting a subset of dates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it really depends what your requirements are, if you want more flexibilty, I think you should stick with the aggr() function, but if you experience low performance &lt;SPAN style="text-decoration: underline;"&gt;and &lt;/SPAN&gt;you don't need this flexibility / sensitivity to selections, you could go with putting it in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 13:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-based-calculation-in-a-monthly-based-dimension/m-p/317240#M584852</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-07T13:10:40Z</dc:date>
    </item>
  </channel>
</rss>

