<?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 set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234300#M85740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Roeland, as far as I can see in your example, there is a synthetic key with Banknr and Id fields.&lt;/P&gt;&lt;P&gt;If I were you, the first thing you have to do is to get an unique key like "banknr-Id".&lt;/P&gt;&lt;P&gt;After this, I think you should try with the aggr() function. Is very useful in this cases.&lt;/P&gt;&lt;P&gt;Try something like :&lt;/P&gt;&lt;P&gt;&lt;B&gt;aggr(sum( {$&amp;lt; bank = {'$(=only(bank)'}&amp;gt;} loan),Customer).&lt;/B&gt;&lt;/P&gt;&lt;P&gt;This will calculate all the customers that have a loan with the selected bank.&lt;/P&gt;&lt;P&gt;Hope this helps!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Dec 2010 17:20:56 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2010-12-28T17:20:56Z</dc:date>
    <item>
      <title>set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234299#M85739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;L.S.,&lt;/P&gt;&lt;P&gt;Working on a project regarding banks and financial products, I came across a calculation that I've been unable to translate to QlikView.&lt;/P&gt;&lt;P&gt;The figure that needs to be shown needs to be calculated as follows:&lt;BR /&gt;(number of users of a certain financial product at a chosen bank) / (number of users of that financial product among the &lt;EM&gt;customers of that bank&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;Attached is a .QVW with dummy data and an example of the calculation.&lt;/P&gt;&lt;P&gt;Does anyone here have an idea how to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 15:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234299#M85739</guid>
      <dc:creator />
      <dc:date>2010-12-28T15:38:43Z</dc:date>
    </item>
    <item>
      <title>set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234300#M85740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Roeland, as far as I can see in your example, there is a synthetic key with Banknr and Id fields.&lt;/P&gt;&lt;P&gt;If I were you, the first thing you have to do is to get an unique key like "banknr-Id".&lt;/P&gt;&lt;P&gt;After this, I think you should try with the aggr() function. Is very useful in this cases.&lt;/P&gt;&lt;P&gt;Try something like :&lt;/P&gt;&lt;P&gt;&lt;B&gt;aggr(sum( {$&amp;lt; bank = {'$(=only(bank)'}&amp;gt;} loan),Customer).&lt;/B&gt;&lt;/P&gt;&lt;P&gt;This will calculate all the customers that have a loan with the selected bank.&lt;/P&gt;&lt;P&gt;Hope this helps!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 17:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234300#M85740</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-12-28T17:20:56Z</dc:date>
    </item>
    <item>
      <title>set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234301#M85741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roeland,&lt;/P&gt;&lt;P&gt;had a little time to look at your exam app. Let me add some notes (to explain what I have done):&lt;/P&gt;&lt;P&gt;- in the script I filtered the "isnt a client" and "not usage" --&amp;gt; these rows are not necessary; they even complicate coding the expressions (think about the if()-statements you do not need then). And within QV the user can always see at once elements that are implicit not or no more selected --&amp;gt; they have a grey background in listboxes.&lt;/P&gt;&lt;P&gt;for testing purposes I removed some show conditions&lt;/P&gt;&lt;P&gt;take a look at the table viewer. The sync-table is fine. Even some QT-Consultants are telling other things, esspecially to novices. For more details look around in this forum. John Witherspoon posted some good ideas and I agree with his oppinion of having a Sync-Table is fine when you think it is usefull and your messures are correct.&lt;/P&gt;&lt;P&gt;Last not least: Take a look at the expr in your chart. I think 40% loan is correct because I found 5 IDs with it. And two of them at bank2. So 2/5 = 40%.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roland (without e)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 00:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234301#M85741</guid>
      <dc:creator />
      <dc:date>2010-12-29T00:21:05Z</dc:date>
    </item>
    <item>
      <title>set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234302#M85742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your input guys &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The difficult part of this calculation is that I need to know how many customers a bank has that use a specific product &lt;EM&gt;at any bank&lt;/EM&gt;, do so at THAT certain bank&lt;/P&gt;&lt;P&gt;This is explained better with the example that's in the QVW:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;BR /&gt;take 'Bank 2', and take a look at 'Loans'&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;'Bank 2' has 4 customers,&lt;BR /&gt;3 of those customers are using the product 'Loan' at a bank, not necissarily bank 2, and&lt;BR /&gt;2 have a loan at bank 2.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;In this example the calculation would be 2/3&lt;/P&gt;&lt;P&gt;So the correct answer is 66.7% It's not the "total customers that have a loan" that I need to divide by, but the "amount of clients of that bank that have a loan somewhere".&lt;/P&gt;&lt;P&gt;in the meantime, John Martin took a look at this problem too, and he provided a solution using a table not attached to the data, and a variable containing the selected bank in that field...&lt;/P&gt;&lt;P&gt;attached is his offered solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 17:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis/m-p/234302#M85742</guid>
      <dc:creator />
      <dc:date>2010-12-29T17:04:29Z</dc:date>
    </item>
  </channel>
</rss>

