<?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: Field not found using preceding load to autogenerate data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539377#M599241</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&lt;BR /&gt;let vZero = 0;&lt;BR /&gt;Let vStartYear = (year(Today())+1);&lt;BR /&gt;Let vEndYear = (year(today())+4);&lt;BR /&gt;Auto_Generated_Actuals:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRIKE&gt;&lt;STRONG&gt;KeyToActuals&amp;nbsp;&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRIKE&gt;&lt;STRONG&gt;,FLMCU&amp;nbsp;&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRIKE&gt;&lt;STRONG&gt;,FLOBJ&amp;nbsp;&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;BR /&gt;$(vStartYear) + (RowNo() -1) as FYear&lt;BR /&gt;,$(vZero) as 01&lt;BR /&gt;,$(vZero) as 02&lt;BR /&gt;,$(vZero) as 03&lt;BR /&gt;,$(vZero) as 04&lt;BR /&gt;,$(vZero) as 05&lt;BR /&gt;,$(vZero) as 06&lt;BR /&gt;,$(vZero) as 07&lt;BR /&gt;,$(vZero) as 08&lt;BR /&gt;,$(vZero) as 09&lt;BR /&gt;,$(vZero) as 10&lt;BR /&gt;,$(vZero) as 11&lt;BR /&gt;,$(vZero) as 12&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Join&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;KeyToActuals&amp;nbsp;&lt;BR /&gt;,FLMCU&amp;nbsp;&lt;BR /&gt;,FLOBJ&amp;nbsp;&lt;BR /&gt;Resident ActualsTemp_1&lt;/P&gt;&lt;P&gt;while ($(vStartYear)+ IterNo() -1) &amp;lt;= $(vEndYear);&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 04:55:47 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2019-02-05T04:55:47Z</dc:date>
    <item>
      <title>Field not found using preceding load to autogenerate data</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539331#M599239</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to generate data for four years ahead, for the data already loaded in another table (preceding load).&amp;nbsp; &amp;nbsp;The idea is to loop and generate data of four years ahead for each row in the previously loaded table which is source to the while loop.&lt;/P&gt;&lt;P&gt;I'm receiving the "field not found error", nevertheless the source table is already loaded with the needed fields.&amp;nbsp; Please take a look at script below to see what could be wrong.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;ActualsTemp_1:&lt;BR /&gt;LOAD&lt;BR /&gt;KeyToActuals&amp;nbsp;&lt;BR /&gt;,FLMCU&amp;nbsp;&lt;BR /&gt;,FLOBJ&amp;nbsp;&lt;BR /&gt;,([FLCTRY]*100)+ [FLFY] as FYear&lt;BR /&gt;,FLAN01/100 as 01&lt;BR /&gt;,FLAN02/100 as 02&lt;BR /&gt;,FLAN03/100 as 03&lt;BR /&gt;,FLAN04/100 as 04&lt;BR /&gt;,FLAN05/100 as 05&lt;BR /&gt;,FLAN06/100 as 06&lt;BR /&gt;,FLAN07/100 as 07&lt;BR /&gt;,FLAN08/100 as 08&lt;BR /&gt;,FLAN09/100 as 09&lt;BR /&gt;,FLAN10/100 as 10&lt;BR /&gt;,FLAN11/100 as 11&lt;BR /&gt;,FLAN12/100 as 12&lt;BR /&gt;Resident $(vInputActuals);&lt;/P&gt;&lt;P&gt;/* autogenerate records for 4 years ahead */&lt;BR /&gt;let vZero = 0;&lt;BR /&gt;Let vStartYear = (year(Today())+1);&lt;BR /&gt;Let vEndYear = (year(today())+4);&lt;BR /&gt;Auto_Generated_Actuals:&lt;BR /&gt;LOAD&lt;BR /&gt;KeyToActuals&amp;nbsp;&lt;BR /&gt;,FLMCU&amp;nbsp;&lt;BR /&gt;,FLOBJ&amp;nbsp;&lt;BR /&gt;,$(vStartYear) + (RowNo() -1) as FYear&lt;BR /&gt;,$(vZero) as 01&lt;BR /&gt;,$(vZero) as 02&lt;BR /&gt;,$(vZero) as 03&lt;BR /&gt;,$(vZero) as 04&lt;BR /&gt;,$(vZero) as 05&lt;BR /&gt;,$(vZero) as 06&lt;BR /&gt;,$(vZero) as 07&lt;BR /&gt;,$(vZero) as 08&lt;BR /&gt;,$(vZero) as 09&lt;BR /&gt;,$(vZero) as 10&lt;BR /&gt;,$(vZero) as 11&lt;BR /&gt;,$(vZero) as 12&lt;BR /&gt;AutoGenerate 1;&lt;BR /&gt;LOAD&lt;BR /&gt;KeyToActuals&amp;nbsp;&lt;BR /&gt;,FLMCU&amp;nbsp;&lt;BR /&gt;,FLOBJ&amp;nbsp;&lt;BR /&gt;Resident ActualsTemp_1&lt;/P&gt;&lt;P&gt;while ($(vStartYear)+ IterNo() -1) &amp;lt;= $(vEndYear);&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539331#M599239</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2024-11-16T21:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found using preceding load to autogenerate data</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539356#M599240</link>
      <description>&lt;P&gt;I'm not completely following what you are trying to accomplish, but your syntax problem is:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AutoGenerate is a source. Your fields&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;KeyToActuals&amp;nbsp;&lt;BR /&gt;,FLMCU&amp;nbsp;&lt;BR /&gt;,FLOBJ&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;will not be passed up from the lower load.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 02:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539356#M599240</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-02-05T02:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found using preceding load to autogenerate data</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539377#M599241</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&lt;BR /&gt;let vZero = 0;&lt;BR /&gt;Let vStartYear = (year(Today())+1);&lt;BR /&gt;Let vEndYear = (year(today())+4);&lt;BR /&gt;Auto_Generated_Actuals:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRIKE&gt;&lt;STRONG&gt;KeyToActuals&amp;nbsp;&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRIKE&gt;&lt;STRONG&gt;,FLMCU&amp;nbsp;&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRIKE&gt;&lt;STRONG&gt;,FLOBJ&amp;nbsp;&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;BR /&gt;$(vStartYear) + (RowNo() -1) as FYear&lt;BR /&gt;,$(vZero) as 01&lt;BR /&gt;,$(vZero) as 02&lt;BR /&gt;,$(vZero) as 03&lt;BR /&gt;,$(vZero) as 04&lt;BR /&gt;,$(vZero) as 05&lt;BR /&gt;,$(vZero) as 06&lt;BR /&gt;,$(vZero) as 07&lt;BR /&gt;,$(vZero) as 08&lt;BR /&gt;,$(vZero) as 09&lt;BR /&gt;,$(vZero) as 10&lt;BR /&gt;,$(vZero) as 11&lt;BR /&gt;,$(vZero) as 12&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Join&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;KeyToActuals&amp;nbsp;&lt;BR /&gt;,FLMCU&amp;nbsp;&lt;BR /&gt;,FLOBJ&amp;nbsp;&lt;BR /&gt;Resident ActualsTemp_1&lt;/P&gt;&lt;P&gt;while ($(vStartYear)+ IterNo() -1) &amp;lt;= $(vEndYear);&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 04:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539377#M599241</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-02-05T04:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found using preceding load to autogenerate data</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539905#M599242</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; That worked.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539905#M599242</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2019-02-05T21:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found using preceding load to autogenerate data</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539919#M599243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need a script that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;creates forecast data.&amp;nbsp; In other words, data that doesn't exist in any table so the user can estimate results.&lt;/P&gt;&lt;P&gt;For each row in the table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Assets&lt;/STRONG&gt;, I need to create several rows in table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Forecast&lt;/STRONG&gt;.&amp;nbsp; The quantity of rows in table Forecast belonging to each row in table Assets will be determined by either field DEndYear or the variable vYearLimit whichever is lower.&amp;nbsp; The value of variable&amp;nbsp;&lt;SPAN&gt;vYearLimit&amp;nbsp;will always be Year(Today()) + 4 (i.e. forecast 4 years ahead).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;These are the fields of tables:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Assets:&lt;/TD&gt;&lt;TD&gt;Forecast:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AssetNo&lt;/TD&gt;&lt;TD&gt;AssetNo&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DEndYear&lt;/TD&gt;&lt;TD&gt;BU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BU&lt;/TD&gt;&lt;TD&gt;Acct&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Acct&lt;/TD&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;M01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;M02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;M03&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried script construct using the while statement, but it hasn't worked.&amp;nbsp; Any advise is appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539919#M599243</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2019-02-05T22:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field not found using preceding load to autogenerate data</title>
      <link>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539922#M599244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This change worked fine, nevertheless the FYear is not being incremented as expected.&amp;nbsp; It stays fixed at the result of&amp;nbsp;&lt;SPAN&gt;Let vStartYear = (year(Today())+1) which is 2020.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestion is appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-not-found-using-preceding-load-to-autogenerate-data/m-p/1539922#M599244</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2019-02-05T22:53:58Z</dc:date>
    </item>
  </channel>
</rss>

