<?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 Canonical date - duplicated results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781203#M1046444</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 fairly new to Qlikview, and was hoping to get some help on the following question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to create a "canonical date" (as reffered in a post which i read), my motivation of doing it is i have 3 different dimension of dates, that i want to insert into a single calendar table, that enables breakdown by creating a flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 dates: (the industry is online advertising)&lt;/P&gt;&lt;P&gt;1. Sale date&lt;/P&gt;&lt;P&gt;2. Activation date&lt;/P&gt;&lt;P&gt;3. Click date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that i see larger results than i have, so i believe i am duplicating results somehow,&lt;/P&gt;&lt;P&gt;i have a feeling it should be on the 3rd load statement,&lt;/P&gt;&lt;P&gt;therefore, i add a distinc, but apperantly it didn't solved it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_Type:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; JobId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(daystart(SaleDate)) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SaleDate' as DateType&lt;/P&gt;&lt;P&gt;Resident FactMonthlyConversion;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; JobId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(daystart(ActivationDate)) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ActivationDate' as DateType&lt;/P&gt;&lt;P&gt;Resident FactActivations;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; distinct JobId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClickDate as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ClickDate' as DateType&lt;/P&gt;&lt;P&gt;Resident FactJobPerformance;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2014 15:20:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-19T15:20:13Z</dc:date>
    <item>
      <title>Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781203#M1046444</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 fairly new to Qlikview, and was hoping to get some help on the following question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to create a "canonical date" (as reffered in a post which i read), my motivation of doing it is i have 3 different dimension of dates, that i want to insert into a single calendar table, that enables breakdown by creating a flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 dates: (the industry is online advertising)&lt;/P&gt;&lt;P&gt;1. Sale date&lt;/P&gt;&lt;P&gt;2. Activation date&lt;/P&gt;&lt;P&gt;3. Click date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that i see larger results than i have, so i believe i am duplicating results somehow,&lt;/P&gt;&lt;P&gt;i have a feeling it should be on the 3rd load statement,&lt;/P&gt;&lt;P&gt;therefore, i add a distinc, but apperantly it didn't solved it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_Type:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; JobId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(daystart(SaleDate)) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SaleDate' as DateType&lt;/P&gt;&lt;P&gt;Resident FactMonthlyConversion;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; JobId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(daystart(ActivationDate)) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ActivationDate' as DateType&lt;/P&gt;&lt;P&gt;Resident FactActivations;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; distinct JobId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClickDate as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'ClickDate' as DateType&lt;/P&gt;&lt;P&gt;Resident FactJobPerformance;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 15:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781203#M1046444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-19T15:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781204#M1046447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the expression you're using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe count(JobId)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, this will result in inflated figures. You should use set analysis to restrict values based on DateType.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;count({$&amp;lt;DateType={'SaleDate'}&amp;gt;} JobId)&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, 19 Nov 2014 15:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781204#M1046447</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-11-19T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781205#M1046448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcus, &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;basically i am using a sum f&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;unction,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;DateType={'ClickDate'}&amp;gt;} TotalClicks)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a feeling that the problem lays in the script, becuase:&lt;/P&gt;&lt;P&gt;the Date_Type key table is composed from 3 tables:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;FactMonthlyConversion (1M rows)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2. FactActivations (10M rows)&lt;/EM&gt;&lt;/P&gt;&lt;ADDRESS&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;3. &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;&lt;EM&gt;FactJobPerformance (42M rows)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/ADDRESS&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the Date_Type table has is larger than the sum of these (see picture attached)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="script log.png" class="jive-image" src="/legacyfs/online/71649_script log.png" style="width: 620px; height: 511px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 15:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781205#M1046448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-19T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781206#M1046449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The DateType table is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is showing a cumulative count of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So 1m for the first load, nearly 11m (1 + 10) for the second, and 52 (1 + 10 + 41) for the third.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a reduced data set so I can look at your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 15:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781206#M1046449</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-11-19T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781207#M1046450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.6000003814697px;"&gt;thanks for helping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in tab "click source", look at the chart, the first expression is the one i am reffering to&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 20:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781207#M1046450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-19T20:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781208#M1046451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;had meant to look at this sooner, but have been busy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't see anything fundamentally wrong there, but really I'd need to see some actual data to be sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate you're probably reluctant to share data, so I'd suggest filtering your data so we can see an example of the issue, then using the 'Reduce Data', 'Keep Possible Values' function. Also you might drop some tables, and scramble your data. If you can do this then upload a document containing some data that would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 13:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781208#M1046451</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-11-24T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781209#M1046452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although it is not what you requested, but i believe it's pointing the issue with a needle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when using the canonical dates, things doesn't add up,&lt;/P&gt;&lt;P&gt;so i mananged to isolate a discrepancy,&lt;/P&gt;&lt;P&gt;if you look the file attached, you can see the canonical date dimension isn't translating dates properly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the attached: &lt;/P&gt;&lt;P&gt;1. SaleDate is the original date&lt;/P&gt;&lt;P&gt;2. Date is the canonical date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while i am using the script above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Love to hear your thoughts,&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 16:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781209#M1046452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-26T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781210#M1046453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, evidently your conversion is not working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(Saledate, 'MM/DD/YYYY') as Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 16:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781210#M1046453</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-11-26T16:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Canonical date - duplicated results</title>
      <link>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781211#M1046454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 14:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Canonical-date-duplicated-results/m-p/781211#M1046454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-30T14:58:03Z</dc:date>
    </item>
  </channel>
</rss>

