<?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 Distinct Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628933#M476546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works well, Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 16:41:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-27T16:41:15Z</dc:date>
    <item>
      <title>Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628929#M476542</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;I need to solve this tricky problem and I really appreciate to receive your help.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In my DataSource I have a fact table with some sales records releated to a lookup table with some customers details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I built a report for PARETO ANALYSIS with one table and one slider (for percentage set-up).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm trying to add a text object, not related with first pareto-table, to count the number of customers under the selected pareto percentage &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(A-Class Customers).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Some other informations: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- the sales value is releated to current year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- the name of the "sales-field" is in a variable&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm triyng to change this formula because i think it doesn't count the customers name distinctly (proper count=155, text obj count=897)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;TEST OBJECT EXPRESSION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Count( DISTINCT If((Aggr(RangeSum(Top(Sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}$(varSales)), 1, RowNo())) &lt;/P&gt;&lt;P&gt;/ RangeSum(Top(Sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}$(varSales)), 1, NoOfRows())), Customer_ds)*100) &lt;/P&gt;&lt;P&gt;&amp;lt; $(varParetoPerc), Customer_ds, Null()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628929#M476542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-27T09:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628930#M476543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think you can add your sample application? It's going to be easier to spot the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 09:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628930#M476543</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-05-27T09:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628931#M476544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JV, here's the example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628931#M476544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-27T10:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628932#M476545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the app modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you are using the wrong sum(FATURATTO), because in your chart, you are using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}FATTURATO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in your text box, you used only Sum(FATURATTO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added 3 columns at the end of your table, so you see the result with this modified. Once you remove these columns, you won't see Company9, Company11 and Company12 which have FATTURATO = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A presto&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 10:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628932#M476545</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-05-27T10:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628933#M476546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works well, Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 16:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628933#M476546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-27T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628934#M476547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome. Please mark the answer as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 16:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628934#M476547</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-05-27T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628935#M476548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression works well, theoretically, but in my big data source it doesn't. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The follow expression is the one I want to implement in my report, in a txt object, , wich is structurally identical to the previous one, but it doesn't count correctly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(varParetoArticoli=0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Count(DISTINCT If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Aggr(RangeSum(Top(Sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}$(varFatturato)), 1, RowNo())),CLI_DES) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ Aggr(RangeSum(Top(Sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}$(varFatturato)), 1, NoOfRows())), CLI_DES)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;= ($(varParetoPerc)/100), CLI_DES))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT If(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Aggr(RangeSum(Top(Sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}$(varFatturato)), 1, RowNo())),ART_COD) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/ Aggr(RangeSum(Top(Sum({&amp;lt;Year={$(varCurrentYear)},Month={"&amp;lt;=$(varCurrentMonth)"},Day={"&amp;lt;=31"}&amp;gt;}$(varFatturato)), 1, NoOfRows())), ART_COD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;= ($(varParetoPerc)/100), ART_COD))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 08:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628935#M476548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-28T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628936#M476549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manuel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share again your complete app? You can scramble the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 09:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628936#M476549</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-05-28T09:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628937#M476550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the screen with the report and the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 10:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628937#M476550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-28T10:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Pareto Distinct Count</title>
      <link>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628938#M476551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, the expression for the table object doesn't use aggr function to specify the fields and the expression for text object does. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "tab expression" I place the countDISTINCT function entirely after the if condition, and in the text object DISTINCT command is placed before the percentage calculation. I think the system doesn't recognize that command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 10:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pareto-Distinct-Count/m-p/628938#M476551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-28T10:15:52Z</dc:date>
    </item>
  </channel>
</rss>

