<?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 Create two tables with a parent-child relationship in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898249#M1012458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Qlikview to generate a number of reports. I have one general template which creates a standard report, and custom templates that contain slight modifications of the standard report. Currently, I created the tables for both the standard and custom template separately. This is an example of what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A (standard report):&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;Dimension&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Expression 1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B (custom report):&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;Dimension&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression 1&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;Expression 2&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;Expression 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;87&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, both tables show exactly the same dimensions and most of the expressions. The only difference is that the second table contains one more expression (which is defined in the standard report table as well, but not enabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue comes &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;when I need to make structural changes (e.g. adding a field to all report tables): in this example, I would need to manually modify both tables to add a new expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to link tables in a parent-child relationship? By this I mean having tables A and B such that any changes in table A are automatically applied to table B as well, but changes to table B are not applied to table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explored link objects, but they put both objects on an equal ranking and apply changes to both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 18:55:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-23T18:55:45Z</dc:date>
    <item>
      <title>Create two tables with a parent-child relationship</title>
      <link>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898249#M1012458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Qlikview to generate a number of reports. I have one general template which creates a standard report, and custom templates that contain slight modifications of the standard report. Currently, I created the tables for both the standard and custom template separately. This is an example of what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A (standard report):&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;Dimension&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Expression 1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B (custom report):&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;Dimension&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Expression 1&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;Expression 2&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;Expression 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;87&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, both tables show exactly the same dimensions and most of the expressions. The only difference is that the second table contains one more expression (which is defined in the standard report table as well, but not enabled).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue comes &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;when I need to make structural changes (e.g. adding a field to all report tables): in this example, I would need to manually modify both tables to add a new expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to link tables in a parent-child relationship? By this I mean having tables A and B such that any changes in table A are automatically applied to table B as well, but changes to table B are not applied to table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explored link objects, but they put both objects on an equal ranking and apply changes to both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 18:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898249#M1012458</guid>
      <dc:creator />
      <dc:date>2015-04-23T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create two tables with a parent-child relationship</title>
      <link>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898250#M1012459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that's not possible. You can create variables that contain dimension names or expressions and reuse them in the chart so that changing the content of a variable will be reflected in all the charts where the variable is used. But the scenario you describe is not possible. Well, I suppose you could start mucking about with macro's, but that can get very messy very quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 05:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898250#M1012459</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-24T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create two tables with a parent-child relationship</title>
      <link>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898251#M1012460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually realized a way around this, by using 'conditional' conditions on most custom expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I can create one table that contains all possible expressions; I then need a field list which tells me whether I am running a standard or custom report. Finally, I can use conditional on all custom expressions in the table based on the values taken on by the field list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not 100% optimal, I would still need to create some additional tables when expressions are substantially different, but it's an improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Apr 2015 13:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-two-tables-with-a-parent-child-relationship/m-p/898251#M1012460</guid>
      <dc:creator />
      <dc:date>2015-04-25T13:54:55Z</dc:date>
    </item>
  </channel>
</rss>

