<?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: Canonical Calendar Challenges in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398067#M613491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No i don't..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So should i change my Date bridge to be more "loose".. so it's not bridging one each single line in the sales table?&amp;nbsp; Or how would i fix this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Dates i need to focus on, can be different on two orderlines, within the same order..&amp;nbsp; But you never budget on orderlines.. Just as a total. Where we load it with a single date in that month.&amp;nbsp; so the budgetted sales for a month is also on the 28th of that month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 14:54:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-28T14:54:24Z</dc:date>
    <item>
      <title>Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398065#M613484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the Canonical Calendar posted by Henric Cronstrom. (or let's say trying to use/implement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm facing some challenges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm loading my sales data from a qvd.&amp;nbsp;&amp;nbsp; and I have 3 dates i'm interested in. Which have their own calendar.&amp;nbsp;&amp;nbsp; Invoice, order and Pick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; InvNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvoiceDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Invoiced' as OrderStatus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InvYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderLineNumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PickDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales Amount&lt;/P&gt;&lt;P&gt;(Company &amp;amp; '-' &amp;amp; OrderType &amp;amp; '-' &amp;amp; OrderNumber &amp;amp; '-' &amp;amp; OrderLineNumber) as OrderLineID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sales.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateBridge:&lt;/P&gt;&lt;P&gt;Load OrderLineID, InvoiceDate as CalendarDate, 'Sales' as DateType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load OrderLineID, OrderDate as CalendarDate, 'Order' as DateType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load OrderLineID, PickDate as CalendarDate, 'Pick' as DateType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all Works fine.&amp;nbsp; Until i want to add my Budgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CalendarDate as InvoiceDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'BU' As Forecast_Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesBU as [Sales LCY BU],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MarginBU as [Margin LCY LOC BU],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Budget.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since in the ideal world the budget it perfect. It should always align with the invoicedate.. therefor there are no need for a forth calendar??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i load it.&amp;nbsp;&amp;nbsp; I can't see budget numbers after the highest invoice date.&amp;nbsp; Even though i have forced in the calendar date til end of next year, in the calendar generator.&amp;nbsp;&amp;nbsp; There are budget numbers until end of next year. But i can't see them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174871" alt="Canonicial Calendar error.JPG" class="jive-image image-1" src="/legacyfs/online/174871_Canonicial Calendar error.JPG" style="height: 199px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varMinDate = Num(MakeDate(2013,1,1));&lt;/P&gt;&lt;P&gt;LET varMaxDate = Floor(MakeDate(2018,12,31));&lt;/P&gt;&lt;P&gt;LET vDateToday = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCalendar: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(varMinDate) + Iterno()-1 As Num, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(varMinDate) + IterNo() - 1) as TempDate &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoGenerate 1 While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm suspecting it due to the DateBridge. Which are then bridging all the 4 calendars.&amp;nbsp; Main, order, invoice, pick.&amp;nbsp;&amp;nbsp;&amp;nbsp; this bridge is all done from the Sales table.&amp;nbsp; And it's somehow then limited to the highest dates from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am i doing wrong?&amp;nbsp; Do i really need to create one more Calendar for the forecasts/budgets?&amp;nbsp; If so, how?&amp;nbsp; I don't have an Unique OrderlineID. since budgets are done on customers total. not on orderlines.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is not the problem.&amp;nbsp; Then what is it?&amp;nbsp;&amp;nbsp; I have also tried just loading it the budgets dates as CalendarDate. but this creates a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398065#M613484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398066#M613487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is that there is no &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Company &amp;amp; '-' &amp;amp; OrderType &amp;amp; '-' &amp;amp; OrderNumber &amp;amp; '-' &amp;amp; OrderLineNumber) as OrderLineID for the budget data.... since that doesn't align, Invoice Date is not really connected to Date and calendar.... Do you have budget at Company, OrderType, OrderNumber, OrderLineNumber level? I would think not, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398066#M613487</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-28T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398067#M613491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No i don't..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So should i change my Date bridge to be more "loose".. so it's not bridging one each single line in the sales table?&amp;nbsp; Or how would i fix this?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Dates i need to focus on, can be different on two orderlines, within the same order..&amp;nbsp; But you never budget on orderlines.. Just as a total. Where we load it with a single date in that month.&amp;nbsp; so the budgetted sales for a month is also on the 28th of that month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398067#M613491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398068#M613494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might need to try one of these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DateBridge:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load OrderLineID, InvoiceDate as CalendarDate, 'Sales' as DateType&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load OrderLineID, OrderDate as CalendarDate, 'Order' as DateType&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load OrderLineID, PickDate as CalendarDate, 'Pick' as DateType&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Concatenate (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateBridge)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Company,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CalendarDate,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'Budget' as DateType&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM [Budget.qvd] (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Concatenate (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateBridge)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Company as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OrderLineID&lt;/SPAN&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CalendarDate,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'Budget' as DateType&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM [Budget.qvd] (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My link table skills are not the best these days (quite a bit out of touch), but see if that helps... Make sure to check it with and without selections (specially with selections in things like Order and OrderNumber and OrderLineNumber)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398068#M613494</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-28T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398069#M613496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. this turned my load script from a 2 min. load to a 12 min. load. Which then also failed. :-(..&amp;nbsp; both of them&amp;nbsp; but i can see the logic your are trying to use.. maybe it's a small detail which is wrong in it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 15:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398069#M613496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398070#M613498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share the script you just tried?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 15:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398070#M613498</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-28T15:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398071#M613500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So.. here's a small sample with scrampled data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had forgot the&amp;nbsp; paste the code yesterday.. so only the first example prolonged the load time.. the second just dosn't seem to work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398071#M613500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-29T09:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398072#M613502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I tried Creating a "fake"&amp;nbsp; OrderlineID in the Budget load. and Naming the date something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CalendarDate &lt;STRONG&gt;as ForecastDate&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SellToCustomer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'BU' As Forecast_Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesBU as [Sales LCY BU],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MarginBU as [Margin LCY LOC BU],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesBU / ApplyMap('Rates', Company, 0) as [Sales GBP BU],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MarginBU / ApplyMap('Rates', Company, 0) as [Margin GBP LOC BU],&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Company &amp;amp; '-0-0-1') as OrderLineID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;O&gt;&lt;/O&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then add it to the datebridge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateBridge:&lt;/P&gt;&lt;P&gt;Load OrderLineID, InvoiceDate as CalendarDate, 'Sales' as DateType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load OrderLineID, OrderDate as CalendarDate, 'Order' as DateType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load OrderLineID, PickDate as CalendarDate, 'Pick' as DateType&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load OrderLineID, ForecastDate as CalendarDate, 'Budget' as DateType&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident BU_FORECAST;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;And now i just get the Total in ALL months??&amp;nbsp; The total is correct. So i'm thinking i'm not entirely off? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 11:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398072#M613502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-30T11:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398073#M613504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will just try to Bump this.. I'm thinking someone must be able to help. It's seems like it's an easy fix, where i'm missing a little piece of the puzzle..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398073#M613504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-05T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398074#M613506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay.. so it's seems there are no one to help on this issue.. are there places out there, where we could buy the assistance then?&amp;nbsp; preferable online. since i'm guessing it's a quick fix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 06:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398074#M613506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T06:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398075#M613507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem lies in the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the picture below, your Canonical date links to the Sales table, which in turn links to the Budget table. In other words - dates that exist in the Budget table but not in the Sales table will not link to your Canonical calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data Model.png" class="jive-image image-1" src="/legacyfs/online/177140_Data Model.png" style="height: 400px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably change the data model: I would concatenate the Sales and the Budget tables (keep the names of the fields InvoiceDate, SellToCustomer and Company) so that your date bridge links to both sales and budget records. This would also remove the synthetic table, which might be part of the problem. If you concatenate the two before you crate the date bridge, I suspect everything will work just fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you have an additional problem: Your budget table seems to contain too many records - twice as many as the sales table. If I look into it, it seems as if there are duplicates. Could this be the case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Budget table metadata.png" class="jive-image image-2" src="/legacyfs/online/177141_Budget table metadata.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398075#M613507</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2017-09-20T08:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398076#M613509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will start with the last question.&amp;nbsp; I don't think so.&amp;nbsp;&amp;nbsp;&amp;nbsp; This sample was highly reduced. so i was able to upload it.&amp;nbsp;&amp;nbsp;&amp;nbsp; So it contains 6 months of sales. or so..&amp;nbsp; But the budget contains&amp;nbsp; 12 months of budgets for all existing customers.&amp;nbsp; so all customers with a minimum of 12 date per customer.&amp;nbsp; That is a lot of records.&amp;nbsp; so on the top off my mind i don't think it's unnatural that it's bigger in this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reading your response made me think about how the Canonical calendar Works.&amp;nbsp; And if i understand it correct.&amp;nbsp; it's basicly&amp;nbsp; telling qlikview which orderID's to sum on. given a selected canonical date right?&amp;nbsp; So my second attempt was failing since i added a "static" OrderId for the forecast(i got the full budget in all months)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company &amp;amp; '0-0-0'&amp;nbsp; as orderid.&amp;nbsp; So all lines had the same OrderID.. so when selecting a calendardate. It would show the total. Since it was selecting the "unique" order ID, which were on Every single record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i create a Unique OrderID for all records. then now it's working.&amp;nbsp; The OrderID dosn't need to match the orderID's in the sales table correct?&amp;nbsp; I just need a field called OrderID. so the canonical calender call tell qlikview the "unique" sum criteria..&amp;nbsp; Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well now it's working.. But from your response, I'm now thinking if this is the wrong way to do it.&amp;nbsp; If i could avoid the Syn key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 6 forecasts(just 1 in the sample).. Can i simply concatenate them all into the sales table?&amp;nbsp; Would this be a better praxis?&amp;nbsp; And i thought i need the same fields in the to table which are to be concatenated?&amp;nbsp; Also since i don't have alot of the fields which i need to create a unique sales ORDERID, in my budgets.&amp;nbsp; since i budget on a customer level.. but the sales are down to orderline level.. how will i then create a UNIQUE key for all the lines in the new concanated sales table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a new sample.&amp;nbsp; where it's&amp;nbsp; now "working". but maybe not in the Correct way??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398076#M613509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T08:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398077#M613510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be better to concatenate all forecasts with the sales table into one big fact table. And no, you don't need to have all fields identical to concatenate. The Concatenation will match fields that are named the same and pad the others with NULLs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a REALLY unique OrderLineID, you could use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RowNo() as &lt;SPAN style="font-size: 13.3333px;"&gt;OrderLineID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but I think that what you are doing now is sufficient. It has a grain fine enough to pick out the right records: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Company &amp;amp; '-' &amp;amp; OrderType &amp;amp; '-' &amp;amp; OrderNumber &amp;amp; '-' &amp;amp; OrderLineNumber as OrderLineID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Company &amp;amp; '-' &amp;amp; CalendarDate &amp;amp;'-' &amp;amp; SellToCustomer&amp;nbsp; &amp;amp;'-1' as OrderLineID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398077#M613510</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2017-09-20T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398078#M613511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I can't do both??&amp;nbsp; Should i then do an IF statement?&amp;nbsp;&amp;nbsp; IF Len(Invoicedate) = 0&amp;nbsp; then one kind of orderID.&amp;nbsp; Else the other?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398078#M613511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T11:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398079#M613512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use the definitions of OrderLineID that you have. And both the Sales table and the Budget table have well defined InvoiceDates, so I don't see why you would need an If() function...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398079#M613512</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2017-09-20T11:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical Calendar Challenges</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398080#M613513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't use both kind of ORDERID'S&amp;nbsp; how does it then create unique ID's?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in sales right now. on of the "crucial" fields for creating a unique key are&amp;nbsp; the Orderline number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the forecasts'&amp;nbsp; it's the selltocustomer and date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if i understand you correct. i will simply&amp;nbsp; add more fields to the string. so it would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;company &amp;amp; sellto &amp;amp; date &amp;amp; order &amp;amp; orderline&amp;nbsp; as orderID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the replies..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-Calendar-Challenges/m-p/1398080#M613513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-20T13:34:00Z</dc:date>
    </item>
  </channel>
</rss>

