<?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: Three dates in one table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661498#M730683</link>
    <description>&lt;P&gt;Check the following Design Blog post, I think you are misunderstanding the Canonical Date use case...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 14:19:40 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-12-30T14:19:40Z</dc:date>
    <item>
      <title>Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661200#M730678</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have below data with 3 dates. I am unable to use the&amp;nbsp;canonical date as i don't have the single common field for 3 dates. so please suggest how can i handle these dates in data Modelling&amp;nbsp; and restrict the dates last 2 dates(ex:9/30/2018,10/31/2018)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Case Number&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Closed Date&lt;/TD&gt;&lt;TD&gt;Opened Date&lt;/TD&gt;&lt;TD&gt;8/31/2018&lt;/TD&gt;&lt;TD&gt;9/30/2018&lt;/TD&gt;&lt;TD&gt;10/31/2018&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1234&lt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0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661200#M730678</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2024-11-16T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661202#M730679</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;tmp1:
CrossTable(Date, Data, 4)
LOAD *
FROM [https://community.qlik.com/t5/New-to-QlikView/Three-dates-in-one-table/td-p/1661200]
(html, codepage is 1252, embedded labels, table is @1);

NoConcatenate

final:
Load * Resident tmp1 Where autonumber(Date)&amp;gt;=2; DROP table tmp1;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 28 Dec 2019 22:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661202#M730679</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-12-28T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661209#M730680</link>
      <description>&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;But i need a common date field for 3 dates(Closed Date, Opened Date and (8/31/2018 9/30/2018 10/31/2018) after cross function so that i can filter the data with&amp;nbsp;common date field&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 05:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661209#M730680</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2019-12-29T05:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661257#M730681</link>
      <description>&lt;P&gt;i think you should consider using master calendar and connecting all 3 datefields to this&amp;nbsp; calendartable. then using the mastercalenderdatefield for filtering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Creating-A-Master-Calendar/td-p/341286" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Creating-A-Master-Calendar/td-p/341286&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 19:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661257#M730681</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-12-29T19:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661278#M730682</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;Thanks for your reply, But&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. i can't use single master calendar for 3 dates&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Can't create 3 master calendar as 3 dates should be shown in single pivot table&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Can't create canonical date as i don't have single common field for 3 dates&lt;/P&gt;&lt;P&gt;Still i need create a common calendar for 3 dates to filter data. please suggest. Expected o/p is shown in attachment&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Dec 2019 08:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661278#M730682</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2019-12-30T08:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661498#M730683</link>
      <description>&lt;P&gt;Check the following Design Blog post, I think you are misunderstanding the Canonical Date use case...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Canonical-Date/ba-p/1463578&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 14:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661498#M730683</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-30T14:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661699#M730684</link>
      <description>&lt;P&gt;From the link&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;First you must find a table with a grain fine enough; a table where each record only has one value of each date type associated. In my example this would be the OrderLines table, since a &lt;STRONG&gt;specific order line uniquely defines all three dates.&amp;nbsp;"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My data doesn't have a single common filed for 3 dates. so canonical date concept is not working. please let me know if still this works for me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 12:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661699#M730684</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2019-12-31T12:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661834#M730685</link>
      <description>&lt;P&gt;i managed to get the solution by creating a flag and master calendar&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2020 07:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1661834#M730685</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2020-01-01T07:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Three dates in one table</title>
      <link>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1662663#M730686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Case Number, Region , Closed Date, Opened Date&lt;BR /&gt;1234, North, 30-08-2018, 30-08-2018&lt;BR /&gt;1243, North, 30-09-2018, 30-09-2018&lt;BR /&gt;1245, South, 31-10-2018, 31-10-2018&lt;BR /&gt;1254, South, 30-08-2018, 30-08-2018&lt;BR /&gt;1123, East, 30-09-2018, 31-10-2018&lt;BR /&gt;1232, West, 31-10-2018, 31-10-2018&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;close:&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;[Case Number],&lt;BR /&gt;Region,&lt;BR /&gt;Date(Date#([Opened Date],'DD-MM-YYYY'),'M/D/YYYY') as &lt;STRONG&gt;NDate&lt;/STRONG&gt;,&lt;BR /&gt;[Closed Date],&lt;BR /&gt;[Opened Date],&lt;BR /&gt;'Close' as Flag&lt;BR /&gt;Resident Test;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;[Case Number],&lt;BR /&gt;Region,&lt;BR /&gt;[Closed Date],&lt;BR /&gt;[Opened Date],&lt;BR /&gt;Date(Date#([Opened Date],'DD-MM-YYYY'),'M/D/YYYY') as NDate,&lt;BR /&gt;'Open' as Flag&lt;BR /&gt;Resident Test;&lt;BR /&gt;&lt;BR /&gt;drop Table Test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateRange:&lt;BR /&gt;Load&lt;BR /&gt;min(Date(NDate),'M/D/YYYY') as MinDate,&lt;BR /&gt;max(Date(NDate),'M/D/YYYY') as MaxDate&lt;BR /&gt;Resident close;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let varMinDate = num(Peek('MinDate',0,'DateRange'));&lt;BR /&gt;Let varMaxDate = num(Peek('MaxDate',0,'DateRange'));&lt;/P&gt;&lt;P&gt;TempCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt;date($(varMinDate)+RowNo()-1) AS TempDate&lt;BR /&gt;AUTOGENERATE $(varMaxDate)- $(varMinDate) + 1 ;&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;Load&lt;BR /&gt;TempDate As &lt;STRONG&gt;NDate&lt;/STRONG&gt;,&lt;BR /&gt;Week(TempDate) As Week,&lt;BR /&gt;Year(TempDate) As Year,&lt;BR /&gt;Month(TempDate) As Month&lt;BR /&gt;resident TempCalendar Where Exists([Opened Date],TempDate) ;&lt;/P&gt;&lt;P&gt;DROP Table TempCalendar;&lt;BR /&gt;DROP Table DateRange;&lt;/P&gt;&lt;P&gt;From above script,&amp;nbsp;&lt;STRONG&gt;NDate&amp;nbsp;&lt;/STRONG&gt;is the key between two tables. Can i use the NDate(whch is keyfield) in the front end expressions/as a dimension ?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 08:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Three-dates-in-one-table/m-p/1662663#M730686</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2020-01-05T08:23:25Z</dc:date>
    </item>
  </channel>
</rss>

