<?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: Rank with Date Range in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84518#M13875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; a lot Tresesco. It worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 05:35:42 GMT</pubDate>
    <dc:creator>ericdelaqua</dc:creator>
    <dc:date>2018-02-12T05:35:42Z</dc:date>
    <item>
      <title>Rank with Date Range in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84515#M13872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to work out this scenario and will appreciate some assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file that contains the fields : Model; Designed On; Cost;&lt;/P&gt;&lt;P&gt;the design date include date in the future such as 01/01/2025.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to build a straight table with dimension Model and &lt;STRONG&gt;Rank&lt;/STRONG&gt; the &lt;STRONG&gt;top 10 models&amp;nbsp; &lt;/STRONG&gt;that were&lt;STRONG&gt; designed in the last year &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where the first&lt;STRONG&gt; ranking (1) is the highest sum of cost.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;how could this be written in set analysis.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 23:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84515#M13872</guid>
      <dc:creator>ericdelaqua</dc:creator>
      <dc:date>2018-02-11T23:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rank with Date Range in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84516#M13873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easy way is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can create a new field is YEAR (2015,2016,2017...) when load by script&lt;/P&gt;&lt;P&gt;2. create a variable v_last_year = max(year)-1&lt;/P&gt;&lt;P&gt;3. In set analysis, set year = v_last_year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the problem was solved! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 03:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84516#M13873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T03:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rank with Date Range in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84517#M13874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want your &lt;STRONG&gt;last year&lt;/STRONG&gt; to be on calendar date then try expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt;Model={"=Rank(Sum({&amp;lt;[Designed On]={[&amp;gt;=$(=YearStart(Today(),-1)) &amp;lt;=$(=YearEnd(Today(),-1))]}&amp;gt;}Cost))&amp;lt;11"}&amp;gt;}Cost)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it change on selection, try replacing &lt;EM&gt;today()&lt;/EM&gt; with &lt;EM&gt;max([Designed On]).&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 04:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84517#M13874</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T04:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rank with Date Range in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84518#M13875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; a lot Tresesco. It worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 05:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-with-Date-Range-in-set-analysis/m-p/84518#M13875</guid>
      <dc:creator>ericdelaqua</dc:creator>
      <dc:date>2018-02-12T05:35:42Z</dc:date>
    </item>
  </channel>
</rss>

