<?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: Problem while retrieving data linked to a Canonical date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136643#M911349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right. In the case above I selected the year of 2016 for DATE_CASH / Date_COST. Now, when I select the Year in Canonical Date it appears as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CApture clear.PNG" class="jive-image image-1" src="/legacyfs/online/126999_CApture clear.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Do you have an Idea where I put a new ID key? COST table or CASHFLOW table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2016 19:25:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-06T19:25:42Z</dc:date>
    <item>
      <title>Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136639#M911345</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 having a problem while creating a canonical date. I don't know whether it is about the creation of canonical date itself or data modeling.&lt;A href="https://community.qlik.com/qlik-blogpost/3585" target="_blank"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the data Structure before creation of canonical date:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126984_test.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now there is the data after the creation of canonical date:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="After.PNG" class="jive-image image-2" height="380" src="https://community.qlik.com/legacyfs/online/126985_After.PNG" style="height: 379.565px; width: 505px;" width="505" /&gt;&lt;/P&gt;&lt;P&gt;For looking a the tables everything seems ok, so far. &lt;/P&gt;&lt;P&gt;Here is the script to date creation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Datelink:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; [S/N],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; DATE_CASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Date,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; 'CASH'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as DateType&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident CASHFLOW;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; [S/N],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; Date_COST as Date,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; 'Cost'&amp;nbsp;&amp;nbsp; as DateType&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Resident COST;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Call CalendarFromField('Date', 'CommonCalendar','');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Call CalendarFromField('Date_COST', 'CostCalendar','Cost');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Call CalendarFromField('DATE_CASH', 'RevenueCalendar','Revenue');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I would like to do is to show values of CASHFLOW and US$ fields for a chosen date, which comes from common calendar, provided by datelink.However I am getting the sum of all the years replicated in a chart as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-3" height="206" src="https://community.qlik.com/legacyfs/online/126986_Untitled.png" style="height: 206.416px; width: 388px;" width="388" /&gt;&lt;/P&gt;&lt;P&gt;Dimension: YEAR &lt;/P&gt;&lt;P&gt;Expressions: &lt;/P&gt;&lt;P&gt;sum({$&amp;lt;DateType={'COST'}&amp;gt;}US$)&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;DateType={'CASH'}&amp;gt;}CASHFLOW )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what is the problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136639#M911345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136640#M911346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is S/N granular enough to represent the single Amounts of COST and CASH on these dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compare to HIC's blog post, where the link between the DateLink table and the facts is OrderLineID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 18:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136640#M911346</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-06T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136641#M911347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="SErial.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126992_SErial.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Yes, it is all granular, as seen above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 18:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136641#M911347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T18:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136642#M911348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select a value in Date field, only the same value should be possible (white) in fields Date_COST / DATE_CASH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you will see a lot more values, because your S/N field is not granular &lt;EM&gt;enough&lt;/EM&gt; to link the DateLink table with your fact tables. You would need to use something like a record ID as key field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136642#M911348</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-06T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136643#M911349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right. In the case above I selected the year of 2016 for DATE_CASH / Date_COST. Now, when I select the Year in Canonical Date it appears as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CApture clear.PNG" class="jive-image image-1" src="/legacyfs/online/126999_CApture clear.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Do you have an Idea where I put a new ID key? COST table or CASHFLOW table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136643#M911349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T19:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136644#M911350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is ID_CASH and ID_COST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered concatenating your fact tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136644#M911350</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-06T19:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136645#M911351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;ID_CASH = 'ACTUAL' or 'PAST' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;ID_COST = RowNo()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Not Yet, But I will try to do that.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136645#M911351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T19:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136646#M911352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try concatenating your two fact tables and while concatenating, create a new field Date by renaming your cost resp. cash date field (you then don't need the DateLink table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 19:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136646#M911352</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-06T19:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while retrieving data linked to a Canonical date</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136647#M911353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. It solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2016 20:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-while-retrieving-data-linked-to-a-Canonical-date/m-p/1136647#M911353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-06T20:05:09Z</dc:date>
    </item>
  </channel>
</rss>

