<?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: Concatenating a table into Single Fact in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637991#M233912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to make this Stack Chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details are mentioned in my below thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 13:50:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-19T13:50:36Z</dc:date>
    <item>
      <title>Concatenating a table into Single Fact</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637987#M233908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are creating Single Fact Star Schema Model for our application.&amp;nbsp; While doing so we have concatenated one table to the exiting single fact table. We are able to meet all the requirements from Dashboard perspective except one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help on the same.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement : Need a STACK Chart for Units and Q_Units at Region_Id &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the Sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637987#M233908</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a table into Single Fact</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637988#M233909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is in principle easy:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add an expression Sum(Q_Units)&lt;/LI&gt;&lt;LI&gt;Change to "Stacked" on the Style sheet&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, your data has a problem: Your Q_Units are not associated with Region_Id, so the chart does not look very well. In the picture below I have selected all Regions, and then all Q_Units are excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you need to fix your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/59074_Image1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 11:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637988#M233909</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-19T11:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a table into Single Fact</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637989#M233910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kumar please check the scripting part ,there might be some problem in data linking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 11:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637989#M233910</guid>
      <dc:creator />
      <dc:date>2014-05-19T11:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a table into Single Fact</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637990#M233911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC &amp;amp; Rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. If you check the expression in text box i have written, it&amp;nbsp; tells how we can calculate Q_Units at Region level.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='Q_Units : ' &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TERRITORY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Territory_Id&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DIM_TIME_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;P&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DIM_TIME_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Q_Units&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Since, Q_Fact has been concatenated not joined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Individually , I am able to create charts from both units and Q_Units but need to collaborate both to have one STACK Chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Kumar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 12:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637990#M233911</guid>
      <dc:creator />
      <dc:date>2014-05-19T12:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a table into Single Fact</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637991#M233912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HIC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to make this Stack Chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details are mentioned in my below thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 13:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637991#M233912</guid>
      <dc:creator />
      <dc:date>2014-05-19T13:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenating a table into Single Fact</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637992#M233913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be possible to create a Set Analysis expression that does this, but I think that that is the wrong path forward. It would lead to an expression that is unmanageable that you will not understand when you look at it in 3 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, I think you should fix your data model. Below I have a table box with your data:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/59115_Image1.png" /&gt;&lt;/P&gt;&lt;P&gt;You can clearly see that you have a mismatch in your fact table - you have two different territory fields even though they are the same thing. Instead of storing Territory_Id and TERRITORY in two different fields, you should store them in one field in the fact table. With Region in a dimensional table (Territory should be primary key) the chart will work right away with a very simple expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenating a fact table is only useful if you have common fields between the two parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the Territory_Id into the fact table, you can use Applymap (See page 16 in &lt;A href="https://community.qlik.com/docs/DOC-3451"&gt;Generic keys&lt;/A&gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 14:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenating-a-table-into-Single-Fact/m-p/637992#M233913</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-19T14:26:47Z</dc:date>
    </item>
  </channel>
</rss>

