<?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 Date Dimension Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374632#M139519</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'm looking for a bit of help around date dimensions - here's the scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table called "Support Calls" and there are two dates in it - createdon and closedon. I have created a calendar table defining dates such as fiscal year, month, month/year etc. At present I have only linked the calendar script/table to the createdon field but I want to be able to link it to both createdon and closedon so the user can select one date and see how many calls were created and how many were closed on that day,month or whatever. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect it's something to do with a link table but I'm quite new to linked tables so I was hoping for some pointers. Can anyone help? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2012 13:48:05 GMT</pubDate>
    <dc:creator>stuwannop</dc:creator>
    <dc:date>2012-06-29T13:48:05Z</dc:date>
    <item>
      <title>Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374632#M139519</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'm looking for a bit of help around date dimensions - here's the scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table called "Support Calls" and there are two dates in it - createdon and closedon. I have created a calendar table defining dates such as fiscal year, month, month/year etc. At present I have only linked the calendar script/table to the createdon field but I want to be able to link it to both createdon and closedon so the user can select one date and see how many calls were created and how many were closed on that day,month or whatever. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect it's something to do with a link table but I'm quite new to linked tables so I was hoping for some pointers. Can anyone help? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 13:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374632#M139519</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-06-29T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374633#M139520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search this forum for use of IntervalMatch(). That will do what you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 14:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374633#M139520</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-29T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374634#M139521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a read up on Intervalmatch and I'm not sure if it's what I want (either that or I don't understand it properly). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intervalmatch, by the looks of it, would show me all calls between two dates but that's not really what I'm looking for. What I want to do is this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID, createdon, modifiedon&lt;/P&gt;&lt;P&gt;123,01/08/2012,01/08/2012&lt;/P&gt;&lt;P&gt;1234, 30/07/2012, 01/08/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I selected 01/08/2012 from a master calendar and then counted the number of calls modified on that date it would return 2, the number of calls created would be 1. I'm not sure how I can get intervalmatch to work for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 15:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374634#M139521</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-07-02T15:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374635#M139522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Stuart - I misunderstood before. Yes, you will need a link table. Try this in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SupportCalls:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Other fields ...not dates,&lt;/P&gt;&lt;P&gt;From...SupportCalls data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;ModifiedDate AS KeyDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Modified' AS DateType&lt;/P&gt;&lt;P&gt;From...Support calls data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (Link)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;CreatedDate AS KeyDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;'Created' AS DateType&lt;/P&gt;&lt;P&gt;From...Support calls data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load.....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to get calls created in a chart, your expression should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;DateType={Created}&amp;gt;} Distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: if you have a large data set then extract the IDs into a separate table with a counter column and use SUM() instead of Count(Distinct) for better performance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 19:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374635#M139522</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-02T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374636#M139523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Jason I probably haven't been clear on what I wanted!&amp;nbsp; - I'll give that a whirl and let you know how I get on. &lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 09:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374636#M139523</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-07-04T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374637#M139524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi stuwannop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID AS [createdon ID],&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; createdon AS Date&lt;/P&gt;&lt;P&gt;from table.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ID AS [modifiedon ID],&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; modifiedon AS Date&lt;/P&gt;&lt;P&gt;from table.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD Date&lt;/P&gt;&lt;P&gt;from Calendar;&lt;/P&gt;&lt;P&gt;*************************************************&lt;/P&gt;&lt;P&gt;then count( [createdon ID]) to count&amp;nbsp; createdon date's&amp;nbsp; IDs &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;count( [modifiedonID]) to count modifiedon date's&amp;nbsp; IDs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selection of a date from the calendar you will get both IDs related to that date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Regards&lt;/P&gt;&lt;P&gt;Apurva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 10:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374637#M139524</guid>
      <dc:creator />
      <dc:date>2012-07-04T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374638#M139525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help guys - with your help I've just created my first link table - better still, I understand it! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks and have a good day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 13:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374638#M139525</guid>
      <dc:creator>stuwannop</dc:creator>
      <dc:date>2012-07-04T13:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374639#M139526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem.&amp;nbsp; As a last bit of advice, don't use link tables unless you absolutely have to.&amp;nbsp; By their very nature they introduce more joins and although sometimes they are necessary, I would always try and find a traditional method first. Although, like everything with QlikView you need to balance any other solution as it may be worse!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 14:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Dimension-Help/m-p/374639#M139526</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-04T14:07:03Z</dc:date>
    </item>
  </channel>
</rss>

