<?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 Date Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219927#M72897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JL,&lt;/P&gt;&lt;P&gt;Is there anyway you can upload a QVW file with just the datetime data?&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 17:13:35 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-07-12T17:13:35Z</dc:date>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219924#M72894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have used the list box to display only the Year of the Dates using the Code &lt;STRONG&gt;Year(Atime).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And the list box has the values as &lt;STRONG&gt;2008,2009&lt;/STRONG&gt; accordingly. But In the Current selections box it is howing some Junk value as &lt;STRONG&gt;7078 of 137351. It is the same case for the Month as well. Why Junk values are shown in the Current Selections Box.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date is stored in milliseconds in database and i have converted in to Actual Date format using the To_Char by adding 1970. And it is working fine. Is it the reason the Current Selections showing Junk Values?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VSJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 14:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219924#M72894</guid>
      <dc:creator />
      <dc:date>2010-07-10T14:23:07Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219925#M72895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Junk values 7078 of 137351 tells me that QV sees the years as distinct value. Try playing with a couple QV functions:&lt;/P&gt;&lt;P&gt;year(date(Atime))&lt;/P&gt;&lt;P&gt;year(date(left(Atime,10)))&lt;/P&gt;&lt;P&gt;Upload a sample qvw if you can.&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 20:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219925#M72895</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-07-10T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219926#M72896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;I have tried ur suggestions stil the same Resposne. This is how the QVW file has been Created&lt;/P&gt;&lt;P&gt;Date in Database is milliseconds and i have converted to Datetime format in the Select statement itself. Display is fine no issues and Record selection everything is fine. Only in the Current Selections it is howing junk Value. I am not sure i will be able to share the QVW file.&lt;/P&gt;&lt;P&gt;Is there any options to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jul 2010 10:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219926#M72896</guid>
      <dc:creator />
      <dc:date>2010-07-11T10:14:19Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219927#M72897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JL,&lt;/P&gt;&lt;P&gt;Is there anyway you can upload a QVW file with just the datetime data?&lt;/P&gt;&lt;P&gt;Regards, Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 17:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219927#M72897</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-07-12T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219928#M72898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi karl,&lt;/P&gt;&lt;P&gt;I will not be able to share the file but i can share the Syntax how it has been done&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step:1 Date has been converted to dateformat in the select statement as follows&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(TO_CHAR((TO_DATE('01/01/1970 00:00:00','MM/DD/YYYY HH24:MI:SS')+((Datefield)/(60*60*24))))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step:2 Using the expression in Qlikview List box as below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Year( MakeDate(year(Datefield),Month(Datefield),Day(Datefield)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is how it has been done . In the list box it is shown as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2009 2010 2007 1970 2008&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If i am choosing the date the asssoicate data is getting filtered correctly but the current selection box is Showing Junk Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 18:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219928#M72898</guid>
      <dc:creator />
      <dc:date>2010-07-12T18:51:22Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219929#M72899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not showing junk values. It is showing how many records were selected that contain the year portion that is selected.&lt;/P&gt;&lt;P&gt;You can get around this by using a calendar table. In this case the you would just need two fields; date and year. Then you would make a list box for the year.&lt;/P&gt;&lt;P&gt;If you need to know how to create the calendar table, just do a search in the forums. It has been discussed a couple times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 19:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219929#M72899</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2010-07-12T19:58:13Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219930#M72900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not showing the how many records has been selected. The value is shown is the Junk values.&lt;/P&gt;&lt;P&gt;Calender table is again the Date and Time field. What is the difference it is going to make.&lt;/P&gt;&lt;P&gt;Irrespective of the calender table or not if it is date field and u have used the same it should show the Current selected value in the Current selection box it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 14 Jul 2010 05:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219930#M72900</guid>
      <dc:creator />
      <dc:date>2010-07-14T05:44:55Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219931#M72901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are technically correct. It is not the number of records, but the number of unique date values. It is not however junk.&lt;/P&gt;&lt;P&gt;I have attached a sample with a very simple calendar so you can see the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 13:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219931#M72901</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2010-07-14T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219932#M72902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;B&gt;&lt;/B&gt;&lt;/STRONG&gt; But still i will say it is junk value since i have verified the count it is not as what said. &lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks sicilianif,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have saw your Calender Script.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Your Calender Script was like this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date('1/1/2009'+Iterno()-1) &lt;B&gt;AS&lt;/B&gt; Date,Year(Date('1/1/2009'+Iterno()-1)) AS Year&lt;/P&gt;&lt;P&gt;I have a question here what is the difference of using your script in the Edit Script section and at the Objects.&lt;/P&gt;&lt;P&gt;I am using the same Script at the Object level. but showing the Junk values in Selecion list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 06:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219932#M72902</guid>
      <dc:creator />
      <dc:date>2010-07-15T06:26:07Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219933#M72903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say there are the following dates in a field called ThisDate:&lt;/P&gt;&lt;P&gt;ThisDate&lt;BR /&gt;1/1/2010&lt;BR /&gt;1/2/2010&lt;BR /&gt;1/3/2010&lt;BR /&gt;1/3/2010&lt;/P&gt;&lt;P&gt;There are 4 records, but only 3 distinct values.&lt;/P&gt;&lt;P&gt;If you create a selection field with the expression Year(ThisDate), it will show 2010. When you select it, it will show 3 selections made, because it is couting the 3 distinct dates.&lt;/P&gt;&lt;P&gt;If you add a field called ThisYear in the current table, you would have this:&lt;/P&gt;&lt;P&gt;ThisDate ThisYear&lt;BR /&gt;1/1/2010 2010&lt;BR /&gt;1/2/2010 2010&lt;BR /&gt;1/3/2010 2010&lt;BR /&gt;1/3/2010 2010&lt;/P&gt;&lt;P&gt;There are still 4 records, but for the field ThisYear, there is only one disctict value.&lt;/P&gt;&lt;P&gt;If you now create a selection field for ThisYear, it will show 2010. When you select 2010, there is only 1 distinct value, and hence it will show just 2010.&lt;/P&gt;&lt;P&gt;Hopefully I have explained it well enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 12:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219933#M72903</guid>
      <dc:creator>sicilianif</dc:creator>
      <dc:date>2010-07-15T12:56:49Z</dc:date>
    </item>
    <item>
      <title>Date Field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219934#M72904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Thanks sicilianif . It is very clear your explanation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My query is while creating the calender table you have used the Year and Date function. I am using the same functions in the Object.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If it is created as calender table it is showing the year and Date in the Current selection box.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If it is created at object level it is showing the distinct count.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it the Bug in Qlikview or the Functionality of the Qlikview. Can u please explain me to understand that.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks in Advance for the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 13:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Field/m-p/219934#M72904</guid>
      <dc:creator />
      <dc:date>2010-07-15T13:16:42Z</dc:date>
    </item>
  </channel>
</rss>

