<?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 DataMart type 1 hdr key_id add rows id 0 and -1 in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/DataMart-type-1-hdr-key-id-add-rows-id-0-and-1/m-p/2471488#M2503</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi, please&lt;/P&gt;
&lt;P&gt;When I created a data mart with Qlik Cloud Data Integration,&lt;/P&gt;
&lt;P&gt;The task add 2 rows for id 0 and -1.&lt;/P&gt;
&lt;P&gt;Why this happens?&lt;/P&gt;
&lt;P&gt;Can this be prevented from happening?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lguevara_0-1721232492505.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169512iBA470F79099DCDFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lguevara_0-1721232492505.png" alt="lguevara_0-1721232492505.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 21:58:43 GMT</pubDate>
    <dc:creator>lguevara</dc:creator>
    <dc:date>2025-03-19T21:58:43Z</dc:date>
    <item>
      <title>DataMart type 1 hdr key_id add rows id 0 and -1</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/DataMart-type-1-hdr-key-id-add-rows-id-0-and-1/m-p/2471488#M2503</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi, please&lt;/P&gt;
&lt;P&gt;When I created a data mart with Qlik Cloud Data Integration,&lt;/P&gt;
&lt;P&gt;The task add 2 rows for id 0 and -1.&lt;/P&gt;
&lt;P&gt;Why this happens?&lt;/P&gt;
&lt;P&gt;Can this be prevented from happening?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lguevara_0-1721232492505.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169512iBA470F79099DCDFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lguevara_0-1721232492505.png" alt="lguevara_0-1721232492505.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 21:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/DataMart-type-1-hdr-key-id-add-rows-id-0-and-1/m-p/2471488#M2503</guid>
      <dc:creator>lguevara</dc:creator>
      <dc:date>2025-03-19T21:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: DataMart type 1 hdr key_id add rows id 0 and -1</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/DataMart-type-1-hdr-key-id-add-rows-id-0-and-1/m-p/2471577#M2507</link>
      <description>&lt;P&gt;Hello,. this cannot be prevented from happening - these are 'reserved' dimension rows to support late-arriving and 'Unknown' dimension processing.&lt;/P&gt;
&lt;P&gt;For example&amp;nbsp; lets say you have ORDER fact with a SHIPPER column that is the business key for the SHIPPER dimension.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the ORDER fact record has not been shipped yet, and thus has NULL for the SHIPPER column, it will get related to the '0' record - which denotes an Unknown for the dimension.&amp;nbsp; &amp;nbsp; &amp;nbsp;When the fact source gets updated to have a SHIPPER value (e.g USPS) - it would then update to the appropriate dimension id.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a late-arriving dimension scenario for example the SHIPPER has a value of "NEWSHIP" for a new shipper and that business key does not exist in your DIM_SHIPPER dimension,&amp;nbsp; the data mart processing will relate that fact to the -1 row.&amp;nbsp; This denotes a missing dimension member in your dimension table.&amp;nbsp; &amp;nbsp;When the "NEWSHIP" business key arrives for teh DIM_SHIPPER dimension - its dimension row will be created, and the fact record updated to align to the previously missing dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this makes sense as to the processing characteristics and use of the -1 (late-arriving) and 0 (NULL business key) members in the dimension tables.&lt;/P&gt;
&lt;P&gt;Once the 'E&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 19:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/DataMart-type-1-hdr-key-id-add-rows-id-0-and-1/m-p/2471577#M2507</guid>
      <dc:creator>TimGarrod</dc:creator>
      <dc:date>2024-07-18T19:51:02Z</dc:date>
    </item>
  </channel>
</rss>

