<?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: Help with a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551960#M550263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qvdesign.wordpress.com/2012/09/21/informative-curvy-never-before-seen-by-me-at-least-the-associated-curve-chart/"&gt;http://qvdesign.wordpress.com/2012/09/21/informative-curvy-never-before-seen-by-me-at-least-the-associated-curve-chart/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="full-curve.png?w=640" class="jive-image" src="http://qvdesign.files.wordpress.com/2012/09/full-curve.png?w=640" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2013 16:17:39 GMT</pubDate>
    <dc:creator>DavidFoster1</dc:creator>
    <dc:date>2013-12-10T16:17:39Z</dc:date>
    <item>
      <title>Help with a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551958#M550261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt;,&lt;A href="https://community.qlik.com/qlik-users/2286"&gt;Rob Wunderlich&lt;/A&gt;,&lt;A href="https://community.qlik.com/qlik-users/17633"&gt;Miguel Angel Baeyens&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi I have a requirement where I need to create a pivot table with a Product field, which has to be used twice, both pivoted and non pivoted position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The metric that I need to calculate is a venn diagram which will calculate the number of customers which use the combinations of any two products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following is a sample of the resulting chart i need to create&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 320px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Product&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;C &lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #993366;"&gt;&lt;EM&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff6600; text-decoration: underline;"&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;&lt;EM&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;&lt;SPAN style="color: #ff6600; text-decoration: underline;"&gt;8&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;&lt;EM&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;&lt;SPAN style="color: #ff6600; text-decoration: underline;"&gt;10&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;&lt;EM style="color: #ff6600; text-decoration: underline;"&gt;4&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is available is Year, Quarter, Product, Country, Customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem on how to segregate the values for a pair of particular product types. I tried a lot of ways to create a combination of two products, but I am not able to get the correct numbers.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 09:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551958#M550261</guid>
      <dc:creator />
      <dc:date>2013-12-10T09:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551959#M550262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A classical Basket analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First: How do you define a "basket"? Is it if a customer has used the two products within a Quarter and in the same Country, or is it worldwide since the beginning of time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have defined your "basket", you should define an ID for that in the script. Further, you need to create a side table using&lt;/P&gt;&lt;P&gt;ProductB:&lt;/P&gt;&lt;P&gt;Load BasketID, Product as ProductB, ItemID as ItemB_ID Resident Baskets;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will get a data model like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image3.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50241_Image3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can create your pivot table using Product and ProductB as dimensions, and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(distinct If(ItemID&amp;lt;&amp;gt;ItemB_ID,BasketID))&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be possible to do all this in the pivot table using Set Analysis, Aggr and value loops, but it won't be easy...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 10:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551959#M550262</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-12-10T10:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551960#M550263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qvdesign.wordpress.com/2012/09/21/informative-curvy-never-before-seen-by-me-at-least-the-associated-curve-chart/"&gt;http://qvdesign.wordpress.com/2012/09/21/informative-curvy-never-before-seen-by-me-at-least-the-associated-curve-chart/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="full-curve.png?w=640" class="jive-image" src="http://qvdesign.files.wordpress.com/2012/09/full-curve.png?w=640" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 16:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551960#M550263</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2013-12-10T16:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551961#M550264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Basket" that I have to create is the count(customers+country) which use any &lt;STRONG&gt;pair&lt;/STRONG&gt; of products and it is for every quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I am thinking is to create a table which will give me the Country and Customers which use atleast two products and the combination of those every 2 products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I on the right track?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little help would be highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 12:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551961#M550264</guid>
      <dc:creator />
      <dc:date>2013-12-11T12:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551962#M550265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds to me as if your BasketID should be Quarter + Customer + Country:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter &amp;amp; '|' &amp;amp; Customer &amp;amp; '|' &amp;amp; Country as BasketID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the solution sketched above, but with this BasketID, I think it will work the way you want it. But you will need to have a selection of a single quarter, otherwise the expression will count the same customer several times - once per quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 14:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551962#M550265</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-12-11T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551963#M550266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome Henric!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 06:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-pivot-table/m-p/551963#M550266</guid>
      <dc:creator />
      <dc:date>2013-12-13T06:40:32Z</dc:date>
    </item>
  </channel>
</rss>

