<?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 Converting a single date field into 2 fields as StartDate and EndDate in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140747#M751107</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 new to QlikView.I'm trying to split a date field into 2 fields but I cannot do it. I searched on the community but could not find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below table as input. Date format is DD-MM-YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load * Inline[&lt;/P&gt;&lt;P&gt;EmpId, Location, Date&lt;/P&gt;&lt;P&gt;1,Hyderabad,01-01-2017&lt;/P&gt;&lt;P&gt;2, Mumbai, 01-01-2017&lt;/P&gt;&lt;P&gt;1, Hyderabad, 01-12-2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to divide the Date field into StartDate and EndDate based on EmpId field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required output should be like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 477px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="121"&gt;EmpId&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="162"&gt;Location&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="121"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="73"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Hyderabad&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-01-2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-12-2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Mumbai&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-01-2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>shashipraband</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Converting a single date field into 2 fields as StartDate and EndDate</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140747#M751107</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 new to QlikView.I'm trying to split a date field into 2 fields but I cannot do it. I searched on the community but could not find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below table as input. Date format is DD-MM-YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load * Inline[&lt;/P&gt;&lt;P&gt;EmpId, Location, Date&lt;/P&gt;&lt;P&gt;1,Hyderabad,01-01-2017&lt;/P&gt;&lt;P&gt;2, Mumbai, 01-01-2017&lt;/P&gt;&lt;P&gt;1, Hyderabad, 01-12-2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to divide the Date field into StartDate and EndDate based on EmpId field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required output should be like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 477px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="121"&gt;EmpId&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="162"&gt;Location&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="121"&gt;StartDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="73"&gt;EndDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Hyderabad&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-01-2017&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-12-2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Mumbai&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-01-2017&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to solve this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140747#M751107</guid>
      <dc:creator>shashipraband</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a single date field into 2 fields as StartDate and EndDate</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140748#M751108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if data like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Temp:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * Inline[&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EmpId, Location, Date&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1,Hyderabad,01-01-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2,Hyderabad,07-01-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2, Mumbai, 01-01-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2, Mumbai, 07-01-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2, Mumbai, 10-01-2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1, Hyderabad, 01-12-2017&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 02:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140748#M751108</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-30T02:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a single date field into 2 fields as StartDate and EndDate</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140749#M751109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Slashi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See possible solution below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;Load * Inline[&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpId, Location, Date&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,Hyderabad,01-01-2017&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, Mumbai, 01-01-2017&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Hyderabad, 01-12-2017&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StartEndDate:&lt;BR /&gt;Left Join (Temp)&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpId,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(StartDate &amp;lt;&amp;gt; EndDate, EndDate) AS EndDate;&lt;BR /&gt;Load&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpId,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Min(Date#(Date, 'MM-DD-YYYY')),'MM-DD-YYYY') AS StartDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Max(Date#(Date, 'MM-DD-YYYY')),'MM-DD-YYYY') AS EndDate&lt;BR /&gt;Resident Temp&lt;BR /&gt;Group BY EmpId; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vitalii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140749#M751109</guid>
      <dc:creator>vitaliichupryna</dc:creator>
      <dc:date>2018-10-30T13:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a single date field into 2 fields as StartDate and EndDate</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140750#M751110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this in the front-end of the application by adding a chart with EmpId &amp;amp; Location as dimensions and two expressions StartDate = min(Date)&amp;nbsp; and EndDate = max(Date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpId, Location, date#(Date, 'DD-MM-YYYY') as Date&lt;/P&gt;&lt;P&gt;Inline[&lt;/P&gt;&lt;P&gt;EmpId, Location, Date&lt;/P&gt;&lt;P&gt;1,Hyderabad,01-01-2017&lt;/P&gt;&lt;P&gt;2,Hyderabad,07-01-2017&lt;/P&gt;&lt;P&gt;2, Mumbai, 01-01-2017&lt;/P&gt;&lt;P&gt;2, Mumbai, 07-01-2017&lt;/P&gt;&lt;P&gt;2, Mumbai, 10-01-2017&lt;/P&gt;&lt;P&gt;1, Hyderabad, 01-12-2017&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(min(Date)) as StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(max(Date)) as EndDate&lt;/P&gt;&lt;P&gt;resident Temp&lt;/P&gt;&lt;P&gt;group by EmpId,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:37:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140750#M751110</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-10-30T13:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a single date field into 2 fields as StartDate and EndDate</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140751#M751111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vitalii,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;That is perfect, thank you.&amp;nbsp; This worked great!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140751#M751111</guid>
      <dc:creator>shashipraband</dc:creator>
      <dc:date>2018-10-30T17:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a single date field into 2 fields as StartDate and EndDate</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140752#M751112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Colin, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your instructions, I could do this in front-end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-single-date-field-into-2-fields-as-StartDate-and/m-p/140752#M751112</guid>
      <dc:creator>shashipraband</dc:creator>
      <dc:date>2018-10-30T17:37:41Z</dc:date>
    </item>
  </channel>
</rss>

