<?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 Percentage per dimension in line chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Percentage-per-dimension-in-line-chart/m-p/462152#M172595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try hardly to solve the following problem. I would like to normalize values of three characteristic of an attribute. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume having a simple database describing &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how much Customer A, B and C&lt;/LI&gt;&lt;LI&gt;bought in Quarter 1, 2, 3 and 4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(simple table with attributes Quarter, Customer, Amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to figure out if they have similar buying patterns regarding seasons. In chart one below this is hardly possible because customer A buys much more than the other ones. &lt;/P&gt;&lt;P&gt;In the second chart it is better possible to see if the have quite similar buying behaviour over time or not. Each client total sum is normalized to 100% and distributed over the four quarters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION: &lt;/STRONG&gt;How is the formula / expression (in qlikview) for the second chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following expression is quite close to the expected result; but not yet what I would like to have. &lt;/P&gt;&lt;P&gt;sum(Amount) / sum(Total &amp;lt;Customer&amp;gt; Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;Thanks a lot in advance&lt;/P&gt;&lt;P&gt;Luk&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27698" class="jive-image-thumbnail jive-image" onclick="" alt="Untitled-1.jpg" src="https://community.qlik.com/legacyfs/online/27698_Untitled-1.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Dec 2012 22:47:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-22T22:47:54Z</dc:date>
    <item>
      <title>Percentage per dimension in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-per-dimension-in-line-chart/m-p/462152#M172595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try hardly to solve the following problem. I would like to normalize values of three characteristic of an attribute. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume having a simple database describing &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how much Customer A, B and C&lt;/LI&gt;&lt;LI&gt;bought in Quarter 1, 2, 3 and 4&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(simple table with attributes Quarter, Customer, Amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to figure out if they have similar buying patterns regarding seasons. In chart one below this is hardly possible because customer A buys much more than the other ones. &lt;/P&gt;&lt;P&gt;In the second chart it is better possible to see if the have quite similar buying behaviour over time or not. Each client total sum is normalized to 100% and distributed over the four quarters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION: &lt;/STRONG&gt;How is the formula / expression (in qlikview) for the second chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following expression is quite close to the expected result; but not yet what I would like to have. &lt;/P&gt;&lt;P&gt;sum(Amount) / sum(Total &amp;lt;Customer&amp;gt; Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? &lt;/P&gt;&lt;P&gt;Thanks a lot in advance&lt;/P&gt;&lt;P&gt;Luk&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27698" class="jive-image-thumbnail jive-image" onclick="" alt="Untitled-1.jpg" src="https://community.qlik.com/legacyfs/online/27698_Untitled-1.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Dec 2012 22:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-per-dimension-in-line-chart/m-p/462152#M172595</guid>
      <dc:creator />
      <dc:date>2012-12-22T22:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage per dimension in line chart</title>
      <link>https://community.qlik.com/t5/QlikView/Percentage-per-dimension-in-line-chart/m-p/462153#M172596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may load the data using the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cust, Q, Val&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 1, 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 2, 1750&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 3, 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 4, 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 1, 200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 2, 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 3, 230&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 4, 250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 1, 150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 2, 250&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 3, 300&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 4, 150&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions and expression for the first multi-line chart are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension 1 : Q&lt;/P&gt;&lt;P&gt;Dimension 2 : Cust&lt;/P&gt;&lt;P&gt;Expression&amp;nbsp; : Sum(Val)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimensions and expressions for the second multi-line chart are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension 1 : Q&lt;/P&gt;&lt;P&gt;Dimension 2 : Cust&lt;/P&gt;&lt;P&gt;Expression&amp;nbsp; : Sum(Val)/Sum(TOTAL&amp;lt;Cust&amp;gt; Val)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample qvw file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Dec 2012 00:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Percentage-per-dimension-in-line-chart/m-p/462153#M172596</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-12-23T00:57:41Z</dc:date>
    </item>
  </channel>
</rss>

