<?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: How to add a 'Unknown' value/record in dimension table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124428#M627925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tracy and Kushal for your quick and helpful replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a sort of combo of both your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with the AutoGenerate statement Tracy. Does it mean in this case that it only adds 1 row?&lt;/P&gt;&lt;P&gt;And if I replace the '1' value with 10, it would add 10 rows (with the 'Unknown' value)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used an 'concatenate &amp;amp; inline' solution, but I wanted to get a nice record like;&lt;/P&gt;&lt;P&gt;Unknown | Unknown_CostCenter | 01-01-2016 | 31-12-9999 | Unknown ledger |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed (added all columns) the inline-solution provided by Kushal a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 15:52:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-17T15:52:35Z</dc:date>
    <item>
      <title>How to add a 'Unknown' value/record in dimension table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124425#M627922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikviewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am designing and implementing a dimensional model in Qlikview. But I'm having some issues with empty fields in my fact table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The situation:&lt;/P&gt;&lt;P&gt;I load a fact table with multiple sorts of costs, both actuals and budgets. This 'cost fact table' is a concatenation of the actuals and the budgets.&lt;/P&gt;&lt;P&gt;However, all the budget records have a cost center, and the actuals don't.&lt;/P&gt;&lt;P&gt;In my fact table I am perfectly able to populate these empty cost center fields with 'Unknown'. With something like =&amp;gt; (if(isnull(costcenterKEY), 'Unknown', costcenterKEY))&lt;/P&gt;&lt;P&gt;My dimension table 'cost center' does not have a record/value 'Unknown'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;How do I get this 'Unknown' record/value in my cost center dimension table? (which comes straight from a SAP DB)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124425#M627922</guid>
      <dc:creator />
      <dc:date>2016-08-17T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 'Unknown' value/record in dimension table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124426#M627923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;You can append the unknown value in dimension table and link it with Fact table key&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CostCenterDimension:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;STRONG&gt;CostCenter&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM table;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Concatenate(&lt;SPAN style="font-size: 13.3333px;"&gt;CostCenterDimension)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;LOAD * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;CostCenter&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Unknown &lt;SPAN style="font-size: 13.3333px;"&gt; ];&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CosctCenter:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;CostCenter&amp;nbsp; as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;costcenterKEY&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident &lt;SPAN style="font-size: 13.3333px;"&gt;CostCenterDimension;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;CostCenterDimension;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&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; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(isnull(costcenterKEY), 'Unknown', &lt;STRONG&gt;costcenterKEY&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FROM Fact;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 12:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124426#M627923</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-08-17T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 'Unknown' value/record in dimension table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124427#M627924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Concatenate&lt;/SPAN&gt; (MyDimensionTable)&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;Load&lt;/STRONG&gt;&lt;BR /&gt; 'Unknown' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; costcenterKEY&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;AutoGenerate&lt;/SPAN&gt;(1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the table has other columns to populate with values then just add to the Load statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 13:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124427#M627924</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2016-08-17T13:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 'Unknown' value/record in dimension table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124428#M627925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tracy and Kushal for your quick and helpful replies!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a sort of combo of both your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not familiar with the AutoGenerate statement Tracy. Does it mean in this case that it only adds 1 row?&lt;/P&gt;&lt;P&gt;And if I replace the '1' value with 10, it would add 10 rows (with the 'Unknown' value)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used an 'concatenate &amp;amp; inline' solution, but I wanted to get a nice record like;&lt;/P&gt;&lt;P&gt;Unknown | Unknown_CostCenter | 01-01-2016 | 31-12-9999 | Unknown ledger |&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed (added all columns) the inline-solution provided by Kushal a bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 15:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124428#M627925</guid>
      <dc:creator />
      <dc:date>2016-08-17T15:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 'Unknown' value/record in dimension table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124429#M627926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Koos, Autogenerate(10) would produce 10 rows. Autogenerate is telling Qlikview how many rows the table should have. It is expecting a number but that can be derived from an expression inside the brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you want to add extra columns to your single row&amp;nbsp; then this is how I would do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Concatenate&lt;/SPAN&gt; (Sheet1)&lt;BR /&gt; &lt;STRONG style="color: #0000ff;"&gt;Load&lt;/STRONG&gt;&lt;BR /&gt; 'Unknown' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Company&lt;/SPAN&gt;,&lt;BR /&gt; 'Unknown_CostCenter' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Col2Name&lt;/SPAN&gt;,&lt;BR /&gt; '01-01-2016' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Col3Name&lt;/SPAN&gt;,&lt;BR /&gt; '31-12-9999' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Col4Name&lt;/SPAN&gt;,&lt;BR /&gt; 'Unknown' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Col5Name&lt;/SPAN&gt;,&lt;BR /&gt; 'ledger' &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Col5Name&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;AutoGenerate&lt;/SPAN&gt;(1); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 07:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124429#M627926</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2016-08-18T07:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a 'Unknown' value/record in dimension table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124430#M627927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Snoeks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's a very delayed response but in case you still did not get it (because it seems to be unanswered):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can try NULLASVALUE and Set NullValue statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-Unknown-value-record-in-dimension-table/m-p/1124430#M627927</guid>
      <dc:creator />
      <dc:date>2016-10-13T09:58:37Z</dc:date>
    </item>
  </channel>
</rss>

