<?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: Button to select duplicate dates in a single list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1568644#M742457</link>
    <description>&lt;P&gt;Change your Load script where you load the csv file like this&lt;/P&gt;&lt;PRE&gt;LOAD 
&lt;FONT color="#FF0000"&gt;Date(DATE) as Date&lt;/FONT&gt;, 
TIME as Time, 
MESSAGE as Result,

right(FileDir(),3) as BCNo

FROM [$(FoundFile)]
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/PRE&gt;&lt;P&gt;It should work fine after reload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 08:46:40 GMT</pubDate>
    <dc:creator>dapostolopoylos</dc:creator>
    <dc:date>2019-04-12T08:46:40Z</dc:date>
    <item>
      <title>Button to select duplicate dates in a single list box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1568611#M742456</link>
      <description>&lt;P&gt;Dear Qlikview Experts,&lt;/P&gt;&lt;P&gt;I have came across a weird situation that end up with duplicated dates in a single list box. The correct data can only be shown if duplicated dates are selected. So i have created a button and trying to auto select multiple dates from a single list box.&lt;/P&gt;&lt;P&gt;However, my current button can only select these 2 dates as shown:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wrong.PNG" style="width: 349px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10073i3524237D5527FD77/image-size/large?v=v2&amp;amp;px=999" role="button" title="wrong.PNG" alt="wrong.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this is what i want to achieve by the click of a button:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 367px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10074iEB5A1EA560D549DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have attached my qvw to ease your reference. Any solutions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you so much for your help in advance!&lt;/P&gt;&lt;P&gt;Best Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1568611#M742456</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select duplicate dates in a single list box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1568644#M742457</link>
      <description>&lt;P&gt;Change your Load script where you load the csv file like this&lt;/P&gt;&lt;PRE&gt;LOAD 
&lt;FONT color="#FF0000"&gt;Date(DATE) as Date&lt;/FONT&gt;, 
TIME as Time, 
MESSAGE as Result,

right(FileDir(),3) as BCNo

FROM [$(FoundFile)]
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/PRE&gt;&lt;P&gt;It should work fine after reload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 08:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1568644#M742457</guid>
      <dc:creator>dapostolopoylos</dc:creator>
      <dc:date>2019-04-12T08:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select duplicate dates in a single list box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1569115#M742458</link>
      <description>&lt;P&gt;Dear Dapostolopoylos,&lt;/P&gt;&lt;P&gt;Sorry for the late reply. I have re-modify my loading script according to your suggestion, however, it seems to be not correct as well.&lt;/P&gt;&lt;P&gt;This is what i suppose to get by selecting 14th and 15th April:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10165i9BE96843FDF9AC4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But if using your code, there are some data looks like hiding away and never get selected:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10166i55DD2FE185C12BED/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have attached both qvw file and raw file to ease your reference. Thank you so much for your help in advance!&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;QianNing&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 03:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1569115#M742458</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2019-04-15T03:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select duplicate dates in a single list box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1569148#M742460</link>
      <description>&lt;P&gt;Make sure that the dates are all loaded as numeric dates without timestamps. If they are text (left justified), then use Date#() during the load to convert to date value, and if they have timestamp values, use Floor() to remove the time portion. Also make sure that the format is consistent. Some of your dates are DMY, others are MDY (eg 04/09/19 and 04/09/2019), so they are not the same values.&lt;/P&gt;&lt;P&gt;Read up on &lt;A href="https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunctions/formatting-functions.htm" target="_self"&gt;Date&lt;/A&gt;, &lt;A href="https://help.qlik.com/en-US/sense/February2019/Subsystems/Hub/Content/Sense_Hub/Scripting/InterpretationFunctions/interpretation-functions.htm" target="_self"&gt;Date#&lt;/A&gt; in the online help&lt;/P&gt;&lt;P&gt;The complete syntax for interpreting and formatting a text date would be of the form&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(Date#(myDate, &amp;lt;input date format&amp;gt;), &amp;lt;required display date format&amp;gt;) as ....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;For a source date that is already numeric&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date(myDate, &amp;lt;required display date format&amp;gt;) as ...&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 05:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1569148#M742460</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-04-15T05:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Button to select duplicate dates in a single list box</title>
      <link>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1569159#M742461</link>
      <description>&lt;P&gt;Dear Jontydkpi,&lt;/P&gt;&lt;P&gt;All the raw files they are came with consistent date format which is 'MM/DD/YYYY' and I have already use Floor() function to remove those raw files that came with timestamp. However i was still unable to get the data for PBC202 after i selected both dates 14th &amp;amp; 15th April.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 06:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-to-select-duplicate-dates-in-a-single-list-box/m-p/1569159#M742461</guid>
      <dc:creator>s10157754</dc:creator>
      <dc:date>2019-04-15T06:20:33Z</dc:date>
    </item>
  </channel>
</rss>

