<?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 Graph data from 2 tables, inner join type relationship in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155175#M31521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering my question.&lt;/P&gt;&lt;P&gt;I added another twist that is causing me issues.&lt;/P&gt;&lt;P&gt;I now have multiple dates for both transactions and capacity.&lt;/P&gt;&lt;P&gt;So each train departs on a particular date. The problem now is that&lt;/P&gt;&lt;P&gt;- I want to sum the capacity for each date to determine the total capacity, but since the table is linked to the transactions my sum() sums capacity * (# transactions).&lt;/P&gt;&lt;P&gt;What i want is for it to sum(transactions) from transaction table as metric 1 and metric 2 is sum(capacity) from capacity table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;Bernard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jun 2010 20:10:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-24T20:10:17Z</dc:date>
    <item>
      <title>Graph data from 2 tables, inner join type relationship</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155173#M31519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I want to graph data from 2 tables, where my 1st table may not have a record in the 2nd table. I want to show all metrics using data from the 2nd table and if the 1st table has records, add those to the metric.&lt;/P&gt;&lt;P&gt;Bookings Table&lt;BR /&gt;ID From_Statn To_Station PAX&lt;BR /&gt;1 0 5 5&lt;BR /&gt;2 0 2 1&lt;BR /&gt;3 2 4 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Capacity Table: (the "onBoard" includes the PAX from the bookings table.)&lt;BR /&gt;Station Capacity Onboard&lt;BR /&gt;0 100 6&lt;BR /&gt;1 100 6&lt;BR /&gt;2 100 8&lt;BR /&gt;3 100 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Bar chart the following having the "Station" on the X-Axis.&lt;BR /&gt;Stack Chart that shows Current onboard, broken down by onboard and boarding.&lt;/P&gt;&lt;P&gt;Boarding: Sum(PAX) at the station level&lt;BR /&gt;OnBoard: Onboard - sum(pax) group by Station&lt;/P&gt;&lt;P&gt;However, i do not have PAX Bookings getting on at Stop 1, so i dont get a bar for that since the link between the 2 tables is the Station.&lt;/P&gt;&lt;P&gt;O = Onboard&lt;BR /&gt;B=Boarindg&lt;/P&gt;&lt;P&gt;B O B&lt;BR /&gt;B O B&lt;BR /&gt;B O B&lt;BR /&gt;B O O&lt;BR /&gt;B O O&lt;BR /&gt;B O O&lt;/P&gt;&lt;P&gt;0 1 2 3 4&lt;BR /&gt;Station is X-Axis&lt;/P&gt;&lt;P&gt;Any help appreciated!&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 23:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155173#M31519</guid>
      <dc:creator />
      <dc:date>2010-05-18T23:34:58Z</dc:date>
    </item>
    <item>
      <title>Graph data from 2 tables, inner join type relationship</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155174#M31520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView's associative data model "joins" tables together based of fields that are identically named in both tables. If you rename From_Statn as Station, QlikView will see the same column in two tables and associate these tables based on Station.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7356.train_5F00_capacity.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7356.train_5F00_capacity.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm having difficulty attaching the QVW file, so here is the inline data used in the load script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Bookings:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Id, Station, To_Station, PAX&lt;BR /&gt; 1, 0, 5, 5&lt;BR /&gt; 2, 0, 2, 1&lt;BR /&gt; 3, 2, 4, 3&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Capacity:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Station, Capacity, OnBoard&lt;BR /&gt; 0, 100, 6&lt;BR /&gt; 1, 100, 6&lt;BR /&gt; 2, 100, 8&lt;BR /&gt; 3, 100, 12&lt;BR /&gt;];&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 01:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155174#M31520</guid>
      <dc:creator />
      <dc:date>2010-05-19T01:56:22Z</dc:date>
    </item>
    <item>
      <title>Graph data from 2 tables, inner join type relationship</title>
      <link>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155175#M31521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answering my question.&lt;/P&gt;&lt;P&gt;I added another twist that is causing me issues.&lt;/P&gt;&lt;P&gt;I now have multiple dates for both transactions and capacity.&lt;/P&gt;&lt;P&gt;So each train departs on a particular date. The problem now is that&lt;/P&gt;&lt;P&gt;- I want to sum the capacity for each date to determine the total capacity, but since the table is linked to the transactions my sum() sums capacity * (# transactions).&lt;/P&gt;&lt;P&gt;What i want is for it to sum(transactions) from transaction table as metric 1 and metric 2 is sum(capacity) from capacity table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;P&gt;Bernard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jun 2010 20:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Graph-data-from-2-tables-inner-join-type-relationship/m-p/155175#M31521</guid>
      <dc:creator />
      <dc:date>2010-06-24T20:10:17Z</dc:date>
    </item>
  </channel>
</rss>

