<?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: Missing values from joined tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341841#M493808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 15:56:38 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-05-08T15:56:38Z</dc:date>
    <item>
      <title>Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341837#M493804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem with two joined tables when creating a chart with a dimension from one table that is not in the second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forecast table:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Forecast Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sales Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ProductID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;UnitID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Realised sales table:&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sales Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;ProductID&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;UnitID&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;REA Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show the realised sales for each forecast month (ie. Jan, Feb, Mar), for a given ProductID (ie. A, B, C).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading the two tables, qlikview automatically joins the two tables by Sales Month, ProductID and UnitID. If I sum over the Sales Month 'Mar' for the Realised sales table, I correctly get 20+20+9=49. However, if I select the Forecast Month 'Jan' and the ProductID 'A' I only get the values where the joined tables are identical. That is, I am missing UnitID '7' and only summing for ID 4 and 6, 20+20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically i have a table with the dimensions 'Forecast Month' and 'Sales Month' and the expression Sum([REA Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following statements without any luck: &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Forecast Month] +={$(=Null())}&amp;gt;}&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Forecast Month] +={''}&amp;gt;}&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Forecast Month] +={'-'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341837#M493804</guid>
      <dc:creator />
      <dc:date>2012-05-08T15:02:17Z</dc:date>
    </item>
    <item>
      <title>Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341838#M493805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Total &amp;lt;[Sales Month] [REA Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set expressions will not work because the set filtering is performed before the chart is built and hos no knowledge of the dimension values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above expression does not work, then it might be necessary to modify the data model. I suggest that you post a spreadsheet with some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341838#M493805</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-08T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341839#M493806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could solve it if you join the tables with a new field: the concatenation of Sales Month,ProductID and UnitID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, first load the Forecast table adding a new field like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales Month &amp;amp; '-' &amp;amp; ProductID &amp;amp; '-' &amp;amp; UnitID as %key&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, load the second table (Realised Sales) by joining it with the previous table with the same combination of fields named &lt;STRONG&gt;%key &lt;/STRONG&gt;too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LEFT JOIN(Forecast Table)&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales Month &amp;amp; '-' &amp;amp; ProductID &amp;amp; '-' &amp;amp; UnitID as %key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReaValue&lt;/P&gt;&lt;P&gt;FROM &amp;lt;Realised Sales data source&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Borja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341839#M493806</guid>
      <dc:creator />
      <dc:date>2012-05-08T15:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341840#M493807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried to rebuild the app. Can't see where QV should be wrong, see attached exam app. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Borja,&lt;/P&gt;&lt;P&gt;avoiding sync-tables isn't a bad idea, but it won't change anything in this case above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards to all&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341840#M493807</guid>
      <dc:creator />
      <dc:date>2012-05-08T15:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341841#M493808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 15:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341841#M493808</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-05-08T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341842#M493809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all very much for your responses!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'Total' from Jonathan solved a part of the problem, but I have now struck a new problem. I only wish to sum the next four months of the forecast, and it has proved to be quite difficult to add restrictions to the Sales Month after imposing the Total clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;P&gt;=If([Sales Month]&amp;gt;=AddMonths([Forecast Month],1) and [Sales Month]&amp;lt;=AddMonths([Forecast Month],4),SUM(Total &amp;lt;[Sales Month]&amp;gt; [REA Value]), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result looks very good when using a table containing the 'Sales month' as a dimension, but as soon as this is removed from the dimension list (to resemble a chart), it breaks down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to make an excel file and a test QV with test data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 16:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341842#M493809</guid>
      <dc:creator />
      <dc:date>2012-05-08T16:09:15Z</dc:date>
    </item>
    <item>
      <title>Missing values from joined tables</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341843#M493810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the issue by adding a dummy table that handled the links. The table was created after loading all the data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forecast_Chart_Dates:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Distinct ForecastMonth As ForecastMonth_Chart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ForecastMonth ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SalesMonth&lt;/P&gt;&lt;P&gt;Resident ForecastTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thank you for the valuable input above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 08:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-values-from-joined-tables/m-p/341843#M493810</guid>
      <dc:creator />
      <dc:date>2012-05-10T08:05:15Z</dc:date>
    </item>
  </channel>
</rss>

