<?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 / Script help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085346#M639028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the only issue is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MBEW:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right([MATNR],10) as Master_Material, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BWKEY as Plant ,&amp;nbsp;&amp;nbsp;&amp;nbsp; --------(If I comment Plant than no circular loop , else we are having problem)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BKLAS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LBKUM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vPath)MBEW.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 05:00:05 GMT</pubDate>
    <dc:creator>amit_saini</dc:creator>
    <dc:date>2016-03-18T05:00:05Z</dc:date>
    <item>
      <title>Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085327#M639009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my scenario:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKPF:&lt;/P&gt;&lt;P&gt;LOAD //MANDT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MBLNR as Doc_Num_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUDAT as %DATE_Key&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vPath)MKPF.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = num(makedate(2013));&lt;/P&gt;&lt;P&gt;LET vMaxDate = num(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Datefield:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMinDate) + IterNo() -1 as Datefield&lt;/P&gt;&lt;P&gt;AUTOGENERATE (1)&lt;/P&gt;&lt;P&gt;WHILE $(vMinDate) + IterNo() -1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datefield as %DATE_Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Datefield) as NumDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Datefield, 'DD.MMM YYYY') as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(Datefield) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(Datefield) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp;ceil(month(Datefield)/3) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;'Q'&amp;amp;ceil(month(Datefield)/3),year(Datefield)&amp;amp;ceil(month(Datefield)/3)) as Year_Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;month(Datefield),year(Datefield)&amp;amp;num(month(Datefield),'00')) as Year_Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;week(Datefield),year(Datefield)&amp;amp;num(week(Datefield),'00')) as Year_Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;month(Datefield)&amp;amp;'-'&amp;amp;day(Datefield),year(Datefield)&amp;amp;num(month(Datefield),'00')&amp;amp;num(day(Datefield),'00')) as Year_Month_Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; day(Datefield) as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; week(Datefield) as Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday(Datefield) as Weekday,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekyear(Datefield) as WeekYear&lt;/P&gt;&lt;P&gt;RESIDENT Datefield;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T001W:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERKS as Plant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME1&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vPath)T001W.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This above data is coming from SAP and this below data I need to link from excel, which looks like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="118205" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118205_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each plant in 'CWC','KDT','KLA','KMX','KOC','KSI','KTX','KUS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD [Local currency],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Week of],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant as NAME1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value of material before counting],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Net Dollar Value of Inventory Adjustments],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Absolute Dollar Value of Inventory Adjustments],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inventory Accuracy rate Net],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inventory Accuracy rate Absolute],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number of adjustments],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WIP,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FDM's],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Raw Material],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Components&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[.............$(plant)%20Inventory%20Accuracy.xlsx ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Data, filters(&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 3)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 2)),&lt;/P&gt;&lt;P&gt;Remove(Row, Pos(Top, 1))&lt;/P&gt;&lt;P&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linking should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Year" and "[Week of]" from &lt;STRONG&gt;Data&lt;/STRONG&gt; table need to be linked with Calendar + "Plant" from &lt;STRONG&gt;Data&lt;/STRONG&gt; need to be linked "NAME1" from T001W table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have simply tried renaming them as same name field , but this is not working , getting circular loop!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me possible best way , so that I can link Year ,Week of&amp;nbsp; fields from excel to SAP table + Data.Plant to T001W.NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 09:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085327#M639009</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-16T09:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085328#M639010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Suggestion???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085328#M639010</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-16T11:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085329#M639011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can able to join the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T001W and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Data, because T001W doens't have any KPI. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;T001W+Data become one table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;link between Calendar and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;T001W+Data is Year.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085329#M639011</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-03-16T11:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085330#M639012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In you case the excel file data will act as the linking table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this &lt;/P&gt;&lt;P&gt;1.first join or map the &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MKPF field to calendar table so you will have the one table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2. After the combining this table build a key with the year &amp;amp;'-'&amp;amp; week&amp;nbsp; as Key &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;3. In the Excel you have the year and Weekof so build a key like &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Year &amp;amp;'-'&amp;amp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Week of] as Key&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;4. finally link the &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;T001W table using the Plant key which is already present in the excel &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now this doesn't form the circular key &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085330#M639012</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-16T11:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085331#M639013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz help me with Script if possible!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085331#M639013</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-16T12:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085332#M639014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Try like this &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;MKPF:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD //MANDT,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MBLNR as Doc_Num_Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUDAT as %DATE_Key&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;$(vPath)MKPF.qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LET vMinDate = num(makedate(2013));&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LET vMaxDate = num(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Datefield:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMinDate) + IterNo() -1 as Datefield&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;AUTOGENERATE (1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;WHILE $(vMinDate) + IterNo() -1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; &lt;SPAN style="line-height: 1.5em;"&gt;Join (&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MKPF&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Calendar:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datefield as %DATE_Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Datefield) as NumDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Datefield, 'DD.MMM YYYY') as Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(Datefield) as Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;year(Datefield)&amp;amp;'-'&amp;amp;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;week(Datefield) as Key,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(Datefield) as Month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp;ceil(month(Datefield)/3) as Quarter,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;'Q'&amp;amp;ceil(month(Datefield)/3),year(Datefield)&amp;amp;ceil(month(Datefield)/3)) as Year_Quarter,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;month(Datefield),year(Datefield)&amp;amp;num(month(Datefield),'00')) as Year_Month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;week(Datefield),year(Datefield)&amp;amp;num(week(Datefield),'00')) as Year_Week,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;month(Datefield)&amp;amp;'-'&amp;amp;day(Datefield),year(Datefield)&amp;amp;num(month(Datefield),'00')&amp;amp;num(day(Datefield),'00')) as Year_Month_Day,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; day(Datefield) as Day,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; week(Datefield) as Week,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday(Datefield) as Weekday,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekyear(Datefield) as WeekYear&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;RESIDENT Datefield;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD [Local currency],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&amp;amp;'-'&amp;amp;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Week of] as Key,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Week of],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant as NAME1,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value of material before counting],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Net Dollar Value of Inventory Adjustments],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Absolute Dollar Value of Inventory Adjustments],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inventory Accuracy rate Net],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inventory Accuracy rate Absolute],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number of adjustments],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FG,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WIP,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FDM's],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Raw Material],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Components&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[.............$(plant)%20Inventory%20Accuracy.xlsx ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;(ooxml, embedded labels, table is Data, filters(&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Remove(Row, Pos(Top, 3)),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Remove(Row, Pos(Top, 2)),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Remove(Row, Pos(Top, 1))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;-------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;T001W:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERKS as Plant,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;$(vPath)T001W.qvd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085332#M639014</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-16T12:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085333#M639015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still Circular loop!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085333#M639015</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T10:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085334#M639016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried this sol too , but same issue !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085334#M639016</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085335#M639017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this but i am not sure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you need to drop datefield after calendar creation and store Calendar into qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 10:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085335#M639017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T10:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085336#M639018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry forgot to rename the Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;MKPF:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD //MANDT,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MBLNR as Doc_Num_Key,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUDAT as %DATE_Key&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;$(vPath)MKPF.qvd&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;----------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LET vMinDate = num(makedate(2013));&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LET vMaxDate = num(today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Datefield:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMinDate) + IterNo() -1 as Datefield&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;AUTOGENERATE (1)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;WHILE $(vMinDate) + IterNo() -1 &amp;lt;= $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Join (&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MKPF&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Calendar:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datefield as %DATE_Key,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Datefield) as NumDate,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(Datefield, 'DD.MMM YYYY') as Date,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(Datefield) as Year,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;year(Datefield)&amp;amp;'-'&amp;amp;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;week(Datefield) as Key,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(Datefield) as Month,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp;ceil(month(Datefield)/3) as Quarter,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;'Q'&amp;amp;ceil(month(Datefield)/3),year(Datefield)&amp;amp;ceil(month(Datefield)/3)) as Year_Quarter,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;month(Datefield),year(Datefield)&amp;amp;num(month(Datefield),'00')) as Year_Month,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;week(Datefield),year(Datefield)&amp;amp;num(week(Datefield),'00')) as Year_Week,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(year(Datefield)&amp;amp;'-'&amp;amp;month(Datefield)&amp;amp;'-'&amp;amp;day(Datefield),year(Datefield)&amp;amp;num(month(Datefield),'00')&amp;amp;num(day(Datefield),'00')) as Year_Month_Day,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; day(Datefield) as Day,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; week(Datefield) as Week,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekday(Datefield) as Weekday,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weekyear(Datefield) as WeekYear&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;RESIDENT Datefield;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt; drop table &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Datefield;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Data:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD [Local currency],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Year&amp;amp;'-'&amp;amp;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[Week of] as Key,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Year as Data_Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Week of],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant as NAME1,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Value of material before counting],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Net Dollar Value of Inventory Adjustments],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Absolute Dollar Value of Inventory Adjustments],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inventory Accuracy rate Net],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Inventory Accuracy rate Absolute],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Number of adjustments],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FG,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WIP,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FDM's],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Raw Material],&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Components&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[.............$(plant)%20Inventory%20Accuracy.xlsx ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;(ooxml, embedded labels, table is Data, filters(&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Remove(Row, Pos(Top, 3)),&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Remove(Row, Pos(Top, 2)),&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Remove(Row, Pos(Top, 1))&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;-------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;T001W:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;LOAD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WERKS as Plant,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME1&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;FROM&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;$(vPath)T001W.qvd&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: do you have any other tables in the script &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085336#M639018</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-17T11:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085337#M639019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are 3-4 sync keys , but based on requirement those are mandatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But please suggest if there is some better way of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085337#M639019</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T11:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085338#M639020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;currently I don't have the QV license ...can you please share the snapshot of your data model ?? you can get this in the table viewer &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085338#M639020</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-17T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085339#M639021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/118400_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085339#M639021</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T11:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085340#M639022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISEG: Build a custom key out of Doc_Num..&amp;amp;'-'&amp;amp;MJAHR&amp;amp;'-'&amp;amp;Material_..&amp;amp;'-'&amp;amp;ZEILE as Master_Key&lt;/P&gt;&lt;P&gt;and rename the keys like Doc_Num as ISEG_Doc_Num for all the four keys &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similary&amp;nbsp; for the table &lt;/P&gt;&lt;P&gt;MSEG: Build a custom key out of Doc_Num..&amp;amp;'-'&amp;amp;MJAHR&amp;amp;'-'&amp;amp;Material_..&amp;amp;'-'&amp;amp;ZEILE as Master_Key&lt;/P&gt;&lt;P&gt;and rename the keys like Doc_Num as MSEG_Doc_Num for all the four keys &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then build a link table as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK_TABLE:&lt;/P&gt;&lt;P&gt;LOAD Build a custom key out of Doc_Num..&amp;amp;'-'&amp;amp;MJAHR&amp;amp;'-'&amp;amp;Material_..&amp;amp;'-'&amp;amp;ZEILE as Master_Key,&lt;/P&gt;&lt;P&gt;Doc_Num..&amp;amp;'-'&amp;amp;MJAHR as MKPF_Key,&lt;/P&gt;&lt;P&gt;Material_.. as Mater_Material_..&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;ISEG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Build a custom key out of Doc_Num..&amp;amp;'-'&amp;amp;MJAHR&amp;amp;'-'&amp;amp;Material_..&amp;amp;'-'&amp;amp;ZEILE as Master_Key,&lt;/P&gt;&lt;P&gt;Doc_Num..&amp;amp;'-'&amp;amp;MJAHR as MKPF_Key,&lt;/P&gt;&lt;P&gt;Material_.. as Mater_Material_..&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;MSEG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MKPF table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MKPF:&lt;/P&gt;&lt;P&gt;LOAD Doc_Num..&amp;amp;'-'&amp;amp;MJAHR as MKPF_Key,&lt;/P&gt;&lt;P&gt;Doc_Num.. as MKPF_Doc_Num..,&lt;/P&gt;&lt;P&gt;MJAHR as MKPF_MJAHR,&lt;/P&gt;&lt;P&gt;other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MARA table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Material_.. as Mater_Material_..,&lt;/P&gt;&lt;P&gt;MTART&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085340#M639022</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-17T12:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085341#M639023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u so much for all ur suggestions ,actually similar conept + building a fact table I have tried already , but this is not giving me correct out based on requirement , later contacted SAP specialist who helped be with linking and finally we are getting right output , even though we ate having SYC keys , now just to add excel sheet data to this datamodel , but this is everytime making circular loop!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try ur suggestion one more time , I appreciate all ur help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085341#M639023</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T12:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085342#M639024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try with my suggestion it should work .....and don't forget to mark the helpful and correct answers &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085342#M639024</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-17T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085343#M639025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085343#M639025</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T12:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085344#M639026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will work , but I'm getting 2 error's , I hope my understanding regarding script was fine.&lt;/P&gt;&lt;P&gt;Please see the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 14:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085344#M639026</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-17T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085345#M639027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace your link code with the following code this should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINK_TABLE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MBLNR&amp;amp;'-'&amp;amp;MJAHR&amp;amp;'-'&amp;amp;right([MATNR],10)&amp;amp;'-'&amp;amp;ZEILE as Master_Key,&lt;/P&gt;&lt;P&gt;Master_Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISEG_Doc_Num_Key&amp;amp;'-'&amp;amp;MJAHR as MKPF_Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MBLNR&amp;amp;'-'&amp;amp;MJAHR as MKPF_Key,----------------------(Here Getting error)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//right([MATNR],10) as Master_Material&lt;/P&gt;&lt;P&gt;ISEG_Material_MATNR as Master_Material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISEG;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MBLNR&amp;amp;'-'&amp;amp;MJAHR&amp;amp;'-'&amp;amp;right([MATNR],10)&amp;amp;'-'&amp;amp;ZEILE as Master_Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master_Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MBLNR&amp;amp;'-'&amp;amp;MJAHR as MKPF_Key,----------------------(Here Getting error)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSEG_Doc_Num_Key&amp;amp;'-'&amp;amp;MSEG_MJAHR as MKPF_Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//right([MATNR],10) as Master_Material&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSEG_Material_MATNR as Master_Material, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSEG;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 19:59:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085345#M639027</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-03-17T19:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model / Script help</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085346#M639028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now the only issue is here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MBEW:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; right([MATNR],10) as Master_Material, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BWKEY as Plant ,&amp;nbsp;&amp;nbsp;&amp;nbsp; --------(If I comment Plant than no circular loop , else we are having problem)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BKLAS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LBKUM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vPath)MBEW.qvd&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 05:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Model-Script-help/m-p/1085346#M639028</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-03-18T05:00:05Z</dc:date>
    </item>
  </channel>
</rss>

