<?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 Re: summarize by one dimension in two dimension table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103460#M521653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solution is way better&lt;SPAN style="font-size: 13.3333px;"&gt; in terms of performance and simplicity than the one I proposed myself!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 09:10:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-10T09:10:32Z</dc:date>
    <item>
      <title>summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103454#M521647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables in my data model, one contains purchases from suppliers and contains sales offers to clients. My client buys products from suppliers and those products are then offered to clients. Between these two tables, only thing in common is the product number. So I cannot link purchases to sales offers and therefore tables are concatenated instead of joining them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I need to a report which has purchases and &lt;STRONG&gt;per supplier and product&lt;/STRONG&gt; and sales offer success ratio &lt;STRONG&gt;per product&lt;/STRONG&gt;. So my table looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="200" style="width: 797px; height: 202px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Common field&lt;/TD&gt;&lt;TD colspan="1"&gt;Only in purchases&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Only in purchases&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Only in purchases&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;Only in sales offers&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="19" width="114"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" width="121"&gt;&lt;STRONG&gt;Supplier&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;&lt;STRONG&gt;Amount&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;&lt;STRONG&gt;Qty&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" width="64"&gt;&lt;STRONG&gt;Hit Ratio&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" width="114"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="121"&gt;Supplier A&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;100&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="64"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;" width="114"&gt;Product 1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="121"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;10 %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;" width="114"&gt;Product 2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="121"&gt;Supplier A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;200&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;20&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;" width="114"&gt;Product 2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="121"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;20 %&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;" width="114"&gt;Product 3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="121"&gt;Supplier A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;300&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;30&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;" width="114"&gt;Product 3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;" width="121"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="64"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;" width="64"&gt;30 %&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I'd like to get that Hit Ratio on same row as Amount and Qty. Problem is that Sales Offers is not present in Sales offers table and therefore I get two rows. I tried using Aggr function (=aggr(sum([Hit Ratio], Product) but that seemed to work only when I had Product selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of getting that Hit Ratio on same row in chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 05:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103454#M521647</guid>
      <dc:creator />
      <dc:date>2016-06-01T05:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103455#M521648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pekka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you able to upload an example QVW which illustrates the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 09:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103455#M521648</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2016-06-01T09:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103456#M521649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(AmountExpression &amp;gt; 0, Sum(TOTAL &amp;lt;ProductDimension&amp;gt; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[Hit Ratio]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103456#M521649</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T10:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103457#M521650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the replies. I'd rather not upload the .qvw since the data is my clients and I'm under quite strict NDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think I got it working by applying AGGR function to Amount and Qty as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Amount:&lt;/STRONG&gt; AGGR(Sum(Amount), Product, Supplier)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Qty: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;AGGR(Sum(Qty), Product, Supplier)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hit Ratio: &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AGGR(sum(Missed)/sum(Offered), Product)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution provided by Sunny might work as well but I haven't tried it yet.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103457#M521650</guid>
      <dc:creator />
      <dc:date>2016-06-01T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103458#M521651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should atleast give it a shot because Aggr can lower the performance. But I will leave for you to decide if you want to give it a shot or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 11:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103458#M521651</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103459#M521652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will give it a try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; I'll let you know if it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 11:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103459#M521652</guid>
      <dc:creator />
      <dc:date>2016-06-01T11:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: summarize by one dimension in two dimension table</title>
      <link>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103460#M521653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solution is way better&lt;SPAN style="font-size: 13.3333px;"&gt; in terms of performance and simplicity than the one I proposed myself!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 09:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/summarize-by-one-dimension-in-two-dimension-table/m-p/1103460#M521653</guid>
      <dc:creator />
      <dc:date>2016-06-10T09:10:32Z</dc:date>
    </item>
  </channel>
</rss>

