<?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 Data model association in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195594#M714604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;I think I need to refine my problem (I'll refer to your example).&lt;/P&gt;&lt;P&gt;The correlation between the ID and type is right (a1 of type a, b4 of type b...).&lt;BR /&gt;The major issue here is that 'Field1' can hold values like b2, c5 etc'.&lt;/P&gt;&lt;P&gt;For example, for object a1, 'Field1' will hold a value of b1, and 'Field2' will hold a value of c3.&lt;BR /&gt;When selecting a1, b1 and c3 will automatically be associated (picked) as well.&lt;/P&gt;&lt;P&gt;Today I came across "Semantic Links". Could this be a good direction?&lt;/P&gt;&lt;P&gt;Tomer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2009 02:24:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-24T02:24:20Z</dc:date>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195591#M714601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an object model with multiple object types (mapped as joined-subclass).&lt;BR /&gt;For example sake, let's say that i have a base class - 'base' and 3 inheriting objects - A, B, C.&lt;BR /&gt;Each object has a unique ID (the id is a string, comprised of the &amp;lt;type&amp;gt;+&amp;lt;generated number&amp;gt;)&lt;BR /&gt;[a1, a2, a3... b1, b2, b3... c1, c2, c3...]&lt;/P&gt;&lt;P&gt;I can have refrences from one object to others, while the linked type is unknown at design time (A has a field that can refer to B or C). Each type can have multiple links.&lt;/P&gt;&lt;P&gt;How can I associate the objects in QV? Meaning, if ONE = b2 how will be b2 still be selected when I pick a1?&lt;/P&gt;&lt;P&gt;Will appreciate your help,&lt;BR /&gt;Tomer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 02:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195591#M714601</guid>
      <dc:creator />
      <dc:date>2009-12-23T02:12:27Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195592#M714602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please refer to the Chapter 24.1 "Generic Databases" of the "QlikView Reference Manual" (p 479 for the V9 English version).&lt;/P&gt;&lt;P&gt;If you don't have it, please download it on www.qlik.com/download&lt;/P&gt;&lt;P&gt;it should helps you the tranform correctly your model into a QlikView compatible one.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2009 21:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195592#M714602</guid>
      <dc:creator />
      <dc:date>2009-12-23T21:54:29Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195593#M714603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I understand the question, but maybe this sort of structure?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Objects]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, Type, Field1, Field2&lt;BR /&gt;a1, a, 5, 10&lt;BR /&gt;a2, a, 15, 20&lt;BR /&gt;b1, b, 25,&lt;BR /&gt;b2, b, 30,&lt;BR /&gt;c1, c, , 35&lt;BR /&gt;c2 c, , 40&lt;BR /&gt;];&lt;BR /&gt;[Links]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, Link Type, Linked ID&lt;BR /&gt;a1, d, b1&lt;BR /&gt;a1, e, c1&lt;BR /&gt;a1, f, c2&lt;BR /&gt;b1, d, c2&lt;BR /&gt;b1, g, c2&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;In this case, objects of type a have both Field1 and Field2, objects of type b only have Field1, and objects of type c only have field2. We can then store any number of links retween these objects in a link table, with the link type describing what the relationship between the objects is. You might want to use a semantic load here instead of a regular load. Or if the relationships between objects are hierarchical, you might want to use a hierarchy load.&lt;/P&gt;&lt;P&gt;I'm not sure what you mean by "if ONE = b2 how will be b2 still be selected when I pick a1?" You can pick both b2 and a1 at the same time the same way you can pick two values in any list box, with a control click. But I'm guessing that isn't what you're asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 00:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195593#M714603</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-24T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195594#M714604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;&lt;P&gt;I think I need to refine my problem (I'll refer to your example).&lt;/P&gt;&lt;P&gt;The correlation between the ID and type is right (a1 of type a, b4 of type b...).&lt;BR /&gt;The major issue here is that 'Field1' can hold values like b2, c5 etc'.&lt;/P&gt;&lt;P&gt;For example, for object a1, 'Field1' will hold a value of b1, and 'Field2' will hold a value of c3.&lt;BR /&gt;When selecting a1, b1 and c3 will automatically be associated (picked) as well.&lt;/P&gt;&lt;P&gt;Today I came across "Semantic Links". Could this be a good direction?&lt;/P&gt;&lt;P&gt;Tomer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 02:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195594#M714604</guid>
      <dc:creator />
      <dc:date>2009-12-24T02:24:20Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195595#M714605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Field1 and Field2 in my model are SPECIFICALLY NOT links to other objects. If they WERE links to other objects, they would instead be implemented in the Links table. I was showing that you could associate information with an object directly, not just through links to other objects.&lt;/P&gt;&lt;P&gt;As I wrote it, selecting a1 will automatically "select" linked IDs b1 and c1, but only as linked IDs, which sounds like it isn't what you want. To be specific, if you select a1, and ask for sum(Field1), it will return 5, not 5+25 = 30. It sounds like you want all linked objects to be included, so you'd want the 5+25 = 30. But I'm still not clear exactly what you want here, and what your data is like. Do you just want that ID and directly-linked IDs to be included in totals? Do you want indirectly-linked IDs to be included? In other words, if a1 -&amp;gt; b1 -&amp;gt; d1 -&amp;gt; e1, do you want all four to be included in totals? Do the links form a hierarchy, or are they only a graph?&lt;/P&gt;&lt;P&gt;Regarding semantic links, that was what I was referring to when I said, "You might want to use a semantic load here instead of a regular load." I've never really been happy modeling graphs with semantic loads, but I'm sure they're perfect for some purposes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 03:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195595#M714605</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-24T03:02:03Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195596#M714606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't need the entire chain (a1 -&amp;gt; b1 -&amp;gt; d1 -&amp;gt; e1), just the direct links (a1-&amp;gt; b1).&lt;BR /&gt;I can't include the linked object's fields in the same table, because the objects have many fields.&lt;/P&gt;&lt;P&gt;To be specific:&lt;/P&gt;&lt;P&gt;I have some item groups (more than a few). Each group has its own hierarchy.&lt;/P&gt;&lt;P&gt;On the other hand, I have an organization tree - each employee has a parent, and several "free" links.&lt;BR /&gt;I'm calling them free because those Fields can point to any of the above groups.&lt;/P&gt;&lt;P&gt;I need to make a graphs that will show for each selected employee the items he "owns", according to their level in the hierarchy (a graph is specific for a group).&lt;BR /&gt;Let's say items of type A have 4 levels, and the links are only to the lower level of items (4th).&lt;/P&gt;&lt;P&gt;The graph should start at a specific level (2nd or 3rd) which will show the aggregated amounts of the 4th level (all the linked items). Clicking on the graph will drill down to the lower level - from 3=&amp;gt;4, and the showing the specific items and their amounts.&lt;/P&gt;&lt;P&gt;Can this issue be addressed inside the chart and not by the data model?&lt;/P&gt;&lt;P&gt;If I can't explain the model good enough I can make a small example and post a screenshot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 04:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195596#M714606</guid>
      <dc:creator />
      <dc:date>2009-12-24T04:12:46Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195597#M714607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is this the sort of information you want to store?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Jane Doe owns A131&lt;BR /&gt;John Doe owns A12, A132 and B27&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Employee Hierarchy:&lt;BR /&gt;L1 L2&lt;BR /&gt;Jane Doe -&amp;gt; John Doe&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Item Hierarchies:&lt;BR /&gt;L1 L2 L3 L4 Amount&lt;BR /&gt;A1 -&amp;gt; A12 -&amp;gt; A123 -&amp;gt; A1234 500&lt;BR /&gt; -&amp;gt; A1235 200&lt;BR /&gt; -&amp;gt; A124 -&amp;gt; A1241 100&lt;BR /&gt; -&amp;gt; A1242 300&lt;BR /&gt; -&amp;gt; A13 -&amp;gt; A131 -&amp;gt; A1311 700&lt;BR /&gt; -&amp;gt; A132 -&amp;gt; A1324 800&lt;BR /&gt;B2 -&amp;gt; B27 -&amp;gt; B271 -&amp;gt; B2719 400&lt;BR /&gt; -&amp;gt; B2710 500&lt;/P&gt;&lt;P&gt;Although item IDs in my example data tell you what their parent is, this wouldn't necessarily be true in your real data. It's just to help me keep things clear in the example, and we'd need to store the parentage in some other way. IDs are assumed to carry no meaning in your real data.&lt;/P&gt;&lt;P&gt;For the information above, you want a pivot table that initially looks like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Item Amount&lt;BR /&gt;Jane Doe A131 700&lt;BR /&gt;John Doe A12 1100&lt;BR /&gt; A132 800&lt;BR /&gt; B27 900&lt;/P&gt;&lt;P&gt;If you then click to expand A12, you want it to look like this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Item Item Amount&lt;BR /&gt;Jane Doe A131 700&lt;BR /&gt;John Doe A12 A123 700&lt;BR /&gt; A124 400&lt;BR /&gt; A132 800&lt;BR /&gt; B27 900&lt;/P&gt;&lt;P&gt;So far so good, or am I still hopelessly lost? Even if that's good so far, I have to confess that I'm not sure how to accomplish it, and will have to do some experimenting. I expect that the solution will involve a hierarchy load for the hierarchies themselves. Not sure if the links from the employees to the items they own should be semantic links or just regular data links. And then I'm not sure how to pull it all together into a chart.&lt;/P&gt;&lt;P&gt;And I'm leaving on a two week vacation in about 15 minutes, so... well, hopefully someone else can help you if this is urgent. If nobody solves it in the next couple weeks, feel free to send me a private message reminding me to look at this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 05:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195597#M714607</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-24T05:51:34Z</dc:date>
    </item>
    <item>
      <title>Data model association</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195598#M714608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I'm heading out. I'll attach what I have so far, which are items and employees in hierarchies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2009 06:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-association/m-p/195598#M714608</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-24T06:03:44Z</dc:date>
    </item>
  </channel>
</rss>

