<?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: Two dates in same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476036#M177773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually create a master calendar then reload it resident qualified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar1:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date(TempDate) as CalendarDate,&lt;/P&gt;&lt;P&gt;Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;Year(TempDate) as Year&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar2:&lt;/P&gt;&lt;P&gt;LOAD * Resident Calendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME FIELD Calendar2.CalendarDate to ShipDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 16:21:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-07T16:21:15Z</dc:date>
    <item>
      <title>Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476035#M177772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to manage two dates in a single table with single calender?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476035#M177772</guid>
      <dc:creator />
      <dc:date>2014-01-07T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476036#M177773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually create a master calendar then reload it resident qualified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar1:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Date(TempDate) as CalendarDate,&lt;/P&gt;&lt;P&gt;Month(TempDate) as Month,&lt;/P&gt;&lt;P&gt;Year(TempDate) as Year&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar2:&lt;/P&gt;&lt;P&gt;LOAD * Resident Calendar;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RENAME FIELD Calendar2.CalendarDate to ShipDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476036#M177773</guid>
      <dc:creator />
      <dc:date>2014-01-07T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476037#M177774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petrova,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have to build charts for either of those two dates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; I have one chart where I had a similar scenario: For each distinct event in the list, there were two dates:&lt;/P&gt;&lt;P&gt;- the day it happened&lt;/P&gt;&lt;P&gt;- the day it was reported&lt;/P&gt;&lt;P&gt;=&amp;gt; I had to build one chart for either of those.&lt;/P&gt;&lt;P&gt;=&amp;gt; I would have had to link the table to my master_calendar twice via the two different fieldsf&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; That cannot be done in QlikView, you can link only once via one or several field(s).&lt;/P&gt;&lt;P&gt;=&amp;gt; so I ended up generating a (smaller) alternative calendar for that chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476037#M177774</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-01-07T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476038#M177775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It´s a tricky question.&lt;/P&gt;&lt;P&gt;What kind of selections you want to make into your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 16:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476038#M177775</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-07T16:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476039#M177776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load *, Date1 as Date, 'Date1' as DateFlag Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *, Date2 as Date, 'Date2' as DateFlag Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now link this concatnated table with your Calender Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in front end, when ever you want data for Date1, then use setanalysis: DateFlag={'Date1'} and vice versa for Date2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 09:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476039#M177776</guid>
      <dc:creator>brijesh1991</dc:creator>
      <dc:date>2014-01-09T09:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476040#M177777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should load the Calendar several times, once per date. See &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/08/30/master-table-with-multiple-roles&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to have one, generic date, you should do it the way &lt;A href="https://community.qlik.com/qlik-users/102685"&gt;Brijesh Gadhesariya&lt;/A&gt; suggests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 11:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476040#M177777</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-09T11:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476041#M177778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Henric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use multiple calendars it makes it more difficult to use the same date dimension in one bar and use one selection to affect multiple dates.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count the # of orders shipped and the # of orders placed in one bar for each week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a linked table to do this, then set analysis to determine which date.&amp;nbsp; I have not found a better way.&amp;nbsp; I do this with many of my dashboards to allow the user to use one list box for each date dimension and to allow multiple expressions for one date dimension in charts.&amp;nbsp; If you know of a better way, please share.&amp;nbsp; We have one client who has 9 dates per record to follow the process of an application from receipt to funded.&amp;nbsp; It does create a long link table but only 3 columns wide and filtered to only those records that contain dates for that particular date field.&amp;nbsp; See below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load the sales table then load the link table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; %Key is the unique identifier in the sales table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LInk:&lt;/P&gt;&lt;P&gt;Load %Key&lt;/P&gt;&lt;P&gt;ShippedDate as %DateKey&lt;/P&gt;&lt;P&gt;“Shipped” as DateType&lt;/P&gt;&lt;P&gt;resident sales&lt;/P&gt;&lt;P&gt;where len(Shipped Date) &amp;gt; 1;&lt;/P&gt;&lt;P&gt;Load %Key&lt;/P&gt;&lt;P&gt;OrderedDate as %DateKey&lt;/P&gt;&lt;P&gt;“Ordered” as DateType&lt;/P&gt;&lt;P&gt;resident sales&lt;/P&gt;&lt;P&gt;where len(OrderedDate) &amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ONE master calendar with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%DateKey as unique key&lt;/P&gt;&lt;P&gt;and all date dimensions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions in chart would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DateType = {'Shipped'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DateType = {'Ordered'}&amp;gt; Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension for bar chart can be WeekEnding, Month, etc...&amp;nbsp; YOu are now seeing both the $ amount shipped and the $ amount ordered in one bar chart, stacked or grouped.&amp;nbsp; Works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debbie Pyykkonen&lt;/P&gt;&lt;P&gt;Archipelago IS, LLC | Director, Business Analytics| www.archipelagois.com&lt;/P&gt;&lt;P&gt;303 S. Broadway, Suite 200-169 | Denver, Colorado&amp;nbsp; 80209&lt;/P&gt;&lt;P&gt;Twitter | LinkedIn | Facebook |&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(: 303-304-6425 |&amp;nbsp; *: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:dpyykkonen@archipelagois.com"&gt;dpyykkonen@archipelagois.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out our&amp;nbsp; Workshops and Events!&lt;/P&gt;&lt;P&gt;Download QlikView for FREE!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476041#M177778</guid>
      <dc:creator />
      <dc:date>2014-01-09T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476042#M177779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petrova,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use set analysis in each expression. This way you can handle several dates in the same table diregarding the selection of the date in the calendar filter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={2013}&amp;gt;} Sales ) &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={2014}&amp;gt;} Sales ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476042#M177779</guid>
      <dc:creator />
      <dc:date>2014-01-09T15:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476043#M177780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right that with multiple calendars it is m&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;ore difficult to use the same date dimension in the chart. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for that purpose you can create a generic date your way (which basically is the same as Brijesh's solution). However, if you do this, then one specific order dollar will be linked to two dates, and you need to use Set analysis to define your expressions, e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;[Date Type]='Shipped'&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with a generic date you cannot make selections like "Ordered in Jan, and Shipped in Feb". For this you need multiple calendars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily, you can use both ways simultaneously in the same app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476043#M177780</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-01-09T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476044#M177781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jaime, your solution doesn't take into account the different date fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476044#M177781</guid>
      <dc:creator />
      <dc:date>2014-01-09T15:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in same table</title>
      <link>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476045#M177782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brijesh &amp;amp; Henricc&lt;/P&gt;&lt;P&gt;Good to know someone else is doing the same thing.&amp;nbsp; I get a lot of questions on why I do this so will bookmark this link for future reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 15:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-dates-in-same-table/m-p/476045#M177782</guid>
      <dc:creator />
      <dc:date>2014-01-09T15:40:58Z</dc:date>
    </item>
  </channel>
</rss>

