<?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 Limiting 1 dimension on another dimensions top x in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Limiting-1-dimension-on-another-dimensions-top-x/m-p/1408736#M458751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have a qvw where by I am showing the top 10 customers by gross profit&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Rank&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Gross Profit&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer J&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For these top 10 customers I want to show a pie chart by income stream (eg. Private Sector, Government Sector, Mining Sector, etc.). So the dimension on the Pie Chart currently is &lt;STRONG&gt;Income Stream&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the top 10 customers didn't include any income from the Mining Sector, I don't want them included in the Pie Chart.&lt;/P&gt;&lt;P&gt;In addition I don't want to include any income from customers not in the top 10. So if out of the top 10 customers, $30,000 was spent on the Private Sector, that slice of the Pie Chart should be $30,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume I need to do something using the Rank Function, but I can't work out where/how is the best to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is already a set analysis&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;sum({&amp;lt;isParentJobClosed={0},[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&amp;gt;+&amp;lt;isParentJobClosed={1},ParentJobCompleteDate={"&amp;gt;=$(=SelectedFinancialYearStart)"},[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&amp;gt; } SalesLineRetail)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2017 03:58:07 GMT</pubDate>
    <dc:creator>diffeyj</dc:creator>
    <dc:date>2017-12-15T03:58:07Z</dc:date>
    <item>
      <title>Limiting 1 dimension on another dimensions top x</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-1-dimension-on-another-dimensions-top-x/m-p/1408736#M458751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have a qvw where by I am showing the top 10 customers by gross profit&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Rank&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Gross Profit&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;90,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;70,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Customer J&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For these top 10 customers I want to show a pie chart by income stream (eg. Private Sector, Government Sector, Mining Sector, etc.). So the dimension on the Pie Chart currently is &lt;STRONG&gt;Income Stream&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if the top 10 customers didn't include any income from the Mining Sector, I don't want them included in the Pie Chart.&lt;/P&gt;&lt;P&gt;In addition I don't want to include any income from customers not in the top 10. So if out of the top 10 customers, $30,000 was spent on the Private Sector, that slice of the Pie Chart should be $30,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume I need to do something using the Rank Function, but I can't work out where/how is the best to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is already a set analysis&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;sum({&amp;lt;isParentJobClosed={0},[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&amp;gt;+&amp;lt;isParentJobClosed={1},ParentJobCompleteDate={"&amp;gt;=$(=SelectedFinancialYearStart)"},[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&amp;gt; } SalesLineRetail)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 03:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-1-dimension-on-another-dimensions-top-x/m-p/1408736#M458751</guid>
      <dc:creator>diffeyj</dc:creator>
      <dc:date>2017-12-15T03:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting 1 dimension on another dimensions top x</title>
      <link>https://community.qlik.com/t5/QlikView/Limiting-1-dimension-on-another-dimensions-top-x/m-p/1408737#M458752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From given expression? Won't work for single degrade field. The highlight one ignores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;SelectedPeriodEnd&lt;/STRONG&gt; is the field or Variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;isParentJobClosed={0},[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&amp;gt;+&amp;lt;isParentJobClosed={1},ParentJobCompleteDate={"&amp;gt;=$(=SelectedFinancialYearStart)"}&lt;SPAN style="color: #ff0000;"&gt;,[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&lt;/SPAN&gt;&amp;gt; } SalesLineRetail)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;To answer your question, Perhaps this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;isParentJobClosed={0},[Period End Date]= {"&amp;lt;=$(=SelectedPeriodEnd)"}&amp;gt;+&amp;lt;isParentJobClosed={1},ParentJobCompleteDate={"&amp;gt;=$(=SelectedFinancialYearStart)"}&lt;STRONG style="color: #ff0000;"&gt;, Customer = {"=Rank(Sum([Gross Profit),4)&amp;lt;=10"}&lt;/STRONG&gt;&amp;gt; } SalesLineRetail)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 04:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Limiting-1-dimension-on-another-dimensions-top-x/m-p/1408737#M458752</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-15T04:18:35Z</dc:date>
    </item>
  </channel>
</rss>

