<?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 Data modeling issue and loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223488#M75992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Qlikview (in opposite to a DB) it is ok to have the same data repeated since it is just stored as a pointer to the real value. Do the most you can in the script and make your tables be as few as possible then Qlikview performs the best.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;//ETB:&lt;BR /&gt;DIMENSIONS_TMP:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ETBCOD, SITE&lt;BR /&gt; EUR, PARIS&lt;BR /&gt; LEO, PARIS&lt;BR /&gt; VSG, PARIS&lt;BR /&gt; FDS, LYON&lt;BR /&gt; FDM, MARSEILLE&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;//DEP&lt;BR /&gt;LEFT JOIN LOAD * INLINE [&lt;BR /&gt; SIGDEP, SITE&lt;BR /&gt; VSG, PARIS&lt;BR /&gt; EFV, PARIS&lt;BR /&gt; FDS, LYON&lt;BR /&gt; EFL, LYON&lt;BR /&gt; FDM, MARSEILLE&lt;BR /&gt; EFM, MARSEILLE&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DIMENSIONS:&lt;BR /&gt;LOAD&lt;BR /&gt; ETBCOD&amp;amp;'-'&amp;amp;SIGDEP as %ETB_SIG_KEY,&lt;BR /&gt; SITE&lt;BR /&gt;Resident DIMENSIONS_TMP;&lt;BR /&gt;&lt;BR /&gt;DROP Table DIMENSIONS_TMP;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SALES_tmp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ETBCOD, CODPRO, SALES&lt;BR /&gt; EUR, 501660, 100&lt;BR /&gt; LEO, 501660, 100&lt;BR /&gt; VSG, 501660, 100&lt;BR /&gt; FDS, 501660, 100&lt;BR /&gt; FDM, 501660, 100&lt;BR /&gt; EUR, L50166, 100&lt;BR /&gt; LEO, L50166, 100&lt;BR /&gt; VSG, L50166, 100&lt;BR /&gt; FDS, L50166, 100&lt;BR /&gt; FDM, L50166, 100&lt;BR /&gt; EUR, 501666, 100&lt;BR /&gt; LEO, 501666, 100&lt;BR /&gt; VSG, 501666, 100&lt;BR /&gt; FDS, 501666, 100&lt;BR /&gt; FDM, 501666, 100&lt;BR /&gt; EUR, L5016P, 100&lt;BR /&gt; LEO, L5016P, 100&lt;BR /&gt; VSG, L5016P, 100&lt;BR /&gt; FDS, L5016P, 100&lt;BR /&gt; FDM, L5016P, 100&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;//PROD:&lt;BR /&gt;LEFT JOIN LOAD * INLINE [&lt;BR /&gt; CODPRO, PROSTK, PROSTA&lt;BR /&gt; 501660, 501660, 501660&lt;BR /&gt; L50166, 501660, 501660&lt;BR /&gt; 501666, 501660, 501660&lt;BR /&gt; L5016P, 501660, 501660&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;//STK:&lt;BR /&gt;LEFT JOIN LOAD * INLINE [&lt;BR /&gt; SIGDEP, PROSTK, STOCK_VALUE&lt;BR /&gt; EFV, 501660, 200&lt;BR /&gt; VSG, 501660, 200&lt;BR /&gt; EFM, 501660, 200&lt;BR /&gt; FDM, 501660, 200&lt;BR /&gt; EFL, 501660, 200&lt;BR /&gt; FDS, 501660, 200&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DATA:&lt;BR /&gt;LOAD&lt;BR /&gt; ETBCOD&amp;amp;'-'&amp;amp;SIGDEP as %ETB_SIG_KEY,&lt;BR /&gt; CODPRO,&lt;BR /&gt; SALES,&lt;BR /&gt; PROSTK,&lt;BR /&gt; PROSTA,&lt;BR /&gt; STOCK_VALUE&lt;BR /&gt;Resident SALES_tmp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DROP Table SALES_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Dec 2010 06:07:22 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2010-12-21T06:07:22Z</dc:date>
    <item>
      <title>Data modeling issue and loop</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223487#M75991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem to resolve this issue :&lt;/P&gt;&lt;P&gt;I want to make an analysis of my stocks and my sales. I'd like to know how much day of sales I have in stock. But I can't resolve a loop problem...&lt;/P&gt;&lt;P&gt;Here are my basic datas :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;ETB:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ETBCOD, SITE&lt;BR /&gt; EUR, PARIS&lt;BR /&gt; LEO, PARIS&lt;BR /&gt; VSG, PARIS&lt;BR /&gt; FDS, LYON&lt;BR /&gt; FDM, MARSEILLE&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DEP:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; SIGDEP, SITE&lt;BR /&gt; VSG, PARIS&lt;BR /&gt; EFV, PARIS&lt;BR /&gt; FDS, LYON&lt;BR /&gt; EFL, LYON&lt;BR /&gt; FDM, MARSEILLE&lt;BR /&gt; EFM, MARSEILLE&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;SALES:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ETBCOD, CODPRO, SALES&lt;BR /&gt; EUR, 501660, 100&lt;BR /&gt; LEO, 501660, 100&lt;BR /&gt; VSG, 501660, 100&lt;BR /&gt; FDS, 501660, 100&lt;BR /&gt; FDM, 501660, 100&lt;BR /&gt; EUR, L50166, 100&lt;BR /&gt; LEO, L50166, 100&lt;BR /&gt; VSG, L50166, 100&lt;BR /&gt; FDS, L50166, 100&lt;BR /&gt; FDM, L50166, 100&lt;BR /&gt; EUR, 501666, 100&lt;BR /&gt; LEO, 501666, 100&lt;BR /&gt; VSG, 501666, 100&lt;BR /&gt; FDS, 501666, 100&lt;BR /&gt; FDM, 501666, 100&lt;BR /&gt; EUR, L5016P, 100&lt;BR /&gt; LEO, L5016P, 100&lt;BR /&gt; VSG, L5016P, 100&lt;BR /&gt; FDS, L5016P, 100&lt;BR /&gt; FDM, L5016P, 100&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;STK:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; SIGDEP, PROSTK, STOCK_VALUE&lt;BR /&gt; EFV, 501660, 200&lt;BR /&gt; VSG, 501660, 200&lt;BR /&gt; EFM, 501660, 200&lt;BR /&gt; FDM, 501660, 200&lt;BR /&gt; EFL, 501660, 200&lt;BR /&gt; FDS, 501660, 200&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;PROD:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; CODPRO, PROSTK, PROSTA&lt;BR /&gt; 501660, 501660, 501660&lt;BR /&gt; L50166, 501660, 501660&lt;BR /&gt; 501666, 501660, 501660&lt;BR /&gt; L5016P, 501660, 501660&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can see the data model right here (with a loop) :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3062_sourceID:3062" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, you can see the result that I want in designer :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3063_sourceID:3063" /&gt;&lt;/P&gt;&lt;P&gt;I tried a lot of combination to do so, but with bad results...&lt;/P&gt;&lt;P&gt;Please, can somebody tell me what would be the best data model in order to reduce the amount of data (I mean in order to not repeat X times the same data in a table)?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Bye!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 21:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223487#M75991</guid>
      <dc:creator />
      <dc:date>2010-12-14T21:25:30Z</dc:date>
    </item>
    <item>
      <title>Data modeling issue and loop</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223488#M75992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In Qlikview (in opposite to a DB) it is ok to have the same data repeated since it is just stored as a pointer to the real value. Do the most you can in the script and make your tables be as few as possible then Qlikview performs the best.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;//ETB:&lt;BR /&gt;DIMENSIONS_TMP:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ETBCOD, SITE&lt;BR /&gt; EUR, PARIS&lt;BR /&gt; LEO, PARIS&lt;BR /&gt; VSG, PARIS&lt;BR /&gt; FDS, LYON&lt;BR /&gt; FDM, MARSEILLE&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;//DEP&lt;BR /&gt;LEFT JOIN LOAD * INLINE [&lt;BR /&gt; SIGDEP, SITE&lt;BR /&gt; VSG, PARIS&lt;BR /&gt; EFV, PARIS&lt;BR /&gt; FDS, LYON&lt;BR /&gt; EFL, LYON&lt;BR /&gt; FDM, MARSEILLE&lt;BR /&gt; EFM, MARSEILLE&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DIMENSIONS:&lt;BR /&gt;LOAD&lt;BR /&gt; ETBCOD&amp;amp;'-'&amp;amp;SIGDEP as %ETB_SIG_KEY,&lt;BR /&gt; SITE&lt;BR /&gt;Resident DIMENSIONS_TMP;&lt;BR /&gt;&lt;BR /&gt;DROP Table DIMENSIONS_TMP;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SALES_tmp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ETBCOD, CODPRO, SALES&lt;BR /&gt; EUR, 501660, 100&lt;BR /&gt; LEO, 501660, 100&lt;BR /&gt; VSG, 501660, 100&lt;BR /&gt; FDS, 501660, 100&lt;BR /&gt; FDM, 501660, 100&lt;BR /&gt; EUR, L50166, 100&lt;BR /&gt; LEO, L50166, 100&lt;BR /&gt; VSG, L50166, 100&lt;BR /&gt; FDS, L50166, 100&lt;BR /&gt; FDM, L50166, 100&lt;BR /&gt; EUR, 501666, 100&lt;BR /&gt; LEO, 501666, 100&lt;BR /&gt; VSG, 501666, 100&lt;BR /&gt; FDS, 501666, 100&lt;BR /&gt; FDM, 501666, 100&lt;BR /&gt; EUR, L5016P, 100&lt;BR /&gt; LEO, L5016P, 100&lt;BR /&gt; VSG, L5016P, 100&lt;BR /&gt; FDS, L5016P, 100&lt;BR /&gt; FDM, L5016P, 100&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;//PROD:&lt;BR /&gt;LEFT JOIN LOAD * INLINE [&lt;BR /&gt; CODPRO, PROSTK, PROSTA&lt;BR /&gt; 501660, 501660, 501660&lt;BR /&gt; L50166, 501660, 501660&lt;BR /&gt; 501666, 501660, 501660&lt;BR /&gt; L5016P, 501660, 501660&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;//STK:&lt;BR /&gt;LEFT JOIN LOAD * INLINE [&lt;BR /&gt; SIGDEP, PROSTK, STOCK_VALUE&lt;BR /&gt; EFV, 501660, 200&lt;BR /&gt; VSG, 501660, 200&lt;BR /&gt; EFM, 501660, 200&lt;BR /&gt; FDM, 501660, 200&lt;BR /&gt; EFL, 501660, 200&lt;BR /&gt; FDS, 501660, 200&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;DATA:&lt;BR /&gt;LOAD&lt;BR /&gt; ETBCOD&amp;amp;'-'&amp;amp;SIGDEP as %ETB_SIG_KEY,&lt;BR /&gt; CODPRO,&lt;BR /&gt; SALES,&lt;BR /&gt; PROSTK,&lt;BR /&gt; PROSTA,&lt;BR /&gt; STOCK_VALUE&lt;BR /&gt;Resident SALES_tmp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DROP Table SALES_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 06:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223488#M75992</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-12-21T06:07:22Z</dc:date>
    </item>
    <item>
      <title>Data modeling issue and loop</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223489#M75993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You just Concatenate the ETB and DEP tables as both of the tables sam etype of information as location.&lt;/P&gt;&lt;P&gt;This may be the solution&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;You need to rename a col in the DEP Table or ETB Table.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 07:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223489#M75993</guid>
      <dc:creator>sunil2288</dc:creator>
      <dc:date>2010-12-21T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Data modeling issue and loop</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223490#M75994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;you problem is of Circular Loops...... Refer to the user Manuel you will surly get help.&lt;/P&gt;&lt;P&gt;You can rename the fields which is causing to Loop or can use Mapping Load as you tables have only 2 fileds , map them into single table.&lt;/P&gt;&lt;P&gt;Plz let me knw if this solve your problem ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 10:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223490#M75994</guid>
      <dc:creator />
      <dc:date>2010-12-21T10:48:38Z</dc:date>
    </item>
    <item>
      <title>Data modeling issue and loop</title>
      <link>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223491#M75995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thank you for your post.&lt;/P&gt;&lt;P&gt;Well I resolved this issue doing with the "Concatenate method"... So I concatenated the tables STK and SALES as if the fields "SALES" and "STOCK_VALUES" would be the same called "VALUES". Then I added a field named 'FLAG' where the firsts group of datas would be flaged as 'SALES' and the second one as 'STK'. Then, I have done a classic star scheme...&lt;/P&gt;&lt;P&gt;I did the the same for the two tables ETB and DEP.&lt;/P&gt;&lt;P&gt;Then this is working!&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 13:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-modeling-issue-and-loop/m-p/223491#M75995</guid>
      <dc:creator />
      <dc:date>2010-12-21T13:58:34Z</dc:date>
    </item>
  </channel>
</rss>

