<?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 Companys vs Client by region in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188357#M503199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just have 2 expressions in your chart: (1) count(distinct Companies) (2) count(distinct Clients). The dimension would be Region.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 18:16:37 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-09-03T18:16:37Z</dc:date>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188356#M503198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some problems to calculate a chart where i can compare number of companys vs number of clients per Region.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Companies:&lt;/P&gt;&lt;P&gt;C1 Rergion A&lt;/P&gt;&lt;P&gt;C2 Region B&lt;/P&gt;&lt;P&gt;C2 Region B&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Clients:&lt;/P&gt;&lt;P&gt;1 Region A&lt;/P&gt;&lt;P&gt;2 Region A&lt;/P&gt;&lt;P&gt;3 Region B&lt;/P&gt;&lt;P&gt;4 Region C&lt;/P&gt;&lt;P&gt;My final chart would have something like this:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Regions N. Companies N. Clients&lt;/P&gt;&lt;P&gt;Region A 1 2&lt;/P&gt;&lt;P&gt;Region B 2 1&lt;/P&gt;&lt;P&gt;Region C 0 1&lt;/P&gt;&lt;P&gt;I have also made Region Island and i am trying to make the calculation by the Island.&lt;/P&gt;&lt;P&gt;Do you have any suggestion ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasco Rodrigues&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 17:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188356#M503198</guid>
      <dc:creator />
      <dc:date>2010-09-03T17:53:19Z</dc:date>
    </item>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188357#M503199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just have 2 expressions in your chart: (1) count(distinct Companies) (2) count(distinct Clients). The dimension would be Region.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 18:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188357#M503199</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-03T18:16:37Z</dc:date>
    </item>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188358#M503200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vlad,&lt;/P&gt;&lt;P&gt;That's was one of my first approach and the first step to see the problem....&lt;/P&gt;&lt;P&gt;My model is like:&lt;/P&gt;&lt;P&gt;I have the table company linked to other tables and also linked one region table (region_company);&lt;/P&gt;&lt;P&gt;I have the table client linked to other tables and also linked to other region table (region_client);&lt;/P&gt;&lt;P&gt;I can't link the regions because in that case i would have a cyclic data model.&lt;/P&gt;&lt;P&gt;For dimension if i put the region_company as dimension then the counter counts ok for region but not for clients. If i make the region_client as a dimension of a chart it counts ok the clients but not the companies. That's why i am trying to create a island and do some Set Analysis to do the trick.&lt;/P&gt;&lt;P&gt;Any suggestion ?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 18:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188358#M503200</guid>
      <dc:creator />
      <dc:date>2010-09-03T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188359#M503201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend the following: create a separate field just called "Region" that would contain all the region values. If linking would cause a cycle, then just have this table as an island (not linked to anything). Then create a chart with that new Region field as a dimension and the following 2 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;count(distinct if(region_company=Region,Companies))&lt;BR /&gt;count(distinct if(region_client=Region,Clients))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Depending on how many rows you have, this may get a little heavy. But give it a try. The problem is that the Region field would not get updated with user selections if it's an island. If that's a problem, then you need to redesign your data model, I think.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 19:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188359#M503201</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-03T19:32:16Z</dc:date>
    </item>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188360#M503202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will send a example to better understanding.&lt;/P&gt;&lt;P&gt;I hope you can help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 19:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188360#M503202</guid>
      <dc:creator />
      <dc:date>2010-09-03T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188361#M503203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes the trick!&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Vasco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 19:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188361#M503203</guid>
      <dc:creator />
      <dc:date>2010-09-03T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Count Companys vs Client by region</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188362#M503204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your example, you might be able to avoid your cycle problems is you have fewer tables (maybe even 1 large table). Try joining Region_Client into Client, and Region_company into Company. Drop the unnecessary ID fields after the join. Then join everything into Invoices. You should then be left with 1 large table and you can add Region without worrying about synthetic keys.&lt;/P&gt;&lt;P&gt;See attached solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 19:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Companys-vs-Client-by-region/m-p/188362#M503204</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-03T19:44:21Z</dc:date>
    </item>
  </channel>
</rss>

