<?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: Re: date duplication error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566462#M211335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;In the code you posted, a snippet like this would generate Current and Last YTD flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,InYearToDate([$(_field)], DateMax, 0) *-1 as [$(_prefix)CurYTD]&lt;/P&gt;&lt;P&gt;,InYearToDate([$(_field)], DateMax, -1) * -1 as [$(_prefix)LastYTD]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would also need to add "DateMax" in the lower load as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually use Set Analysis for YTD/LYTD analysis instead of flags. I use the &lt;A href="http://qlikviewcomponents.org/" title="http://qlikviewcomponents.org/"&gt;qlikview-components - A script library for Qlikview development &lt;/A&gt; Calendar routine which generates a pretty good setup for point in time analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://mastersummit.com"&gt;http://mastersummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 23:49:39 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2014-02-13T23:49:39Z</dc:date>
    <item>
      <title>date duplication error</title>
      <link>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566458#M211331</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;i am faced with the following.After having created a link table for my two dates&lt;/P&gt;&lt;P&gt;1. Invoice Date&lt;/P&gt;&lt;P&gt;2. Order Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am now faced with a serious issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data is been duplicated to the highest date number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" height="177" src="https://community.qlik.com/legacyfs/online/52913_pastedImage_0.png" style="width: 480.339px; height: 177px;" width="480" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cannot understand this behavior. All the keys are unique and the data is residing in different tables. I have attached my application for further analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 22:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566458#M211331</guid>
      <dc:creator />
      <dc:date>2014-02-10T22:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: date duplication error</title>
      <link>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566459#M211332</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;I am not able to replicate the same issue if I add &lt;STRONG&gt;Date Type&lt;/STRONG&gt; also.Can you try that once ?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image 2.png" class="jive-image" src="/legacyfs/online/52919_Image 2.png" style="width: 620px; height: 178px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 01:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566459#M211332</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-02-11T01:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: date duplication error</title>
      <link>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566460#M211333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your display is "correct" as is, that is, it displays what I would expect given your data model. You cannot mix InvoiceDate and Date together in the same chart. You are using Year/Month as selectors against the CommonCalendar, which would select a set of "Date". Date links to OrderId, and OrderId links to all InvoiceDate for that OrderId,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is not enough granularity here using only OrderId, A selection in any calendar links via OrderId to all other dates associated with that same OrderId in the other calendar(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume what you want is to be able to select the common Year/Month and show Invoices sent that Month/Year? Remove the InvoiceDate field from your chart. Change the Dimension label to "Invoice Date" if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 05:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566460#M211333</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-11T05:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: date duplication error</title>
      <link>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566461#M211334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob.&lt;/P&gt;&lt;P&gt;a quick one bout the common calender, do you have any code snippets for flags available ie. MTD_LY and LYTD for usage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566461#M211334</guid>
      <dc:creator />
      <dc:date>2014-02-13T20:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: date duplication error</title>
      <link>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566462#M211335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad,&lt;/P&gt;&lt;P&gt;In the code you posted, a snippet like this would generate Current and Last YTD flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,InYearToDate([$(_field)], DateMax, 0) *-1 as [$(_prefix)CurYTD]&lt;/P&gt;&lt;P&gt;,InYearToDate([$(_field)], DateMax, -1) * -1 as [$(_prefix)LastYTD]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would also need to add "DateMax" in the lower load as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually use Set Analysis for YTD/LYTD analysis instead of flags. I use the &lt;A href="http://qlikviewcomponents.org/" title="http://qlikviewcomponents.org/"&gt;qlikview-components - A script library for Qlikview development &lt;/A&gt; Calendar routine which generates a pretty good setup for point in time analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://mastersummit.com"&gt;http://mastersummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 23:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-duplication-error/m-p/566462#M211335</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-13T23:49:39Z</dc:date>
    </item>
  </channel>
</rss>

