<?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: Multiple calendar and aggregation problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853938#M659518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As simple as that - and here was me looking for a more complex solution.&lt;/P&gt;&lt;P&gt;Thank you very much Bhagirath.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Apr 2015 08:00:27 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2015-04-04T08:00:27Z</dc:date>
    <item>
      <title>Multiple calendar and aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853936#M659516</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;&lt;/P&gt;&lt;P&gt;I am sure this is a common problem - let me explain. In the diagram below you can see that I am using 3 separate calendars one each for Deliveries, Orders and Shipments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="82866" alt="MultipleCalendars.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/82866_MultipleCalendars.jpg" style="height: 435px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In the "blue" table (below) I am combining "Orders" (from the Order Calendar) and "Deliveries" from the "Delivery Calendar" (both shown in yellow) using the Dimension "&lt;STRONG&gt;Month Year&lt;/STRONG&gt;" from an unconnected calendar called "&lt;STRONG&gt;Calendar&lt;/STRONG&gt;" (shown in pink above) and then using syntax of the type:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(MonthYear = [Order MonthYear],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Orders.Counter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &lt;/SPAN&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;,MonthYear ,&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;[Order MonthYear]&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;) for "&lt;STRONG&gt;Orders&lt;/STRONG&gt;" and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(MonthYear = [Delivery MonthYear],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Orders.Counter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) ,MonthYear ,[Delivery MonthYear])&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; for "&lt;STRONG&gt;Deliveries&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco;"&gt;&lt;IMG __jive_id="82867" alt="MultipleCalendarsExample.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/82867_MultipleCalendarsExample.jpg" style="height: 399px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So far so good - all works fine and the numbers are correct.&lt;/P&gt;&lt;P&gt;Choosing a "Country" from the list box yields the correct results in the blue table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement, however, is to extend the "blue" table to show Orders and Deliveries for each country for every month (see pink table above). The resultant pivot table is incorrect - any help would be most appreciated. I attach the above demo application with data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 00:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853936#M659516</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2015-04-04T00:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple calendar and aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853937#M659517</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;Can you check the attached qvw hope this solves your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 03:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853937#M659517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-04T03:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple calendar and aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853938#M659518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As simple as that - and here was me looking for a more complex solution.&lt;/P&gt;&lt;P&gt;Thank you very much Bhagirath.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 08:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853938#M659518</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2015-04-04T08:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple calendar and aggregation problem</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853939#M659519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's because your aggr function was running on only one dimension and in chart you were looking for data with respect to both the dimensions..&lt;/P&gt;&lt;P&gt;Good to know that this solves your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers...!!!&lt;/P&gt;&lt;P&gt;Bhagirath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2015 08:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-calendar-and-aggregation-problem/m-p/853939#M659519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-04T08:06:44Z</dc:date>
    </item>
  </channel>
</rss>

