<?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: Data Model with Target Table having 2 Dims from Fact Table and 2 Dimensions from hierarchy table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Model-with-Target-Table-having-2-Dims-from-Fact-Table-and-2/m-p/1534051#M439006</link>
    <description>&lt;P&gt;I think what you need to do is create two ApplyMap tables with Emp_ID as key and one with Job_titl and one with Department.&lt;/P&gt;&lt;P&gt;Once those two tables are mapped you can do a preceding load to build a Emp_ID, Job_titl and Dept key.&lt;/P&gt;&lt;P&gt;Then, when you load the targets drop the three separate fields and just build the same key.&lt;/P&gt;&lt;P&gt;Info of ApplyMap and Preceding load here:&lt;BR /&gt;&lt;A href="https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" target="_blank"&gt;https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.quickintelligence.co.uk/preceding-load-qlikview/" target="_blank"&gt;https://www.quickintelligence.co.uk/preceding-load-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That should hopefully move you in the right direction?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 18:58:49 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2019-01-23T18:58:49Z</dc:date>
    <item>
      <title>Data Model with Target Table having 2 Dims from Fact Table and 2 Dimensions from hierarchy table</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-with-Target-Table-having-2-Dims-from-Fact-Table-and-2/m-p/1534038#M439005</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me create this data model.&lt;/P&gt;&lt;P&gt;I have one fact table with the following fields:&lt;/P&gt;&lt;P&gt;1. Emp_ID&lt;/P&gt;&lt;P&gt;2. Order_Date&lt;/P&gt;&lt;P&gt;3. Department -- Utilities, Retail, Aviation etc.,&lt;/P&gt;&lt;P&gt;4. Item_Category&amp;nbsp;&lt;/P&gt;&lt;P&gt;5.Sales Qty&lt;/P&gt;&lt;P&gt;6. Sales Amount&lt;/P&gt;&lt;P&gt;7. State/ Region/ Province&lt;/P&gt;&lt;P&gt;Hierarchy Table:&lt;BR /&gt;1. Emp_ID&lt;/P&gt;&lt;P&gt;2. Job_titl -- Sales Director, Regional Manager, Area Manager, Sales engineer&lt;/P&gt;&lt;P&gt;3. Department --&amp;nbsp;&lt;SPAN&gt;Utilities, Retail, Aviation etc.,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Emp_Engagement_Start_Date -- Orders between these two dates 4,5 determine the sales by an employee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Emp_Engagement_End_Date --&amp;nbsp;Orders between these two dates 4,5 determine the sales by an employee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6. Name of the Employee&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Target Table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Target for employees&amp;nbsp;may vary across departments, individually, item category wise and state/ province wise&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Target Value -- Numeric&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Measure of target -- per Week, per Month, per Quarter, per Annum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Job Title -- Same as hierarchy table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. Department -- Same as hierarchy table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Item_Category -- Same as in Fact table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6. State/ Province as in Fact table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7.&amp;nbsp;Date -- Date on which the latest record is updated&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also have a Time lookup table from which I can take Dates for the last 2 years, Months and years on a rolling dates basis of order date from Fact Table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is we have two target table columns from Hierarchy table and two columns from Fact table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ram Marthi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-with-Target-Table-having-2-Dims-from-Fact-Table-and-2/m-p/1534038#M439005</guid>
      <dc:creator>rammarthi</dc:creator>
      <dc:date>2024-11-16T21:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model with Target Table having 2 Dims from Fact Table and 2 Dimensions from hierarchy table</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-with-Target-Table-having-2-Dims-from-Fact-Table-and-2/m-p/1534051#M439006</link>
      <description>&lt;P&gt;I think what you need to do is create two ApplyMap tables with Emp_ID as key and one with Job_titl and one with Department.&lt;/P&gt;&lt;P&gt;Once those two tables are mapped you can do a preceding load to build a Emp_ID, Job_titl and Dept key.&lt;/P&gt;&lt;P&gt;Then, when you load the targets drop the three separate fields and just build the same key.&lt;/P&gt;&lt;P&gt;Info of ApplyMap and Preceding load here:&lt;BR /&gt;&lt;A href="https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" target="_blank"&gt;https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.quickintelligence.co.uk/preceding-load-qlikview/" target="_blank"&gt;https://www.quickintelligence.co.uk/preceding-load-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That should hopefully move you in the right direction?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 18:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-with-Target-Table-having-2-Dims-from-Fact-Table-and-2/m-p/1534051#M439006</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2019-01-23T18:58:49Z</dc:date>
    </item>
  </channel>
</rss>

