<?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: set analysis with distinct and multiple parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1973089#M1220627</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/905"&gt;@chrismtb&lt;/a&gt;&amp;nbsp;Did it solve your problem? please mark accordingly.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 14:06:49 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2022-08-25T14:06:49Z</dc:date>
    <item>
      <title>set analysis with distinct and multiple parameters</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1968230#M1220442</link>
      <description>&lt;P&gt;Hi I have the following data set (boiled down to a much more simple view):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="39.0625%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="12.5%"&gt;ID1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;ID2&lt;/TD&gt;
&lt;TD width="12.5%"&gt;Classification&lt;/TD&gt;
&lt;TD width="12.5%"&gt;Level&lt;/TD&gt;
&lt;TD width="12.5%"&gt;Budget&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;11&lt;/TD&gt;
&lt;TD width="12.5%"&gt;A&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;12&lt;/TD&gt;
&lt;TD width="12.5%"&gt;A&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;13&lt;/TD&gt;
&lt;TD width="12.5%"&gt;A&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%"&gt;2&lt;/TD&gt;
&lt;TD width="12.5%"&gt;21&lt;/TD&gt;
&lt;TD width="12.5%"&gt;B&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%"&gt;3&lt;/TD&gt;
&lt;TD width="12.5%"&gt;31&lt;/TD&gt;
&lt;TD width="12.5%"&gt;B&lt;/TD&gt;
&lt;TD width="12.5%"&gt;1&lt;/TD&gt;
&lt;TD width="12.5%"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to do a set analysis on the budget but i only want to include distinct values from ID1 field.&lt;/P&gt;
&lt;P&gt;within my analysis i also need to check the classification and the level during the calculation.&lt;/P&gt;
&lt;P&gt;I have tried a few options but to no avail... my latest attempt is:&lt;/P&gt;
&lt;P&gt;=sum(distinct aggr(sum({$&amp;lt;Classification={'A'},Level={'1'}&amp;gt;}Budget),ID1))&lt;/P&gt;
&lt;P&gt;however this adds the budgets together for all items in classification A, Level 1 despite having the same ID1 value.&lt;/P&gt;
&lt;P&gt;I cant&amp;nbsp; use distinct on the budget amount as there may be several records within the same classification and level with the same budget figure.&lt;/P&gt;
&lt;P&gt;Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 13:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1968230#M1220442</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2022-08-12T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with distinct and multiple parameters</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1968245#M1220444</link>
      <description>&lt;P&gt;This will display distinct amount i.e. 50 &lt;/P&gt;
&lt;P&gt;=sum(distinct aggr(sum({$&amp;lt;Classification={'A'},Level={'1'}&amp;gt;}Budget),ID1,ID2))&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 13:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1968245#M1220444</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-12T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with distinct and multiple parameters</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1973089#M1220627</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/905"&gt;@chrismtb&lt;/a&gt;&amp;nbsp;Did it solve your problem? please mark accordingly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 14:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-distinct-and-multiple-parameters/m-p/1973089#M1220627</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-25T14:06:49Z</dc:date>
    </item>
  </channel>
</rss>

