<?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 Qlik Compose relationship with hard-coded value in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/Qlik-Compose-relationship-with-hard-coded-value/m-p/1955461#M682</link>
    <description>&lt;P&gt;Source system has 1 status table that contains all statuses for multiple tables.&amp;nbsp;How can this be implemented in Qlik Compose ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select * from Incident&lt;BR /&gt;join&amp;nbsp;&lt;SPAN&gt;Status on incident.status_cde = status.status_cde and status.object_type_cde=&lt;STRONG&gt;'Incident'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Select * from webform&lt;BR /&gt;join&amp;nbsp;&lt;SPAN&gt;Status on webform.status_cde = status.status_cde and status.object_type_cde&lt;STRONG&gt;='Webform'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;A hard-coded value cannot be specified in the Model relationship...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
    <dc:creator>Pierre_G</dc:creator>
    <dc:date>2025-03-14T20:49:07Z</dc:date>
    <item>
      <title>Qlik Compose relationship with hard-coded value</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Qlik-Compose-relationship-with-hard-coded-value/m-p/1955461#M682</link>
      <description>&lt;P&gt;Source system has 1 status table that contains all statuses for multiple tables.&amp;nbsp;How can this be implemented in Qlik Compose ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select * from Incident&lt;BR /&gt;join&amp;nbsp;&lt;SPAN&gt;Status on incident.status_cde = status.status_cde and status.object_type_cde=&lt;STRONG&gt;'Incident'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Select * from webform&lt;BR /&gt;join&amp;nbsp;&lt;SPAN&gt;Status on webform.status_cde = status.status_cde and status.object_type_cde&lt;STRONG&gt;='Webform'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;A hard-coded value cannot be specified in the Model relationship...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Qlik-Compose-relationship-with-hard-coded-value/m-p/1955461#M682</guid>
      <dc:creator>Pierre_G</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Compose relationship with hard-coded value</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/Qlik-Compose-relationship-with-hard-coded-value/m-p/1955469#M683</link>
      <description>&lt;P&gt;There are 2 ways to handle this in Compose.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 1 -&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Model specific "LOOKUP" tables that represent each type of lookup.&amp;nbsp; &amp;nbsp;In your simplified scenario, that would mean having a "Incident_Status"&amp;nbsp; and "Webform_Status" - and in the mapping for the 2 status tables, add the filter for "incident" and "webform" types.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Benefit of this, is any dimension etc. you create in the data mart has a well defined set of initial data and the universal lookup table is broken into its specific domain parts.&amp;nbsp; &amp;nbsp; Con - you have to manage multiple tables in the DWH Model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 2 -&amp;nbsp; &amp;nbsp;Have 1 "Status" table.&amp;nbsp; &amp;nbsp;The "hard-coded"value would be handled in the ETL.&amp;nbsp; &amp;nbsp;e.g. the Status table PK would need to include "status_cde" and "object_type_cde".&amp;nbsp; In the mapping for "Incident" - you would have status_cde mapped, and would hard code 'Incident' for the object_type_cde.&amp;nbsp; &amp;nbsp;Likewsie for 'Webform'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 21:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/Qlik-Compose-relationship-with-hard-coded-value/m-p/1955469#M683</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2022-07-13T21:22:29Z</dc:date>
    </item>
  </channel>
</rss>

