<?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: Problems with Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616030#M1103624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try to add total qualifier&lt;/P&gt;&lt;P&gt;so your expression will look like this&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;(SUM({&amp;lt;Measure = {'Number of Units Sold'}&amp;gt;} Value)/SUM({&amp;lt;Measure = {'Customer Count'}&amp;gt;} total &amp;lt;Month,Year&amp;gt; Value))*100&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 19:42:01 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2014-03-24T19:42:01Z</dc:date>
    <item>
      <title>Problems with Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616029#M1103622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm new here and this is my first post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I started using Qlikview a month ago and I have a problem that I've been struggling since then. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to track the evolution of my products through time, so I created a crosstable with a "Pivot Table" chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="crosstable.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55711_crosstable.png" style="width: 620px; height: 301px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But the calculation that I need to do for every month and product is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Calculation = (Number of Units Sold/Customer Count)*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So I used the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13956882514672410" jivemacro_uid="_13956882514672410" modifiedtitle="true"&gt;
&lt;P&gt;(SUM({&amp;lt;Measure = {'Number of Units Sold'}&amp;gt;} Value)/SUM({&amp;lt;Measure = {'Customer Count'},[Product Cod] = {'Products'}&amp;gt;} Value))*100&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The only problem is that when I do this my "Pivot Table" goes blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My fact table is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="table.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55712_table.png" style="width: 620px; height: 187px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I think the problem is that the "Pivot Table" searchs for the Customer Count for a specific product, when there is only Customer Count for the Product Cod "Products".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danilo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 19:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616029#M1103622</guid>
      <dc:creator />
      <dc:date>2014-03-24T19:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616030#M1103624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try to add total qualifier&lt;/P&gt;&lt;P&gt;so your expression will look like this&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit;"&gt;(SUM({&amp;lt;Measure = {'Number of Units Sold'}&amp;gt;} Value)/SUM({&amp;lt;Measure = {'Customer Count'}&amp;gt;} total &amp;lt;Month,Year&amp;gt; Value))*100&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 19:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616030#M1103624</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-03-24T19:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616031#M1103626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You helped me a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 20:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Pivot-Table/m-p/616031#M1103626</guid>
      <dc:creator />
      <dc:date>2014-03-24T20:00:51Z</dc:date>
    </item>
  </channel>
</rss>

