<?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: Pareto Count with 2 Dimensions? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603819#M444544</link>
    <description>&lt;P&gt;So, I had to change few things around in the dashboard.... the new expression that works is this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(
  If(Rangesum(Above(Sum(Price_Red)/Sum(TOTAL &amp;lt;Supplier&amp;gt; Price_Red), 1, RowNo())) &amp;lt; 0.80, 1, 0)

, Supplier, ($(='[Supplier-' &amp;amp; vDim1 &amp;amp; ']'),(=Sum(Price_Red), Desc))))&lt;/LI-CODE&gt;&lt;P&gt;But in order to do this, I had to create new fields in the script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New_Baseline_Final_T8:
LOAD *,
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 1],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 2],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 3],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 4],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 5],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 6],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 7],
	 [Supplier] &amp;amp; [No.] as [Supplier-No.],
	 [Supplier] &amp;amp; [OPU] as [Supplier-OPU],
	 [Supplier] &amp;amp; [Package Name] as [Supplier-Package Name],
	 [Supplier] &amp;amp; [Product] as [Supplier-Product]
Resident Baseline_Final_T8;

DROP Table Baseline_Final_T8;
RENAME Table New_Baseline_Final_T8 to Baseline_Final_T8;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 474px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15680i8D0CD052B70FAE49/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 16:18:24 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-07-18T16:18:24Z</dc:date>
    <item>
      <title>Pareto Count with 2 Dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603604#M444529</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a pivot table as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sc1.PNG" style="width: 693px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15631i53A1CFB9C5A57DBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sc1.PNG" alt="Sc1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this, I'm trying to calculate 80% Potential savings for each Supplier and the number of dimension values(controlled by the panel on the left, 'Levels') that make up this 80% savings. I have written a formula for this as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Distinct&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rangesum(Above(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Price_Red)/Sum( total Price_Red)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,1,RowNo()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&amp;lt;=0.8,$(vDim1)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;($(vDim1),(=Sum(Price_Red),Desc))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where 'Price_Red' is the savings value and $(vDim1) is the variable controlling the dimension values that are needed to be counted.&lt;/P&gt;&lt;P&gt;But the thing is, I want to display this count by each Supplier in the table and right now, this only happens if I select each supplier individually from the table.&lt;/P&gt;&lt;P&gt;I tried looking into &lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Pareto-on-2-dimensions/m-p/1433731/highlight/true#M430946" target="_self"&gt;Sunny's answer here&lt;/A&gt; and modified my formula but still doesnt give the required output. Please help me include the Supplier dimension in this calculation.&lt;/P&gt;&lt;P&gt;Attaching the qvf for your ref. Thanks in advance!&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603604#M444529</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2024-11-16T20:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Count with 2 Dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603819#M444544</link>
      <description>&lt;P&gt;So, I had to change few things around in the dashboard.... the new expression that works is this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(Aggr(
  If(Rangesum(Above(Sum(Price_Red)/Sum(TOTAL &amp;lt;Supplier&amp;gt; Price_Red), 1, RowNo())) &amp;lt; 0.80, 1, 0)

, Supplier, ($(='[Supplier-' &amp;amp; vDim1 &amp;amp; ']'),(=Sum(Price_Red), Desc))))&lt;/LI-CODE&gt;&lt;P&gt;But in order to do this, I had to create new fields in the script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New_Baseline_Final_T8:
LOAD *,
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 1],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 2],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 3],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 4],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 5],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 6],
	 [Supplier] &amp;amp; [Specification 1] as [Supplier-Specification 7],
	 [Supplier] &amp;amp; [No.] as [Supplier-No.],
	 [Supplier] &amp;amp; [OPU] as [Supplier-OPU],
	 [Supplier] &amp;amp; [Package Name] as [Supplier-Package Name],
	 [Supplier] &amp;amp; [Product] as [Supplier-Product]
Resident Baseline_Final_T8;

DROP Table Baseline_Final_T8;
RENAME Table New_Baseline_Final_T8 to Baseline_Final_T8;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 474px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15680i8D0CD052B70FAE49/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603819#M444544</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-18T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Count with 2 Dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603999#M444569</link>
      <description>&lt;P&gt;Thanks Sunny! So the only way to achieve this is to Concat all the possible fields with supplier. Appreciate your help as always!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 05:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1603999#M444569</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2019-07-19T05:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Count with 2 Dimensions?</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1604107#M444573</link>
      <description>&lt;P&gt;In order to get the correct sort order, you will need to concat them unless a particular field won't repeat for multiple supplier. For example, I found that some of the Specification 1 were repeating for multiple Supplier. But if Specification 2 is unique to a supplier, then you don't have to combine it with supplier. But doing it won't do any harm.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 11:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Count-with-2-Dimensions/m-p/1604107#M444573</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-19T11:11:27Z</dc:date>
    </item>
  </channel>
</rss>

