<?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: Mapping (One- Many)  Data modeling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768552#M718584</link>
    <description>&lt;P&gt;If there are just 1:n data the tables could for the most views be simply associated within the datamodel. But if there are missing keys on both sides there is no direct possibility to map/join/associate the tables - at least not if you always want to show all of them.&lt;/P&gt;&lt;P&gt;In many scenarios the easiest way to handle such cases is to concatenate (in sql = union) the tables. That the tables have a more or less different data-structure is no general showstopper whereby you may need to prepare the tables in some way, like adding missing data from elsewhere ...&lt;/P&gt;&lt;P&gt;More commonly but not easier and by large datasets with a worse performance is to create a link-table between your tables.&lt;/P&gt;&lt;P&gt;Another way - more expensive as the both mentioned approaches above - is to identify the missing keys on each table and adding them there directly per concatenate.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2020 10:41:40 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-12-15T10:41:40Z</dc:date>
    <item>
      <title>Mapping (One- Many)  Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768476#M718582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two tables (Valuation Table and Stock Table)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Valuation table is at Material – Plant level&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stock Table is at Material – Plant – Storage Location (SLOC) Level&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Description&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;No Storage Location in Valuation Table&lt;/LI&gt;&lt;LI&gt;No Value in Storage Location Stock Table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here We need to bring “Total Val.” In ‘Valuation Table’ to the ‘Stock Table’ at Material – Plant – Storage Location level.&lt;/P&gt;&lt;P&gt;Attached is the sample data.&lt;/P&gt;&lt;P&gt;Thanks . .&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768476#M718582</guid>
      <dc:creator>krish2459</dc:creator>
      <dc:date>2024-11-16T17:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping (One- Many)  Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768516#M718583</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any Ideas or thoughts to crack this scenario.&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 09:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768516#M718583</guid>
      <dc:creator>krish2459</dc:creator>
      <dc:date>2020-12-15T09:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping (One- Many)  Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768552#M718584</link>
      <description>&lt;P&gt;If there are just 1:n data the tables could for the most views be simply associated within the datamodel. But if there are missing keys on both sides there is no direct possibility to map/join/associate the tables - at least not if you always want to show all of them.&lt;/P&gt;&lt;P&gt;In many scenarios the easiest way to handle such cases is to concatenate (in sql = union) the tables. That the tables have a more or less different data-structure is no general showstopper whereby you may need to prepare the tables in some way, like adding missing data from elsewhere ...&lt;/P&gt;&lt;P&gt;More commonly but not easier and by large datasets with a worse performance is to create a link-table between your tables.&lt;/P&gt;&lt;P&gt;Another way - more expensive as the both mentioned approaches above - is to identify the missing keys on each table and adding them there directly per concatenate.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 10:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768552#M718584</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-12-15T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping (One- Many)  Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768628#M718585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Maybe try to join the valuation table into Stock Table based on Material and Plant. Then, divide the Total value by stock.&lt;/P&gt;&lt;P&gt;Stock:&lt;BR /&gt;&amp;nbsp;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Material &amp;amp;'_'&amp;amp;Plnt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MatPlnt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Material,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plnt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLoc,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pe,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalStock&lt;BR /&gt;FROM&lt;BR /&gt;[Sample Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Stock Table]);&lt;BR /&gt;&lt;BR /&gt;Left Join(Stock)&lt;BR /&gt;&lt;BR /&gt;Valuation:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Material &amp;amp;'_'&amp;amp; Plnt&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MatPlnt,&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material,&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plnt,&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalStock,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total Val.] / TotalStock&amp;nbsp;&amp;nbsp; as EachVal,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr.,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MvAvgPrice,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Std price]&lt;BR /&gt;FROM&lt;BR /&gt;[Sample Data.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is [Valuation Table]);&lt;BR /&gt;&lt;BR /&gt;Final:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %MatPlnt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Material,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plnt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLoc,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pe,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TotalStock,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EachVal * TotalStock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as TotalValue,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pr.,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MvAvgPrice,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Std price]&lt;BR /&gt;Resident Stock;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt; Table Stock;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-12-15 191955.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45701iE021FFA8517BA41E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-12-15 191955.jpg" alt="Screenshot 2020-12-15 191955.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 13:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-One-Many-Data-modeling/m-p/1768628#M718585</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2020-12-15T13:53:47Z</dc:date>
    </item>
  </channel>
</rss>

