<?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 Modeling Problem: How to show field values in a chart from 3 different tables over a &amp;quot;generic&amp;quot; dimension (e.g. time)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modeling-Problem-How-to-show-field-values-in-a-chart-from-3/m-p/130611#M605967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the following data model, containing the sales process from Order -&amp;gt; Delivery -&amp;gt; Invoice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="207548" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207548_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script. DateFormat has been set to 'MM-YYYY':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Table 1: Orders&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Orders:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; %KEY_Material_MonthYear, IDOrder, IDMaterial, OrderMonthYear, OrderValue&lt;BR /&gt; Mat1|10-2017, O1, Mat1, 10-2017, 1&lt;BR /&gt; Mat2|11-2017, O2, Mat2, 11-2017, 2&lt;BR /&gt; Mat1|12-2017, O3, Mat1, 12-2017, 1&lt;BR /&gt; Mat2|12-2017, O4, Mat2, 12-2017, 3&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Table 2: Deliveries&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Deliveries:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; %KEY_Material_MonthYear, IDDelivery, Material, DeliveryMonthYear, DeliveryValue&lt;BR /&gt; Mat1|10-2017, D1, Mat1, 10-2017, 1&lt;BR /&gt; Mat2|11-2017, D2, Mat2, 11-2017, 2&lt;BR /&gt; Mat1|12-2017, D3, Mat1, 12-2017, 1&lt;BR /&gt; Mat2|12-2017, D4, Mat2, 12-2017, 3&lt;BR /&gt; Mat3|01-2018, D5, Mat3, 01-2018, 1&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Table 3: Invoices&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Invoices:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; %KEY_Material_MonthYear, IDInvoice, Mat, InvoiceMonthYear, InvoiceValue&lt;BR /&gt; &lt;BR /&gt; Mat2|11-2017, I2, Mat2, 11-2017, 2&lt;BR /&gt; Mat1|12-2017, I3, Mat1, 12-2017, 1&lt;BR /&gt; Mat2|12-2017, I4, Mat2, 12-2017, 3&lt;BR /&gt; Mat3|01-2018, I5, Mat3, 01-2018, 1&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 3 tables are connected by a concatenaed key from the respective material + date of the transaction type (order / delivery / invoice). As you can see, the 3 fields "IDMaterial", "Material" and "Mat" are the same. They had to be renamed in order to avoid auto-key-building. Maybe this is already a flaw in my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I display the values in single charts (one per table), it is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="207549" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/207549_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to to create ONE chart with the "generic" dimension "MonthYear"&amp;nbsp; (irrespective of the transaction type)&amp;nbsp; and all 3 expressions "OrderValue", "DeliveryValue" and "InvoiceValue". But I do not have this generic dimension that is associated with all 3 tables. I only have one distinct "MonthYear" field in every table. If I try to show the values over one of these fields, there naturally is a problem. For example, in the "Order" table, there are only values for 10-2017 till 12-2017. But there are a delivery and and invoice in 01-2018. As 01-2018 does not exist in the OrderMonthYear dimension values, it is "null":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="207550" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/207550_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question ist: How can I create an "integrated MonthYear" dimension which can collect ALL order, delivery and invoice values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can do it a) in the data model by creating an aggregation table or b) in the layout with some expression. But I do not know how. In solution a) there would also be the problem that I would have all the values per MonthYear, yes. But then I lose the connection to the Material which also has to be applicable as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the QVW. Thank you very much for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2018 09:04:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-11T09:04:56Z</dc:date>
    <item>
      <title>Data Modeling Problem: How to show field values in a chart from 3 different tables over a "generic" dimension (e.g. time)?</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-Problem-How-to-show-field-values-in-a-chart-from-3/m-p/130611#M605967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the following data model, containing the sales process from Order -&amp;gt; Delivery -&amp;gt; Invoice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="207548" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207548_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script. DateFormat has been set to 'MM-YYYY':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Table 1: Orders&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Orders:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; %KEY_Material_MonthYear, IDOrder, IDMaterial, OrderMonthYear, OrderValue&lt;BR /&gt; Mat1|10-2017, O1, Mat1, 10-2017, 1&lt;BR /&gt; Mat2|11-2017, O2, Mat2, 11-2017, 2&lt;BR /&gt; Mat1|12-2017, O3, Mat1, 12-2017, 1&lt;BR /&gt; Mat2|12-2017, O4, Mat2, 12-2017, 3&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Table 2: Deliveries&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Deliveries:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; %KEY_Material_MonthYear, IDDelivery, Material, DeliveryMonthYear, DeliveryValue&lt;BR /&gt; Mat1|10-2017, D1, Mat1, 10-2017, 1&lt;BR /&gt; Mat2|11-2017, D2, Mat2, 11-2017, 2&lt;BR /&gt; Mat1|12-2017, D3, Mat1, 12-2017, 1&lt;BR /&gt; Mat2|12-2017, D4, Mat2, 12-2017, 3&lt;BR /&gt; Mat3|01-2018, D5, Mat3, 01-2018, 1&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Table 3: Invoices&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Invoices:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; %KEY_Material_MonthYear, IDInvoice, Mat, InvoiceMonthYear, InvoiceValue&lt;BR /&gt; &lt;BR /&gt; Mat2|11-2017, I2, Mat2, 11-2017, 2&lt;BR /&gt; Mat1|12-2017, I3, Mat1, 12-2017, 1&lt;BR /&gt; Mat2|12-2017, I4, Mat2, 12-2017, 3&lt;BR /&gt; Mat3|01-2018, I5, Mat3, 01-2018, 1&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 3 tables are connected by a concatenaed key from the respective material + date of the transaction type (order / delivery / invoice). As you can see, the 3 fields "IDMaterial", "Material" and "Mat" are the same. They had to be renamed in order to avoid auto-key-building. Maybe this is already a flaw in my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I display the values in single charts (one per table), it is correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="207549" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/207549_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I want to to create ONE chart with the "generic" dimension "MonthYear"&amp;nbsp; (irrespective of the transaction type)&amp;nbsp; and all 3 expressions "OrderValue", "DeliveryValue" and "InvoiceValue". But I do not have this generic dimension that is associated with all 3 tables. I only have one distinct "MonthYear" field in every table. If I try to show the values over one of these fields, there naturally is a problem. For example, in the "Order" table, there are only values for 10-2017 till 12-2017. But there are a delivery and and invoice in 01-2018. As 01-2018 does not exist in the OrderMonthYear dimension values, it is "null":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="207550" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/207550_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question ist: How can I create an "integrated MonthYear" dimension which can collect ALL order, delivery and invoice values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can do it a) in the data model by creating an aggregation table or b) in the layout with some expression. But I do not know how. In solution a) there would also be the problem that I would have all the values per MonthYear, yes. But then I lose the connection to the Material which also has to be applicable as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the QVW. Thank you very much for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-Problem-How-to-show-field-values-in-a-chart-from-3/m-p/130611#M605967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-11T09:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling Problem: How to show field values in a chart from 3 different tables over a "generic" dimension (e.g. time)?</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modeling-Problem-How-to-show-field-values-in-a-chart-from-3/m-p/130612#M605968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMO your datamodel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;"containing the sales process from Order -&amp;gt; Delivery -&amp;gt; Invoice"&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;couldn't work. Because linking them over the different date-fields from the tables and the Material don't lead to a sensible datamodel. I suggest a linking over the OrderID and Material is outsourced within a dimension-table and maybe linked to the order-table. To get rid of the different date-fields isn't easy because you need something like: &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 12:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modeling-Problem-How-to-show-field-values-in-a-chart-from-3/m-p/130612#M605968</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-07-12T12:15:41Z</dc:date>
    </item>
  </channel>
</rss>

