<?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 FIRSTSORTEDVALUE not working with date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698321#M451064</link>
    <description>&lt;P&gt;I have a test table with two columns:&amp;nbsp; &amp;nbsp;Servers and ServersDate.&amp;nbsp; &amp;nbsp;Loading date from CSV using:&lt;/P&gt;&lt;P&gt;Date(Date#([ServersDate],'MM/DD/YYYY hh:mm'),'MM/DD/YYYY') as ServersDate1&lt;/P&gt;&lt;P&gt;Servers,ServersDate1&lt;/P&gt;&lt;P&gt;23,04/01/2020&lt;/P&gt;&lt;P&gt;23,04/02/2020&lt;/P&gt;&lt;P&gt;24,04/03/2020&lt;/P&gt;&lt;P&gt;24,04/04/2020&lt;/P&gt;&lt;P&gt;I am trying to find the Server count for the oldest date:&lt;/P&gt;&lt;P&gt;=round(firstsortedvalue([DISTINCT] servers, ServersDate1)&lt;/P&gt;&lt;P&gt;This returns a null.&lt;/P&gt;&lt;P&gt;I have confirmed that ServersDate1 is a valid date by going into Number tab and changing it to an integer and it displayes incrementing numbers.&lt;/P&gt;&lt;P&gt;Cannot figuring out what I am doing wrong.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:44:55 GMT</pubDate>
    <dc:creator>matthewgraci</dc:creator>
    <dc:date>2024-11-16T00:44:55Z</dc:date>
    <item>
      <title>FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698321#M451064</link>
      <description>&lt;P&gt;I have a test table with two columns:&amp;nbsp; &amp;nbsp;Servers and ServersDate.&amp;nbsp; &amp;nbsp;Loading date from CSV using:&lt;/P&gt;&lt;P&gt;Date(Date#([ServersDate],'MM/DD/YYYY hh:mm'),'MM/DD/YYYY') as ServersDate1&lt;/P&gt;&lt;P&gt;Servers,ServersDate1&lt;/P&gt;&lt;P&gt;23,04/01/2020&lt;/P&gt;&lt;P&gt;23,04/02/2020&lt;/P&gt;&lt;P&gt;24,04/03/2020&lt;/P&gt;&lt;P&gt;24,04/04/2020&lt;/P&gt;&lt;P&gt;I am trying to find the Server count for the oldest date:&lt;/P&gt;&lt;P&gt;=round(firstsortedvalue([DISTINCT] servers, ServersDate1)&lt;/P&gt;&lt;P&gt;This returns a null.&lt;/P&gt;&lt;P&gt;I have confirmed that ServersDate1 is a valid date by going into Number tab and changing it to an integer and it displayes incrementing numbers.&lt;/P&gt;&lt;P&gt;Cannot figuring out what I am doing wrong.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698321#M451064</guid>
      <dc:creator>matthewgraci</dc:creator>
      <dc:date>2024-11-16T00:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698345#M451065</link>
      <description>&lt;P&gt;Your Date transformation field should be this, remove hh mm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date(Date#([ServersDate],'MM/DD/YYYY'),'MM/DD/YYYY') as ServersDate1&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 15:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698345#M451065</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2020-05-01T15:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698363#M451066</link>
      <description>&lt;P&gt;When I remove 'hh:mm' the date doesnt display at all.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 16:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698363#M451066</guid>
      <dc:creator>matthewgraci</dc:creator>
      <dc:date>2020-05-01T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698367#M451067</link>
      <description>&lt;P&gt;But in date mentioned in u r&amp;nbsp; query doesn't have time in it. so your date# snippet should not have that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFA for ref&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 16:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698367#M451067</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2020-05-01T16:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698368#M451068</link>
      <description>&lt;P&gt;I am sorry for the confusion.&amp;nbsp; &amp;nbsp;The date in the CSV file is:&amp;nbsp; "MM/DD/YYYY hh:mm".&amp;nbsp; &amp;nbsp;I am converting it to date because if I dont it comes in as a string.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 16:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698368#M451068</guid>
      <dc:creator>matthewgraci</dc:creator>
      <dc:date>2020-05-01T16:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698420#M451070</link>
      <description>&lt;P&gt;Ok then you need servers based on oldest time stamp or date. Based on that we can convert this...&lt;/P&gt;&lt;LI-CODE lang="java"&gt;To Extract only Date&amp;amp;Time:

Timestamp(Timestamp#([ServersDate],'MM/DD/YYYY hh:mm'),'MM/DD/YYYY hh:mm') as ServersDateTime

To Extract only Date:

Date(Timestamp#([ServersDate],'MM/DD/YYYY hh:mm'),'MM/DD/YYYY') as ServersDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 03:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698420#M451070</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2020-05-02T03:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE not working with date</title>
      <link>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698463#M451073</link>
      <description>&lt;P&gt;I changed it to timestamp in the load.&amp;nbsp; FirstSortedValue still is null.&lt;/P&gt;&lt;P&gt;Is there anything else I could be missing?&amp;nbsp; &amp;nbsp;Seems like a straightforward dataset for this function?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 12:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FIRSTSORTEDVALUE-not-working-with-date/m-p/1698463#M451073</guid>
      <dc:creator>matthewgraci</dc:creator>
      <dc:date>2020-05-02T12:40:46Z</dc:date>
    </item>
  </channel>
</rss>

