<?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: One dimension made from two different dimensioins in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481140#M480814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Gysbert, and I don't think that a crosstable is too demanding for the system!!&lt;/P&gt;&lt;P&gt;If you want you can post your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Nov 2013 14:31:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-05T14:31:06Z</dc:date>
    <item>
      <title>One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481137#M480811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I already searched the web and this forum and asked a bunch of people, but no one seemed to have an answer to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our users come from a source, click through our system and go to a sink afterward. Now sink and source are from the same pool of partners, so we would like to have a table with the partners as dimension, where we can show certain clicks sorted by source in one column and those clicks sorted by sink in the next column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is loaded in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;user&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;source&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;sink&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;User 4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Partner 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and we would like to have the following table of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Partner&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;# as source&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;# as sink&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Partner&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;STRONG&gt;# as source&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;&lt;STRONG&gt;# as sink&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;sum&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Partner 3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the sum, we could use two different tables, but like this, it doesn't work unfortunately.&lt;/P&gt;&lt;P&gt;I tried to use source and sink as dimensions, then limit the second dimension by the first and restrict the sums by the first resp. by the second dimension, but this doesn't seem to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have quite large tables (a couple of Gigabytes per table) and we already did an aggregation per day and still need up to 20GB RAM, so we would like to avoid loading double data. Is there a way to get the second table from the first one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 12:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481137#M480811</guid>
      <dc:creator />
      <dc:date>2013-11-05T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481138#M480812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the data so it is in this form instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User, Partner, Type&lt;/P&gt;&lt;P&gt;User 1, Partner 1, Source&lt;/P&gt;&lt;P&gt;User 1, Partner 3, Sink&lt;/P&gt;&lt;P&gt;User 2, Partner 2, Source&lt;/P&gt;&lt;P&gt;User 2, Partner 1, Sink&lt;/P&gt;&lt;P&gt;...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use Partner as dimension and expressions like:&lt;/P&gt;&lt;P&gt;Source: count({&amp;lt;Type={'Source'}&amp;gt;} User)&lt;/P&gt;&lt;P&gt;Sink: count({&amp;lt;Type={'Sink'}&amp;gt;} User)&lt;/P&gt;&lt;P&gt;Total: count(User)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 12:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481138#M480812</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-05T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481139#M480813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. I thought about a reformatting like this as well. But unfortunately a refomatting won't work, since our table is much bigger than this example and the redundancies will make the needs for RAM explode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the only solution though, we need a better system, I just hoped, there could be a solution avoiding this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481139#M480813</guid>
      <dc:creator />
      <dc:date>2013-11-05T14:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481140#M480814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Gysbert, and I don't think that a crosstable is too demanding for the system!!&lt;/P&gt;&lt;P&gt;If you want you can post your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 14:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481140#M480814</guid>
      <dc:creator />
      <dc:date>2013-11-05T14:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481141#M480815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you actually tested that? Try it on a limited set of a couply of million records. Another thing you could try is to generate id numbers for users and partners with the autonumber function. Such fields compress pretty good. And you could use a flag field for Source/Sink. Though it has a cardinality of only two already. So QV will use one bit per record for the pointers to the symbol table. See this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/20/symbol-tables-and-bit-stuffed-pointers" style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Symbol Tables and Bit-Stuffed Pointers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I don't think you have an alternative. Trying to 'fix' this in the UI is going to perform far worse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2013 15:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481141#M480815</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-05T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481142#M480816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very interesting link, thanks for that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;My first quick test with loading those data a second time resulted in a very large file. But probably there is very much to be optimized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 16:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481142#M480816</guid>
      <dc:creator />
      <dc:date>2013-11-06T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: One dimension made from two different dimensioins</title>
      <link>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481143#M480817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it and it worked. Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 11:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-dimension-made-from-two-different-dimensioins/m-p/481143#M480817</guid>
      <dc:creator />
      <dc:date>2013-11-14T11:04:36Z</dc:date>
    </item>
  </channel>
</rss>

