<?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 Count customers in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441140#M34846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;He.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In my example I need to count the customers where the sum of their sales is greater than 0 and I need to visualize it by different dimensions: time, seller, region, product, etc.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Captura1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184212_Captura1.PNG" style="height: 245px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the column Cant1 I use the formula:if(Sum(Precio * Cantidad * Cotizacion) &amp;gt; 0,count(distinct ID_Cliente)) but 1582 is not the correct total.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I also tried with:Count({$&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;ID_Cliente&lt;/SPAN&gt;= {"=sum(Precio * Cantidad * Cotizacion) &amp;gt; 0"}&amp;gt;} distinct ID_Cliente) but it does not work, when selecting a period it gives a result and when seeing all the periods the result in that period changes.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Other: Count({$&amp;lt;ID_Ticket = {"=sum(Precio * Cantidad * Cotizacion) &amp;gt; 0"}&amp;gt;} distinct ID_Cliente) but takes into account for each ticket and if the sum, for example, of a period is not greater than zero, it counts and should not do so.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 12:03:52 GMT</pubDate>
    <dc:creator>spividori</dc:creator>
    <dc:date>2017-11-22T12:03:52Z</dc:date>
    <item>
      <title>Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441140#M34846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;He.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In my example I need to count the customers where the sum of their sales is greater than 0 and I need to visualize it by different dimensions: time, seller, region, product, etc.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Captura1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184212_Captura1.PNG" style="height: 245px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the column Cant1 I use the formula:if(Sum(Precio * Cantidad * Cotizacion) &amp;gt; 0,count(distinct ID_Cliente)) but 1582 is not the correct total.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I also tried with:Count({$&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;ID_Cliente&lt;/SPAN&gt;= {"=sum(Precio * Cantidad * Cotizacion) &amp;gt; 0"}&amp;gt;} distinct ID_Cliente) but it does not work, when selecting a period it gives a result and when seeing all the periods the result in that period changes.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Other: Count({$&amp;lt;ID_Ticket = {"=sum(Precio * Cantidad * Cotizacion) &amp;gt; 0"}&amp;gt;} distinct ID_Cliente) but takes into account for each ticket and if the sum, for example, of a period is not greater than zero, it counts and should not do so.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441140#M34846</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2017-11-22T12:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441141#M34847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide sample data and Sample app with expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441141#M34847</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-11-22T12:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441142#M34848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;count(if(Sum(Precio * Cantidad * Cotizacion) &amp;gt; 0,distinct ID_Cliente))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhabs you need additional an aggregation (aggr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but to judge that I need more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441142#M34848</guid>
      <dc:creator>Ralf_Heukäufer</dc:creator>
      <dc:date>2017-11-22T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441143#M34849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID_Cliente&amp;amp;period as Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$&amp;lt;Key = {"=Sum(Precio * Cantidad * Cotizacion) &amp;gt; 0"}&amp;gt;} DISTINCT ID_Cliente)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441143#M34849</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441144#M34850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering.&lt;/P&gt;&lt;P&gt;But if &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ID_Cliente&amp;amp;period &lt;/STRONG&gt;1 = $ 100 and &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; ID_Cliente&amp;amp;period&lt;/STRONG&gt; 2 = $ -100 you should not count and count it.&lt;/P&gt;&lt;P&gt;I'm going to try to put together a set of data and upload the qvf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 13:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441144#M34850</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2017-11-22T13:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441145#M34851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya, a sample might help us understand your issue better here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 13:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441145#M34851</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T13:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441146#M34852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Here is the example qvf.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184286_Captura1.PNG" style="height: 320px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In Table1 it shows the correct result, but if I remove the filter for the month of January, it shows another result for January.&lt;/P&gt;&lt;P&gt;In Table2, dimension Rubro_id, it does not work.&lt;/P&gt;&lt;P&gt;In Table3 the column "Cant" works correctly, but the Total is incorrect.&lt;/P&gt;&lt;P&gt;I would like to show the result alternating several dimensions, not just time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 23:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441146#M34852</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2017-11-22T23:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441147#M34853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Any help?.&lt;/P&gt;&lt;P&gt;The only way to solve it is using the aggr function?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 15:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441147#M34853</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2017-11-23T15:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441148#M34854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you shure that 973 is correct for january if you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (sum(Cantidad)&amp;gt;0, count(distinct ID_Cliente))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have allways the same solution in your calculation but its 988 for january.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 18:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441148#M34854</guid>
      <dc:creator>Ralf_Heukäufer</dc:creator>
      <dc:date>2017-11-23T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441149#M34855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;For January corresponds 973. By selecting January and exporting Table3 to excel, you can count them to 973 clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 19:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441149#M34855</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2017-11-23T19:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441150#M34856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Modify your script to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;AutoNumber(Clave&amp;amp;month(FechaComprobante)&amp;amp;year(FechaComprobante)) as Key,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(FechaComprobante) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(FechaComprobante) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(FechaComprobante) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clave as ID_Cliente,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; idFacturaVtad as Id_tickets,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SitioClienteVta as PuntoVta,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rubro_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; idVendedor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cantidad&lt;/P&gt;&lt;P&gt;FROM [lib://Forum/Ventas2017.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$&amp;lt;Key = {"=sum(Cantidad) &amp;gt; 0"}&amp;gt;} DISTINCT ID_Cliente)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184414_Capture.PNG" style="height: 290px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 22:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441150#M34856</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-23T22:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441151#M34857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny.&lt;/P&gt;&lt;P&gt;Thanks for answering. &lt;/P&gt;&lt;P&gt;Your example works perfect to see it by year, month, but, to work in the dimension &lt;/P&gt;&lt;P&gt;"Rubro_id" should be added to the Key: &lt;/P&gt;&lt;P&gt;AutoNumber(Clave&amp;amp;month(FechaComprobante)&amp;amp;year(FechaComprobante)&amp;amp;Rubro_id) as Key.&lt;/P&gt;&lt;P&gt;And so do with the other dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 12:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441151#M34857</guid>
      <dc:creator>spividori</dc:creator>
      <dc:date>2017-11-24T12:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count customers</title>
      <link>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441152#M34858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds good... I was not sure what level you wanted to check this at and hence you might have to modify it based on your requirement.... Alternatively, you can use Aggr() function on the front end to do the same....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 12:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-customers/m-p/1441152#M34858</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-24T12:53:02Z</dc:date>
    </item>
  </channel>
</rss>

