<?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 Profitable &amp; Unprofitable Customers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208429#M63809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a performance problem? How much rows in your fact table?&lt;/P&gt;&lt;P&gt;You can calculate a new field (in script) with flag 1/0 for profit customer. for example:&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Period, customer,&lt;/P&gt;&lt;P&gt;if(sum(Profit) &amp;gt; 0, 1,0) as IsProfitCustomer&lt;/P&gt;&lt;P&gt;Resident FactTable&lt;/P&gt;&lt;P&gt;Group by Period, Customer&lt;/P&gt;&lt;P&gt;Left Join(FactTable)&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT tmp;&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 13:53:08 GMT</pubDate>
    <dc:creator>sparur</dc:creator>
    <dc:date>2010-04-09T13:53:08Z</dc:date>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208426#M63806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking at charting profitable and/or unprofitable customers by period and am looking at the best way of doing this. Please see attached with a group of 3 expressions that need to reflect the fact that the Sum(Profit) for that Period for each customer is &amp;gt; 0.&lt;/P&gt;&lt;P&gt;Any suggestions would be most welcome.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 06:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208426#M63806</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2010-04-09T06:48:30Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208427#M63807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John.&lt;/P&gt;&lt;P&gt;I create 2 charts (Line and Bar-stack) which show what you looking for. see my example in attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 07:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208427#M63807</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-04-09T07:35:59Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208428#M63808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anatoly, this works great. Is there any other method for doing this with a large dataset that isn't quite such a performance killer?&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208428#M63808</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2010-04-09T13:27:15Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208429#M63809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a performance problem? How much rows in your fact table?&lt;/P&gt;&lt;P&gt;You can calculate a new field (in script) with flag 1/0 for profit customer. for example:&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Period, customer,&lt;/P&gt;&lt;P&gt;if(sum(Profit) &amp;gt; 0, 1,0) as IsProfitCustomer&lt;/P&gt;&lt;P&gt;Resident FactTable&lt;/P&gt;&lt;P&gt;Group by Period, Customer&lt;/P&gt;&lt;P&gt;Left Join(FactTable)&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT tmp;&lt;/P&gt;&lt;P&gt;drop table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208429#M63809</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-04-09T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208430#M63810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;I think your best choice here is to use Set Analysis to limit your scope of customers to Profitable, non-profitable, etc... There is a nice example in the Help article "Set Analysis", one in the bottom where the expression is selecting Customers based on their total Sales. You can do something very similar.&lt;/P&gt;&lt;P&gt;I think it should perform well, even on a large data set, as long as you stay away from IF conditions.&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 14:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208430#M63810</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-09T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208431#M63811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Oleg.&lt;/P&gt;&lt;P&gt;I tried to create something similar (as example in Documentation) but I can't do something right.&lt;/P&gt;&lt;P&gt;for exmple i tried such as:&lt;/P&gt;&lt;P&gt;1) count({&amp;lt; Customer = {"=sum(Profit) &amp;gt; 0"}&amp;gt;} distinct Customer)&lt;/P&gt;&lt;P&gt;in each period I had 3 Customer, but it didn't right. because in 3,6,11 and 12 periods we have unprofitable customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we need aggregate sum(Profit) by Customer, and i tried such expression:&lt;/P&gt;&lt;P&gt;2) count({&amp;lt; Customer = {"=sum(total&amp;lt;Period, Customer&amp;gt; Profit) &amp;gt; 0"}&amp;gt;} distinct Customer)&lt;/P&gt;&lt;P&gt;but it didn't right too.&lt;/P&gt;&lt;P&gt;Can you post a right expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 17:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208431#M63811</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-04-09T17:45:03Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208432#M63812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anatoly,&lt;/P&gt;&lt;P&gt;you are right! Set Analysis expressions are evaluated "globally", they can't relate to the individual dimension value (e.g. Month). So, we can report on Customers are are Profitable in general, or in a certain year, but not with relation to the specific month.&lt;/P&gt;&lt;P&gt;I keep forgetting about the fact that Set Analysis expressions cannot be connected to the Dimension values...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 21:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208432#M63812</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-04-09T21:36:30Z</dc:date>
    </item>
    <item>
      <title>Profitable &amp; Unprofitable Customers</title>
      <link>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208433#M63813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Oleg / Anatoly there was some interesting discussion points here and as a result i have been able to provide a solution albeit the use of the aggr() and if() functions are giving me a slight performance headache but i'm sure i can work through the document and streamline it some more to minimize the effect to the end users.&lt;/P&gt;&lt;P&gt;I now have a slightly different issue in that i would like to accumulate the customer counts for each month on a rolling 3 month basis as below. However i also want to ensure that the accumulation always starts at Period 1 regardless of selections made, so if i only select Period 4 the answer should still be the accumulation of Periods 2 + 3 + 4&lt;/P&gt;&lt;P&gt;i.e.&lt;BR /&gt;Period 1 = Period 1&lt;BR /&gt;Period 2 = Period 1 + Period 2&lt;BR /&gt;Period 3 = Period 1 + Period 2 + Period 3&lt;BR /&gt;Period 4 = Period 2 + Period 3 + Period 4&lt;/P&gt;&lt;P&gt;Any thoughts would be welcomed, the inbuilt accumulation mechanism does not disregard selections so i don't think i can use this.&lt;/P&gt;&lt;P&gt;John H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 04:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Profitable-Unprofitable-Customers/m-p/208433#M63813</guid>
      <dc:creator>johnhorneramllp</dc:creator>
      <dc:date>2010-05-05T04:14:12Z</dc:date>
    </item>
  </channel>
</rss>

