<?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: Min(Year) as a dimension in the script editor in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890159#M991445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lovely job - thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 12:46:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-06T12:46:01Z</dc:date>
    <item>
      <title>Min(Year) as a dimension in the script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890157#M991443</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;I have a list of products and the month/year that they were first launched...&lt;/P&gt;&lt;P&gt;I want to see the min year of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can calculate this simply using min(Year) as an expression in a pivot table. However I want this to be calculated in the script editor as a dimension so that I can use it in a pivot table -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&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/91961_pastedImage_0.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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 12:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890157#M991443</guid>
      <dc:creator />
      <dc:date>2015-07-06T12:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Min(Year) as a dimension in the script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890158#M991444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I completely understand your requirement (it's rather slim on details), but let's assume that the use date is present in a facts table, together with the product ID (let's call that one Material). Then in your script, add the following after you load the facts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN(Facts)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Material, min(Year(UseDate)) AS FirstYearUsed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT Facts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP BY Material;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 12:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890158#M991444</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-07-06T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Min(Year) as a dimension in the script editor</title>
      <link>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890159#M991445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lovely job - thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 12:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-Year-as-a-dimension-in-the-script-editor/m-p/890159#M991445</guid>
      <dc:creator />
      <dc:date>2015-07-06T12:46:01Z</dc:date>
    </item>
  </channel>
</rss>

