<?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 Rank () - Top 10 for only Current Fiscal Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322670#M409594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of parts. The parts have numerous dimensions including a Quantity and a Total Cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have two expressions. One is the Total Cost divided by the Quantity for ONLY the current week&lt;/P&gt;&lt;P&gt;EXPRESSION 1 = Total Cost / Quantity&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;T_AMNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I then want to show the Rank of each Item because I only need to show the Top 10 Items by Expression 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So I have this formula, (See Below) It is supposed to rank the first expression by the Part number (VALUE_ELEMENT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;T_AMNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;))&lt;BR /&gt;,3),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;VALUE_ELEMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;BUT, it is not aggr correctly, since it is giving me Ranks for a blank value in the Expression 1 field... I am assuming it is Ranking for the entire unfiltered data set, instead of using the Set Analysis to give me the Rank for only the current week....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am not sure how to get the Rank for only the current week.... Any help would be greatly appreciated. Thanks!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2017 19:33:53 GMT</pubDate>
    <dc:creator>crystles</dc:creator>
    <dc:date>2017-05-10T19:33:53Z</dc:date>
    <item>
      <title>Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322670#M409594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table of parts. The parts have numerous dimensions including a Quantity and a Total Cost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have two expressions. One is the Total Cost divided by the Quantity for ONLY the current week&lt;/P&gt;&lt;P&gt;EXPRESSION 1 = Total Cost / Quantity&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;T_AMNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) / &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I then want to show the Rank of each Item because I only need to show the Top 10 Items by Expression 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So I have this formula, (See Below) It is supposed to rank the first expression by the Part number (VALUE_ELEMENT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;T_AMNT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;CWEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={1}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;))&lt;BR /&gt;,3),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;VALUE_ELEMENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;BUT, it is not aggr correctly, since it is giving me Ranks for a blank value in the Expression 1 field... I am assuming it is Ranking for the entire unfiltered data set, instead of using the Set Analysis to give me the Rank for only the current week....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am not sure how to get the Rank for only the current week.... Any help would be greatly appreciated. Thanks!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322670#M409594</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2017-05-10T19:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322671#M409595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you just tried this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Rank((Sum({&amp;lt;CWEEK={1}&amp;gt;}T_AMNT)/Sum({&amp;lt;CWEEK={1}&amp;gt;}QUANTITY))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322671#M409595</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-10T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322672#M409596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try that at first, but it is giving me a "1" for all rows... That is why I added the Aggr function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322672#M409596</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2017-05-10T19:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322673#M409597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have more than 1 dimensions? Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Rank(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; (Sum({&amp;lt;CWEEK={1}&amp;gt;}T_AMNT)/Sum({&amp;lt;CWEEK={1}&amp;gt;}QUANTITY))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322673#M409597</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-10T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322674#M409598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Rank(&lt;SPAN style="color: #ff0000;"&gt;total&lt;/SPAN&gt; (Sum({&amp;lt;CWEEK={1}&amp;gt;}T_AMNT)/Sum({&amp;lt;CWEEK={1}&amp;gt;}QUANTITY))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322674#M409598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322675#M409599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fixed it! Thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... now I am seeing though that some of my rows are the same number, so it is giving me a rank of "1-2" or '5-6" ... is there any way to just see it by a single number?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322675#M409599</guid>
      <dc:creator>crystles</dc:creator>
      <dc:date>2017-05-10T19:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322676#M409600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;=Rank(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; (Sum({&amp;lt;CWEEK={1}&amp;gt;}T_AMNT)/Sum({&amp;lt;CWEEK={1}&amp;gt;}QUANTITY),4)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322676#M409600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T19:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rank () - Top 10 for only Current Fiscal Week</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322677#M409601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;Num&lt;/SPAN&gt;(Rank(TOTAL (Sum({&amp;lt;CWEEK={1}&amp;gt;}T_AMNT)/Sum({&amp;lt;CWEEK={1}&amp;gt;}QUANTITY)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 19:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Top-10-for-only-Current-Fiscal-Week/m-p/1322677#M409601</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-10T19:49:36Z</dc:date>
    </item>
  </channel>
</rss>

