<?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 Script + Distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158000#M377599</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;Would appreciate some help with the following script problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load Date(Defect_Date,'MMYY') as DefectDate&lt;/P&gt;&lt;P&gt;From Filename.xlsx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want only distinct values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load DISTINCT DefectDate&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the above&amp;nbsp; script is not getting the distinct values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2016 07:26:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-17T07:26:20Z</dc:date>
    <item>
      <title>Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158000#M377599</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;Would appreciate some help with the following script problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load Date(Defect_Date,'MMYY') as DefectDate&lt;/P&gt;&lt;P&gt;From Filename.xlsx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want only distinct values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data2:&lt;/P&gt;&lt;P&gt;Load DISTINCT DefectDate&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the above&amp;nbsp; script is not getting the distinct values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158000#M377599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T07:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158001#M377600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load Date(Defect_Date,'MMYY') as DefectDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From Filename.xlsx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Noconcatenate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Data2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load DISTINCT DefectDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Resident Data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;Drop table Data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158001#M377600</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-05-17T07:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158002#M377601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Try like below,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date(Defect_Date,'MMYY') as Defect_Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;From Filename.xlsx;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;EM&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load DISTINCT Defect_Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;DROP Table Data;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158002#M377601</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-05-17T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158003#M377602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried.... it is not getting distinct rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158003#M377602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T07:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158004#M377603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried.... it is not getting distinct rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158004#M377603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T07:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158005#M377604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Simply try,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Distinct Date(Defect_Date,'MMYY') as Defect_Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;EM style="font-family: arial, helvetica, sans-serif;"&gt;From Filename.xlsx;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;EM style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;&lt;EM style="font-family: arial, helvetica, sans-serif;"&gt;If not working, please post a sample file.&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158005#M377604</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-05-17T07:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158006#M377605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could probably be a formatting issue. The Distinct would work on values rather than formatting. Why don't you get the distinct values directly from the source like: ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Load &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px;"&gt;DISTINCT&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; color: #0000ff;"&gt;Date(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13px; font-family: 'courier new', courier;"&gt;Defect_Date, 'MMYY') as DefectDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;From Filename.xlsx;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158006#M377605</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-05-17T07:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158007#M377606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Date(Defect_Date,'MMYY') as DefectDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Filename.xlsx;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data2:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load DISTINCT DefectDate1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Data;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now check the Frequency of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DefectDate1 in listbox. it should be 1 for all dates&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 07:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158007#M377606</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-17T07:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158008#M377607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think just because you are formatting Defect_Date as MMYY doesn't mean that you have got rid of the Day part of the expression. When doing a distinct, you would still see all the Defect_Date for each of the day. To get rid of the day part, you can try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load Date(&lt;SPAN style="color: #ff0000;"&gt;MonthStart(&lt;/SPAN&gt;Defect_Date&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;, 'MMYY') as DefectDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;From Filename.xlsx;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Now I want only distinct values&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Data2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load DISTINCT DefectDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MonthStart will make sure that all the dates in a particular month are floored to the 1st day of the month and now when you find the Distinct DefectDate, you will get only distinct list of MonthStarts.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Also added NoConcatenate since both table have only one field and both of the two fields are the same. You might not need this in your actual scenario, but I don't really know how you plan on using this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 08:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158008#M377607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-17T08:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158009#M377608</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;If you've tried all suggestions above and no solution from them all.&lt;/P&gt;&lt;P&gt;I think the best thing to do now is to attach sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 08:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158009#M377608</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2016-05-17T08:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158010#M377609</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;did your date field contain &lt;STRONG&gt;time stamp&lt;/STRONG&gt; also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case date(dateField,'MMYY') won't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with floor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(floor(dateField),'MMYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 08:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158010#M377609</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-17T08:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158011#M377610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Load &lt;SPAN style="color: #0000ff; font-family: 'courier new', courier; font-size: 13px;"&gt;DISTINCT&amp;nbsp; Date(Make&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; color: #0000ff;"&gt;Date(Year(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13px; font-family: 'courier new', courier;"&gt;Defect_Date),&lt;SPAN style="color: #0000ff; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 13px; color: #0000ff;"&gt;Month(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 13px; font-family: 'courier new', courier;"&gt;Defect_Date)&lt;/SPAN&gt;&lt;/SPAN&gt;,1) 'MMYY') as DefectDate&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;From Filename.xlsx;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 12:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158011#M377610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T12:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script + Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158012#M377611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are formatting to make the field show only the month, but the underlying value is a date (or even a date time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see this if you create a column in a straight table with Date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DefectDate, 'DD MMM YYYY') as the expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order only to get months you need to remove the day part during the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Date(&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;(Defect_Date),'MMYY') as DefectDate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From Filename.xlsx;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The MonthStart function will return midnight at the start of the 1st of each month in your data set.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I don't know what your end requirement is, but I doubt you need the second part of doing the LOAD DISTINCT, as QlikView only shows distinct values in List Boxes and as Chart Dimensions anyway.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope that helps,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 12:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Distinct/m-p/1158012#M377611</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2016-05-17T12:42:54Z</dc:date>
    </item>
  </channel>
</rss>

