<?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: Calculations through a date-bridge table! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882534#M658957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, well ac_registr is not date dependant. So, for one particular value, which relates to a number of utilisation dates, you have each record related to all canonical dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest that ac_registr is not a good candidate here for your key field. Maybe in combination with utilisation date as a composite key it would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the start of your Utilization load change it to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Utilization:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ac_registr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '_' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UtilizationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%KeyACUtil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ac_registr, UtilizationDate, daily_cycles, &lt;BR /&gt; TFA,1-1-2013,1&lt;BR /&gt; TFA,2-1-2013,1&lt;BR /&gt; TFA,4-1-2013,1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And change your Datebridge load to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Datebridge:&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ac_registr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '_' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UtilizationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%KeyACUtil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UtilizationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CanonicalDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,'UtilizationDate' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Utilization; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 11:38:54 GMT</pubDate>
    <dc:creator>marcus_malinow</dc:creator>
    <dc:date>2015-04-22T11:38:54Z</dc:date>
    <item>
      <title>Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882531#M658954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QlikView friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to ask a question regarding setting up formulas for a graph when using a date bridge table. Below there is the mapping I have made. It contains the Utilization table with information, attached to its own calendar. Throught a datebridge(link) connected to the canonical calendar. (I will connect more dates to the bridge later)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="84311" alt="IssueTable.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84311_IssueTable.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Script for this:&lt;/P&gt;&lt;P&gt;---------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Utilization:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD ac_registr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;operator,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; daily_cycles,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; daily_hours,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tah ;&lt;/P&gt;&lt;P&gt;SQL SELECT ac_registr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; departure_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; daily_cycles,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; daily_hours,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tah&lt;/P&gt;&lt;P&gt;FROM database;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Datebridge:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ac_registr&lt;/P&gt;&lt;P&gt;,UtilizationDate as CanonicalDate&lt;/P&gt;&lt;P&gt;,'UtilizationDate' as DateType&lt;/P&gt;&lt;P&gt;RESIDENT Utilization;&lt;/P&gt;&lt;P&gt;------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here is the issue, I want to create graphs related to the CanonicalCalendar. The Utilization and Canonical Calendar should have the same values, but as you can see they differ when I set up the same graph. I am aware I might have to use a different expresion, Ive tried many such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateType={UtilizationDate}&amp;gt;}daily_cycles)&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; Althought this gives the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea as to what expression to use for the canonical graph to work properly? I has to look up the daily_cycles field somehow, is this even possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="84313" alt="IssueGraph.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/84313_IssueGraph.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 10:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882531#M658954</guid>
      <dc:creator />
      <dc:date>2015-04-22T10:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882532#M658955</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;it looks like your values of ac_registr are related to CanonicalDates in both January and February.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you post some sample data maybe we can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 10:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882532#M658955</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-22T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882533#M658956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello thank you for offering help, I have attached a sample example in the main post!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: This is a very small sample, there are for example more ac_registr. But I kept it simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:28:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882533#M658956</guid>
      <dc:creator />
      <dc:date>2015-04-22T11:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882534#M658957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, well ac_registr is not date dependant. So, for one particular value, which relates to a number of utilisation dates, you have each record related to all canonical dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest that ac_registr is not a good candidate here for your key field. Maybe in combination with utilisation date as a composite key it would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the start of your Utilization load change it to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Utilization:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ac_registr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '_' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UtilizationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%KeyACUtil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ac_registr, UtilizationDate, daily_cycles, &lt;BR /&gt; TFA,1-1-2013,1&lt;BR /&gt; TFA,2-1-2013,1&lt;BR /&gt; TFA,4-1-2013,1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And change your Datebridge load to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Datebridge:&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ac_registr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '_' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UtilizationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%KeyACUtil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UtilizationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CanonicalDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,'UtilizationDate' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Utilization; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882534#M658957</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-22T11:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882535#M658958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Marcus that seems to work nicely, however this works if there is only one table with ac_registr. Otherwise loops will occur, which is an issue I have. I would have to rename ac_registr to ac_registr1 to prevent loops from happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my full QVW I have 6 tables with ac_registr which all go to the datebridge, is there any way I could work my way arround this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882535#M658958</guid>
      <dc:creator />
      <dc:date>2015-04-22T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882536#M658959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;in that case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - add ac_registr to the Datbridge table load - in addition to %KeyACUtil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - after the Datebridge load, DROP FIELD ac_registr FROM Utilization&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882536#M658959</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-22T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882537#M658960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You sir are my hero of the day! Thank you for your help! Greetings from the Netherlands&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882537#M658960</guid>
      <dc:creator />
      <dc:date>2015-04-22T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations through a date-bridge table!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882538#M658961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, happy to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 14:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculations-through-a-date-bridge-table/m-p/882538#M658961</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2015-04-22T14:04:40Z</dc:date>
    </item>
  </channel>
</rss>

