<?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: Values duplicated/not unique for dimension in listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707699#M1081622</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;try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Month(FullDate, 'MMM') as TextMonth,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date(floor(FullDate), 'YYYY-MM-DD') as Date,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 13:05:34 GMT</pubDate>
    <dc:creator>ashfaq_haseeb</dc:creator>
    <dc:date>2014-07-03T13:05:34Z</dc:date>
    <item>
      <title>Values duplicated/not unique for dimension in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707694#M1081617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached an image of what I am seeing - after creating some new import scripts with some date/time functions in them, I am seeing my new data being treated as if every individual raw record has a unique value for every date field.&amp;nbsp; For example, I created a listbox on Year and each year is duplicated thousands of times in the listbox. Selecting the first instance of '2014' only returns a single record in the database, instead of all 2014 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what could cause this? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 12:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707694#M1081617</guid>
      <dc:creator />
      <dc:date>2014-07-03T12:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Values duplicated/not unique for dimension in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707695#M1081618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're probably using a date or timestamp field and only changed the display format to year. If you want a Year field then create that in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load MyDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(MyDate) as MyYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(MyDate) as MyMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(MyDate) as MyWeek&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 12:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707695#M1081618</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-07-03T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Values duplicated/not unique for dimension in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707696#M1081619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample date or year field data your are using... looks like your date is timestamp..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 12:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707696#M1081619</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-03T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Values duplicated/not unique for dimension in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707697#M1081620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for any conversions we can use the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor())&lt;/P&gt;&lt;P&gt;Year(Floor())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you give some sample date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707697#M1081620</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2014-07-03T13:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Values duplicated/not unique for dimension in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707698#M1081621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it started as Unix Timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one step, I applied:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ConvertToLocalTime(timestamp((@4 / 86400) + (2 + date#('1/1/1970') - date#('1/1/1900'))), 'GMT-05:00') as FullDate &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the next step, I did all these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;date(FullDate, 'YYYY-MM-DD') as Date,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; date(FullDate, 'YYYY') as Year,&lt;/P&gt;&lt;P&gt; date(FullDate, 'MM') as Month,&lt;/P&gt;&lt;P&gt; date(FullDate, 'DD') as Day,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;date(date(FullDate, 'MM'), 'MMM') as TextMonth,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;date(FullDate, 'YYYYMM') as YearMonthField,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;time(FullDate, 'hh:mm:ss') as Time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I have changed it now to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Year(FullDate) as Year,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; Month(FullDate) as Month,&lt;/P&gt;&lt;P&gt; Day(FullDate) as Day,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;time(FullDate, 'hh:mm:ss') as Time, &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Year(FullDate)&amp;amp;Month(FullDate) as YearMonthField,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;date(date(FullDate, 'MM'), 'MMM') as TextMonth,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; date(FullDate, 'YYYY-MM-DD') as Date,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to have fixed the first 5 fields. But I need to determine which functions to switch to for the last 2 (TextMonth and Date) now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all for the help so far!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707698#M1081621</guid>
      <dc:creator />
      <dc:date>2014-07-03T13:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Values duplicated/not unique for dimension in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707699#M1081622</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;try below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;Month(FullDate, 'MMM') as TextMonth,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date(floor(FullDate), 'YYYY-MM-DD') as Date,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Values-duplicated-not-unique-for-dimension-in-listbox/m-p/707699#M1081622</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-07-03T13:05:34Z</dc:date>
    </item>
  </channel>
</rss>

