<?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: Date List Box is not showing unique Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111049#M754875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TB,&lt;/P&gt;&lt;P&gt;How r u?&lt;/P&gt;&lt;P&gt;It is working now.&lt;/P&gt;&lt;P&gt;But I feel my code should also work. Any reason that my piece of code is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2018 09:35:56 GMT</pubDate>
    <dc:creator>mhmmd_srf</dc:creator>
    <dc:date>2018-09-26T09:35:56Z</dc:date>
    <item>
      <title>Date List Box is not showing unique Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111046#M754872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called Ship Date with YYYY-MM-DD hh:mm:ss ffffff format. I am creating another field called ShipDate1 using below syntax.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(ShipDate,'MM/DD/YYYY') as ShipDate1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I am putting this into List Box, the value is repeating. Could you please check once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/214484_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&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/Date-List-Box-is-not-showing-unique-Value/m-p/111046#M754872</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date List Box is not showing unique Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111047#M754873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A small correction in script could help you. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(&lt;STRONG&gt;Floor&lt;/STRONG&gt;(ShipDate),'MM/DD/YYYY') as ShipDate1,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111047#M754873</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-09-26T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date List Box is not showing unique Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111048#M754874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;define an separate calendar (best would be a master calendar)&lt;/P&gt;&lt;P&gt;in a simple way:&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;ShipDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,'MM/DD/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;ShipDate1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;resident FACT_PROOFOFDELIVERY &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;you may enhance the calender with year, month etc. look for mastercalender &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;above example should be sufficient for your requirment&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;and do not crreate the field ShipDate1 in FACT_PROOFOFDELIVERY &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 09:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111048#M754874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-26T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date List Box is not showing unique Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111049#M754875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TB,&lt;/P&gt;&lt;P&gt;How r u?&lt;/P&gt;&lt;P&gt;It is working now.&lt;/P&gt;&lt;P&gt;But I feel my code should also work. Any reason that my piece of code is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 09:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111049#M754875</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-09-26T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date List Box is not showing unique Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111050#M754876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Mohammad Sarif wrote:&lt;/P&gt;
&lt;P&gt;But I feel my code should also work. Any reason that my piece of code is not working?&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;




&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately NOT. Your code should not work. And yes, it has reason. Date() is a formatting function, i.e. - it only changes the appearance of date values and doesn't make any change in the values at the back-end. Here you have to remember that &lt;STRONG&gt;dates are actually numbers&lt;/STRONG&gt; at the back-end.&lt;/P&gt;&lt;P&gt;Having said that, since you are having multiple values for a date (with decimals), though you change the formatting the back-end numbers are still different. For example, say, you have two values 43369.10 (timestamp- 26/09/2018 02:24:00) and 43369.12 (timestamp - 26/09/2018 02:52:48). If you format them using date() you would see the date portion which is same (26/09/2018) for both, however, the back-end numbers are different (in decimals). Hence, qlik would show you the date portion only but twice because the values are different.&lt;/P&gt;&lt;P&gt;To get rid of this, you need to &lt;STRONG&gt;get the values same&lt;/STRONG&gt; (not only the formats) and we use floor() for the same which actually changes the value to get the integer part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. I know, I am not good at writing explanation. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 09:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-List-Box-is-not-showing-unique-Value/m-p/111050#M754876</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-09-26T09:51:00Z</dc:date>
    </item>
  </channel>
</rss>

