<?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: pls check the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325485#M710861</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you given code is working for both INLINE tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am trying to do by field from QVD and INLINE , it is not showing the Distinct Dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls see the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;BR /&gt;LOAD&lt;BR /&gt;CaptureDateTime&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;&lt;D&gt;&lt;BR /&gt;(qvd);&lt;/D&gt;&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 * INLINE &lt;BR /&gt;[CaptureDateTime&lt;BR /&gt;06-05-2011 3:59:59&lt;BR /&gt;07-05-2011 4:59:59&lt;BR /&gt;08-05-2011 5:59:59&lt;BR /&gt;09-05-2011 6:59:59&lt;BR /&gt;10-05-2011 2:59:59&lt;BR /&gt;12-05-2011 7:39:59&lt;BR /&gt;13-05-2011 8:29:59&lt;BR /&gt;14-05-2011 9:19:59&lt;BR /&gt;15-05-2011 10:09:59&lt;BR /&gt;16-05-2011 10:02:59&lt;BR /&gt;16-05-2011 10:09:59 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample2:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD &lt;BR /&gt;Date(CaptureDateTime, 'MM-DD-YYYY') as RepeatCaptureDate,&lt;BR /&gt;SubField(CaptureDateTime, ' ', 1) as DistinctCaptureDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident Sample;&lt;/P&gt;&lt;P&gt;DROP Table Sample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Result for DistinctCaptureDate is shown as below: i.e; from QVD it is not getting the DISTINCT dates.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="CaptureDist.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/5480_CaptureDist.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 09:38:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-28T09:38:49Z</dc:date>
    <item>
      <title>pls check the script</title>
      <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325482#M710858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my file having an two inline tables. These two tables having same fields i.e; DateSelection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here first table having Dates from 29-05-2011 10:59:59 to 31-05-2011 12:59:59.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Second table contains Dates from 01-06-2011 10:59:59 to 16-06-2011 10:09:59.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my requirement is when i select a "DateSelection" in listbox , it should get the dates from 29-05-2011 05:05:55 to 16-06-2011 06:06:55 ( TOTAL 19 DATES SHOULD VISIBLE IN A LISTBOX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i work on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below Script is what i used in Edit-Script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;DatesField,&lt;BR /&gt;Date#(DatesField, 'MM-DD-YYYY') AS REPEAT_DATE,&lt;BR /&gt;SubField(DatesField, ' ', 1) AS CapDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Inline&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[DatesField&lt;BR /&gt;29-05-2011 10:59:59&lt;BR /&gt;30-05-2011 11:59:59&lt;BR /&gt;31-05-2011 12:59:59];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SecondTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;DatesField,&lt;BR /&gt;Date#(DatesField, 'MM-DD-YYYY') AS REPEAT_DATE,&lt;BR /&gt;SubField(DatesField, ' ', 1) AS CapDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;INLINE [&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DatesField&lt;BR /&gt;01-06-2011 10:59:59&lt;BR /&gt;02-06-2011 11:59:59&lt;BR /&gt;03-06-2011 12:59:59&lt;BR /&gt;04-06-2011 1:40:59&lt;BR /&gt;04-06-2011 1:50:59&lt;BR /&gt;05-06-2011 2:59:59&lt;BR /&gt;06-06-2011 3:59:59&lt;BR /&gt;07-06-2011 4:59:59&lt;BR /&gt;08-06-2011 5:59:59&lt;BR /&gt;09-06-2011 6:59:59&lt;BR /&gt;10-06-2011 2:59:59&lt;BR /&gt;12-06-2011 7:39:59&lt;BR /&gt;13-06-2011 8:29:59&lt;BR /&gt;14-06-2011 9:19:59&lt;BR /&gt;15-06-2011 10:09:59&lt;BR /&gt;16-06-2011 10:02:59&lt;BR /&gt;16-06-2011 10:09:59 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand what i am trying to acheive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 05:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325482#M710858</guid>
      <dc:creator />
      <dc:date>2011-06-28T05:32:28Z</dc:date>
    </item>
    <item>
      <title>pls check the script</title>
      <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325483#M710859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if you lost something in Copy/Paste but it looks close to correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;DatesField,&lt;BR /&gt;Date#(DatesField, 'MM-DD-YYYY') AS REPEAT_DATE,&lt;BR /&gt;SubField(DatesField, ' ', 1) AS CapDate;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load * Inline&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[DatesField&lt;BR /&gt;29-05-2011 10:59:59&lt;BR /&gt;30-05-2011 11:59:59&lt;BR /&gt;31-05-2011 12:59:59];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SecondTable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;DatesField,&lt;BR /&gt;Date#(DatesField, 'MM-DD-YYYY') AS REPEAT_DATE,&lt;BR /&gt;SubField(DatesField, ' ', 1) AS CapDate;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DatesField&lt;BR /&gt;01-06-2011 10:59:59&lt;BR /&gt;02-06-2011 11:59:59&lt;BR /&gt;03-06-2011 12:59:59&lt;BR /&gt;04-06-2011 1:40:59&lt;BR /&gt;04-06-2011 1:50:59&lt;BR /&gt;05-06-2011 2:59:59&lt;BR /&gt;06-06-2011 3:59:59&lt;BR /&gt;07-06-2011 4:59:59&lt;BR /&gt;08-06-2011 5:59:59&lt;BR /&gt;09-06-2011 6:59:59&lt;BR /&gt;10-06-2011 2:59:59&lt;BR /&gt;12-06-2011 7:39:59&lt;BR /&gt;13-06-2011 8:29:59&lt;BR /&gt;14-06-2011 9:19:59&lt;BR /&gt;15-06-2011 10:09:59&lt;BR /&gt;16-06-2011 10:02:59&lt;BR /&gt;16-06-2011 10:09:59 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming the dates load correctly like this you should be good to go with the two tables being automatically concatenated into one table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325483#M710859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-28T06:09:47Z</dc:date>
    </item>
    <item>
      <title>pls check the script</title>
      <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325484#M710860</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;&amp;nbsp;&amp;nbsp; Try this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&amp;nbsp; * Inline&lt;BR /&gt;[DatesField&lt;BR /&gt;29-05-2011 10:59:59&lt;BR /&gt;30-05-2011 11:59:59&lt;BR /&gt;31-05-2011 12:59:59];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;BR /&gt;DatesField&lt;BR /&gt;01-06-2011 10:59:59&lt;BR /&gt;02-06-2011 11:59:59&lt;BR /&gt;03-06-2011 12:59:59&lt;BR /&gt;04-06-2011 1:40:59&lt;BR /&gt;04-06-2011 1:50:59&lt;BR /&gt;05-06-2011 2:59:59&lt;BR /&gt;06-06-2011 3:59:59&lt;BR /&gt;07-06-2011 4:59:59&lt;BR /&gt;08-06-2011 5:59:59&lt;BR /&gt;09-06-2011 6:59:59&lt;BR /&gt;10-06-2011 2:59:59&lt;BR /&gt;12-06-2011 7:39:59&lt;BR /&gt;13-06-2011 8:29:59&lt;BR /&gt;14-06-2011 9:19:59&lt;BR /&gt;15-06-2011 10:09:59&lt;BR /&gt;16-06-2011 10:02:59&lt;BR /&gt;16-06-2011 10:09:59 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample1:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load &lt;BR /&gt;Date(DatesField, 'MM-DD-YYYY') AS REPEAT_DATE,&lt;BR /&gt;SubField(DatesField, ' ', 1) AS CapDate&lt;/P&gt;&lt;P&gt;Resident Sample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Sample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325484#M710860</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-28T06:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: pls check the script</title>
      <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325485#M710861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you given code is working for both INLINE tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am trying to do by field from QVD and INLINE , it is not showing the Distinct Dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls see the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;BR /&gt;LOAD&lt;BR /&gt;CaptureDateTime&amp;nbsp;&amp;nbsp; &lt;BR /&gt;FROM&lt;BR /&gt;&lt;D&gt;&lt;BR /&gt;(qvd);&lt;/D&gt;&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 * INLINE &lt;BR /&gt;[CaptureDateTime&lt;BR /&gt;06-05-2011 3:59:59&lt;BR /&gt;07-05-2011 4:59:59&lt;BR /&gt;08-05-2011 5:59:59&lt;BR /&gt;09-05-2011 6:59:59&lt;BR /&gt;10-05-2011 2:59:59&lt;BR /&gt;12-05-2011 7:39:59&lt;BR /&gt;13-05-2011 8:29:59&lt;BR /&gt;14-05-2011 9:19:59&lt;BR /&gt;15-05-2011 10:09:59&lt;BR /&gt;16-05-2011 10:02:59&lt;BR /&gt;16-05-2011 10:09:59 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample2:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD &lt;BR /&gt;Date(CaptureDateTime, 'MM-DD-YYYY') as RepeatCaptureDate,&lt;BR /&gt;SubField(CaptureDateTime, ' ', 1) as DistinctCaptureDate&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident Sample;&lt;/P&gt;&lt;P&gt;DROP Table Sample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Result for DistinctCaptureDate is shown as below: i.e; from QVD it is not getting the DISTINCT dates.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="CaptureDist.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/5480_CaptureDist.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 09:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325485#M710861</guid>
      <dc:creator />
      <dc:date>2011-06-28T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: pls check the script</title>
      <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325486#M710862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason is that they are not actually distinct, since the Date() function you are using represents the date but keeps the subjacent numeric value for each record, so the dates contain times and thus are different. Rather, making a new field deleting the time part of the timestamp will do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CaptureDateTime AS OriginalDateTimeField,&lt;/P&gt;&lt;P&gt;Date(Floor(CaptureDateTime), 'DD-MM-YYYY') AS CaptureDateTime&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You keep the original field should you need to use it later, but creating a listbox with CaptureDateTime will only show the date parts, so when you select "15-05-2011" all values in the original field with this date will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that help.s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 09:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325486#M710862</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-06-28T09:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: pls check the script</title>
      <link>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325487#M710863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, No all is ok, pls see image adjust, Good luck, Luis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important:&amp;nbsp; I use date# for convert string to format date field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 10:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pls-check-the-script/m-p/325487#M710863</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-07-15T10:44:51Z</dc:date>
    </item>
  </channel>
</rss>

