<?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: Different Dimension in Different Time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1534257#M746598</link>
    <description>&lt;P&gt;Hi Denny,&lt;/P&gt;&lt;P&gt;you need to create flag on fact and product.&lt;/P&gt;&lt;P&gt;1. add flag on product old and product new&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductOld&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Material, Level1, Level2, Level3, Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductNew:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Material, LevelA, LevelB, LevelC, LevelD, LevelE, Flag&lt;BR /&gt;&lt;/STRONG&gt;2. do cross table&amp;nbsp;&lt;SPAN&gt;product old and product new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. concatenate&amp;nbsp;&lt;SPAN&gt;product old and product new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. create concatenate key Material &amp;amp; Flag on product table&lt;/P&gt;&lt;P&gt;5. add flag on Fact table (ex. &amp;lt;2019 as old and &amp;gt;=2019 as new) and create concatenate key &lt;SPAN&gt;Material &amp;amp; Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6. load fact and product table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 07:42:17 GMT</pubDate>
    <dc:creator>marcohadiyanto</dc:creator>
    <dc:date>2019-01-24T07:42:17Z</dc:date>
    <item>
      <title>Different Dimension in Different Time</title>
      <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533646#M746594</link>
      <description>&lt;P&gt;Dear Expert,&lt;/P&gt;&lt;P&gt;For example, i have a Fact Table like this (the data from 2017 to 2018):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, Year&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2017&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2018&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;also, i have a dimension table called Product like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductOld:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, Level1, Level2, Level3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 10, 15, 20&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then, in 2019, my dimension table has been changed, into:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductNew:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, LevelA, LevelB, LevelC, LevelD, LevelE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 10, 20, 30, 40, 50&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;also, when my Fact table increased in 2019, it became like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, Year&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2017&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2018&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FFCC00"&gt;&lt;EM&gt;&lt;STRONG&gt;A001, 2019&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My question is, how to associate or combine the tables above, so &lt;U&gt;if I select Year before 2019&lt;/U&gt;, the data will refer to &lt;U&gt;&lt;EM&gt;ProductOld&lt;/EM&gt;&lt;/U&gt; dimension. And &lt;U&gt;if I select Year 2019 and above&lt;/U&gt;, the data will refer to ProductNew dimension?&lt;/P&gt;&lt;P&gt;The data that I explain in the above is just a dummy data. My concern is, i have a large number of data in Product dimension (10 million rows) and Fact table (25 million rows). How the best practice to solve this case, by producing the most optimal load time?&lt;/P&gt;&lt;P&gt;Appreciate to any of your solutions.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533646#M746594</guid>
      <dc:creator>dennysetiawan</dc:creator>
      <dc:date>2024-11-16T04:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dimension in Different Time</title>
      <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533657#M746595</link>
      <description>In my way of thinking, there is no easy or straight forward way to do this:&lt;BR /&gt;1. You need to add Year dimension in the tables ProductOld, ProductNew. But that makes you to dublicate all the values in those table. Also, there appears the synthetic key that needs to be take care of.&lt;BR /&gt;2. Concatenate both tables ProductOld, ProductNew with the new Date dimension that will allow you to make IntervalMatch. Then you can Left Join the date or leave it as it is.</description>
      <pubDate>Wed, 23 Jan 2019 07:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533657#M746595</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-23T07:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dimension in Different Time</title>
      <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533682#M746596</link>
      <description>&lt;P&gt;&lt;EM&gt;As per your table details and requirement ..you no need to do anythings here simple load the&amp;nbsp; data into Qlikview ...since you have only one key in common between all the tables it will automatically build the model and it will give you the desired results&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 09:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533682#M746596</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2019-01-23T09:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dimension in Different Time</title>
      <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533691#M746597</link>
      <description>Avinashelite is right but in this case you have to change all the expressions as you'll have Level1, Level2, Level3 and LevelA, LevelB, LevelC, LevelD, LevelE columns in your data set.&lt;BR /&gt;For example, if you had expression like Sum(Level1) then you have to remake to something like this Sum(Level1) + Sum(LevelA).&lt;BR /&gt;It a all depends on your business logic.</description>
      <pubDate>Wed, 23 Jan 2019 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1533691#M746597</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-23T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dimension in Different Time</title>
      <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1534257#M746598</link>
      <description>&lt;P&gt;Hi Denny,&lt;/P&gt;&lt;P&gt;you need to create flag on fact and product.&lt;/P&gt;&lt;P&gt;1. add flag on product old and product new&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductOld&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Material, Level1, Level2, Level3, Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductNew:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Material, LevelA, LevelB, LevelC, LevelD, LevelE, Flag&lt;BR /&gt;&lt;/STRONG&gt;2. do cross table&amp;nbsp;&lt;SPAN&gt;product old and product new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. concatenate&amp;nbsp;&lt;SPAN&gt;product old and product new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. create concatenate key Material &amp;amp; Flag on product table&lt;/P&gt;&lt;P&gt;5. add flag on Fact table (ex. &amp;lt;2019 as old and &amp;gt;=2019 as new) and create concatenate key &lt;SPAN&gt;Material &amp;amp; Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6. load fact and product table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 07:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1534257#M746598</guid>
      <dc:creator>marcohadiyanto</dc:creator>
      <dc:date>2019-01-24T07:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different Dimension in Different Time</title>
      <link>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1534909#M746599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41417"&gt;@MindaugasBacius&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35867"&gt;@avinashelite&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35316"&gt;@marcohadiyanto&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for the solutions. After I learned the suggestions from all of you, here's my final script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductOld:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, Level1, Level2, Level3&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 10, 15, 20&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ProductNew:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, LevelA, LevelB, LevelC, LevelD, LevelE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 10, 20, 30, 40, 50&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//********** here i create a concatenate key (material &amp;amp; flag) then i concatenate ProductOld &amp;amp; ProductNew to get a DIM_PRODUCT **********//&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIM_PRODUCT:&lt;/STRONG&gt;&lt;BR /&gt;//ProductOld:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material &amp;amp; '|' &amp;amp; 'Old' as KeyFlag&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident ProductOld;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP Table ProductOld;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//ProductNew:&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material &amp;amp; '|' &amp;amp; 'New' as KeyFlag&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident INLINE_PRODUCT_HIER_NEW;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP Table INLINE_PRODUCT_HIER_NEW;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//********** then i create a flag to my fact table using intervalmatch **********//&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FACT:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material, Year&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2017&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2018&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;A001, 2019&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;INLINE_INTERVAL_YEAR:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD * Inline&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;StartYear, EndYear, Flag&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2013, 2018, Old&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2019, 2099, New&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Left Join (FACT)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IntervalMatch (Year)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;StartYear,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;EndYear&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident INLINE_INTERVAL_YEAR;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (FACT)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident INLINE_INTERVAL_YEAR;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP Table INLINE_INTERVAL_YEAR;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//********** finally i create a concatenate key in my fact table (material &amp;amp; flag) **********//&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FACTNEW:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Material &amp;amp; '|' &amp;amp; Flag as KeyFlag,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident FACT;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP Table FACT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any other workaround, especially to get the result with most optimal load time?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 08:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-Dimension-in-Different-Time/m-p/1534909#M746599</guid>
      <dc:creator>dennysetiawan</dc:creator>
      <dc:date>2019-01-25T08:14:32Z</dc:date>
    </item>
  </channel>
</rss>

