<?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 From Excel-logic to QV-logic: Distinct aggregation &amp; scatterplot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/From-Excel-logic-to-QV-logic-Distinct-aggregation-scatterplot/m-p/394811#M1149409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all QlikViewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm desperately trying to take the final steps from Excel to Qlikview. However, I always seems to get locked in small silly complications. The following is one of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset (xl-format) and I wish to do some calculations with this or manipulations if you like &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is all in one table (let's call it "main table"), and the first step - at least that's what I think - is understanding how I create new "calculated/manipulated" tables from the main table. Let me give you an example of the data, I'm looking at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="229" style="width: 286px; border: 1px solid rgb(0, 0, 0); height: 204px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Profit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Will&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;300&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Will&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;100&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Chris&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;50&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Chris&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;500&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;1000&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;200&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;200&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;500&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this I wish to create a table showing the&lt;EM&gt; Average Margin per Customer&lt;/EM&gt; along with the S&lt;EM&gt;um of Sales per Customer&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;The calculations I use are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Margin = Sales/Profit&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Average Margin = avg(Margin)&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Sum of Sales = sum(Sales) &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to do this on the basis of "per customer", I use the following formulas:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Sum of Sales per Customer = aggr(sum(Sales),Customer)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Average Margin per Customer = aggr(avg(Margin),Customer)&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this actually yields the results I need. However, I am not able to create a new table with these results... In addition, I wish to plot &lt;EM&gt;Sum of Sales per Customer &lt;/EM&gt;vs. &lt;EM&gt;Average Margin per Customer&lt;/EM&gt; as a scatterplot - and for some reason this won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish, I was able to track down the information needed to solve my issues - I'm confident that the input I need is already available some where out there.. My main problem is the fact that being new to QlikView, my QV-vocabulary lacks diversity and I have no clue as to what I should search for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All inputs are happily accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great day everyone,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 09:15:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-22T09:15:45Z</dc:date>
    <item>
      <title>From Excel-logic to QV-logic: Distinct aggregation &amp; scatterplot</title>
      <link>https://community.qlik.com/t5/QlikView/From-Excel-logic-to-QV-logic-Distinct-aggregation-scatterplot/m-p/394811#M1149409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all QlikViewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm desperately trying to take the final steps from Excel to Qlikview. However, I always seems to get locked in small silly complications. The following is one of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset (xl-format) and I wish to do some calculations with this or manipulations if you like &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is all in one table (let's call it "main table"), and the first step - at least that's what I think - is understanding how I create new "calculated/manipulated" tables from the main table. Let me give you an example of the data, I'm looking at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="229" style="width: 286px; border: 1px solid rgb(0, 0, 0); height: 204px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Profit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Will&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;300&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Will&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;100&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Chris&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;50&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Chris&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;500&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;1000&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;200&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;200&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;500&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this I wish to create a table showing the&lt;EM&gt; Average Margin per Customer&lt;/EM&gt; along with the S&lt;EM&gt;um of Sales per Customer&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;The calculations I use are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Margin = Sales/Profit&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Average Margin = avg(Margin)&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Sum of Sales = sum(Sales) &lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to do this on the basis of "per customer", I use the following formulas:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Sum of Sales per Customer = aggr(sum(Sales),Customer)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Average Margin per Customer = aggr(avg(Margin),Customer)&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this actually yields the results I need. However, I am not able to create a new table with these results... In addition, I wish to plot &lt;EM&gt;Sum of Sales per Customer &lt;/EM&gt;vs. &lt;EM&gt;Average Margin per Customer&lt;/EM&gt; as a scatterplot - and for some reason this won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish, I was able to track down the information needed to solve my issues - I'm confident that the input I need is already available some where out there.. My main problem is the fact that being new to QlikView, my QV-vocabulary lacks diversity and I have no clue as to what I should search for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All inputs are happily accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great day everyone,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 09:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/From-Excel-logic-to-QV-logic-Distinct-aggregation-scatterplot/m-p/394811#M1149409</guid>
      <dc:creator />
      <dc:date>2013-05-22T09:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: From Excel-logic to QV-logic: Distinct aggregation &amp; scatterplot</title>
      <link>https://community.qlik.com/t5/QlikView/From-Excel-logic-to-QV-logic-Distinct-aggregation-scatterplot/m-p/394812#M1149410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clearify, here's an example of the table I'd like to create (such that I can see it in the table viewer - and the link is "Customer"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="92" style="width: 278px; border: 1px solid #000000; height: 94px;" width="276"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sum of Sales&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Avg Margin&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;600&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;0.29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Chris&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;550&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;0.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Adam&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;1900&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;0.15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 09:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/From-Excel-logic-to-QV-logic-Distinct-aggregation-scatterplot/m-p/394812#M1149410</guid>
      <dc:creator />
      <dc:date>2013-05-22T09:52:40Z</dc:date>
    </item>
  </channel>
</rss>

