<?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: Dynamic dimension with Aggr() and Set Analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307793#M113661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland - thank you for your answer.&amp;nbsp; Unfortunately I actually have a third dimension (month) that goes across the top of the pivot table so an extra column is very noticeable.&amp;nbsp; It also messes up Excel exports.&amp;nbsp; However, this led me to thinking about what causes the full list of dimension values to be displayed, and with a few hours of fiddling I got to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SUM(Sales)=0,0,&lt;/P&gt;&lt;P&gt;RangeMax(SUM({1&amp;lt;ClientTier=P()&amp;gt;} Sales)*0+0.00001,SUM(Sales)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the first part of RangeMax() - i.e. the set -&amp;nbsp; forces QV to consider all rows as a value.&amp;nbsp; So this works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help - set me down the right road.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2011 09:22:39 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2011-11-10T09:22:39Z</dc:date>
    <item>
      <title>Dynamic dimension with Aggr() and Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307791#M113659</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;I'm tearing my hair out as I feel so close to the solution but can't grasp it!&amp;nbsp; Hope you can help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 tables - &lt;STRONG&gt;STAFF&lt;/STRONG&gt;, &lt;STRONG&gt;CLIENT &lt;/STRONG&gt;and &lt;STRONG&gt;SALES&lt;/STRONG&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;STAFF &lt;/STRONG&gt;has StaffName and StaffID&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;CLIENT &lt;/STRONG&gt;has ClientName, ClientTier and ClientID&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SALES &lt;/STRONG&gt;contains ClientID and StaffID as well as all the other details you'd normally associate with a sales table.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a pivot table with dimensions of ClientTier and ClientName and a SUM(Sales) expression.&amp;nbsp; Nothing from STAFF table is in the chart dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOWEVER!&amp;nbsp; Let's say I have selected StaffName = John,Jane, as well as ClientTier = Premium.&amp;nbsp; My pivot table must show ALL Premium clients, whether or not John or Jane have made any sales to them.&amp;nbsp; Any SUM(Sales) figures must only reflect John and Jane's sales, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting "Show All Values" is no good as I only want Clients in the currently selected tier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried all kinds of set analysis in the expression but not quite got their.&amp;nbsp; I'm wondering if I need to use Aggr() in the dimension but haven't got that working either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again - hope you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307791#M113659</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-11-09T14:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic dimension with Aggr() and Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307792#M113660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be someone will have a better solution soon. Meanwhile check out my example app including a workaround. It shows an additional "empty" column with a white textcolor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307792#M113660</guid>
      <dc:creator />
      <dc:date>2011-11-09T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic dimension with Aggr() and Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307793#M113661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland - thank you for your answer.&amp;nbsp; Unfortunately I actually have a third dimension (month) that goes across the top of the pivot table so an extra column is very noticeable.&amp;nbsp; It also messes up Excel exports.&amp;nbsp; However, this led me to thinking about what causes the full list of dimension values to be displayed, and with a few hours of fiddling I got to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SUM(Sales)=0,0,&lt;/P&gt;&lt;P&gt;RangeMax(SUM({1&amp;lt;ClientTier=P()&amp;gt;} Sales)*0+0.00001,SUM(Sales)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems the first part of RangeMax() - i.e. the set -&amp;nbsp; forces QV to consider all rows as a value.&amp;nbsp; So this works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help - set me down the right road.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 09:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307793#M113661</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-11-10T09:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic dimension with Aggr() and Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307794#M113662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;glad to help you. My part was in evidence the smaller one, but sometimes a hitch into the right direction . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 10:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-dimension-with-Aggr-and-Set-Analysis/m-p/307794#M113662</guid>
      <dc:creator />
      <dc:date>2011-11-10T10:20:21Z</dc:date>
    </item>
  </channel>
</rss>

