<?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 another tricky part ... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340573#M704468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil, for my case, it's not so simple. &lt;/P&gt;&lt;P&gt;the starting of F should from 1, not coutinous.&lt;/P&gt;&lt;P&gt;and due to limitation, it has to precompute in the LOAD script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Says i have the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCOUNT = FieldValueCount('test1');&amp;nbsp; // where test1 is the count() result from the table for rows of FORECAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, i am suppose to use vCOUNT in another load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;'F-'&amp;amp; vCount&amp;nbsp; // if i do this, vcount is hard coded, how can i do vcount - 1 for each row?&lt;/P&gt;&lt;P&gt;FRom...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 06:57:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-08T06:57:21Z</dc:date>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340568#M704463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow Qliksters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;got one tricky table to build... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column FLAG_REF is what i'm building.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on column FLAG_ACT_FCST, if the value is ACTUAL, it will go M-1, M-2, M-3 in sequence. &lt;/P&gt;&lt;P&gt;To do this, in the loading script, i'm using the Month value from the first column, and convert it to digit. easy ! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, when the column value is FORECAST, i need it to start from F-1, F-2, F-3 in sequence, too. &lt;/P&gt;&lt;P&gt;and the last count should be at the row of DEC.&lt;/P&gt;&lt;P&gt;any idea for how the script should look like? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1502.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/13891_1502.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 03:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340568#M704463</guid>
      <dc:creator />
      <dc:date>2012-05-08T03:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340569#M704464</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;Are you building this expression in your script or in your pivot table ?&lt;/P&gt;&lt;P&gt;May be if you try to compute this expression : &lt;SPAN style="font-family: courier new,courier;"&gt;month(min(if(FLAG_ACT_FCST='FORECAST',Month_Year,null())))-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then you can substract this value to your month when your are in a forecast row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340569#M704464</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-05-08T06:04:28Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340570#M704465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm writing this in the loading script. Not expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so far, i manage to duplicate the table in the script to count the forecast. &lt;/P&gt;&lt;P&gt;now, i can do for i = 10, bla bla.. &lt;/P&gt;&lt;P&gt;but i need to integrate this in my LOAD. how do i do it just for one column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340570#M704465</guid>
      <dc:creator />
      <dc:date>2012-05-08T06:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340571#M704466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;inscript create a row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rowno() as row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then apply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(FLAG_ACT_FCST='actual','M'&amp;amp;'-'&amp;amp;row,'F'&amp;amp;'-'&amp;amp;(row-count(FLAG_ACT_FCST)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attched file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340571#M704466</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-05-08T06:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340572#M704467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i forgot to attach &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the atttached here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340572#M704467</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-05-08T06:37:21Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340573#M704468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil, for my case, it's not so simple. &lt;/P&gt;&lt;P&gt;the starting of F should from 1, not coutinous.&lt;/P&gt;&lt;P&gt;and due to limitation, it has to precompute in the LOAD script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Says i have the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCOUNT = FieldValueCount('test1');&amp;nbsp; // where test1 is the count() result from the table for rows of FORECAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, i am suppose to use vCOUNT in another load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;'F-'&amp;amp; vCount&amp;nbsp; // if i do this, vcount is hard coded, how can i do vcount - 1 for each row?&lt;/P&gt;&lt;P&gt;FRom...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340573#M704468</guid>
      <dc:creator />
      <dc:date>2012-05-08T06:57:21Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340574#M704469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;better to have sample file if you can????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 07:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340574#M704469</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-05-08T07:09:50Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340575#M704470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the thing is, how can i loop a LOAD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried the following, but it wont work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vCOUNT = FieldValueCount('test1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each y in $(vCOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'F-'&amp;amp; $(y)-1&lt;/P&gt;&lt;P&gt;FRom...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next $(y)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-size: 12px; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 07:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340575#M704470</guid>
      <dc:creator />
      <dc:date>2012-05-08T07:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340576#M704471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And with something like this (sorry it's a draft) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD Month_Year_FORECAST, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG_ACT_FCST, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QUANTITIY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;H:\SampleData.xls (biff, embedded labels, table is Feuil1$);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;test3:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;mapping LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FLAG_ACT_FCST,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;month(min(if(FLAG_ACT_FCST='FORECAST',Month_Year_FORECAST,null())))-1 as endactual&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Resident test &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Group by FLAG_ACT_FCST ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;test2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Month_Year_FORECAST,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FLAG_ACT_FCST,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;QUANTITIY,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(FLAG_ACT_FCST='ACTUAL',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'A'&amp;amp;num(month(Month_Year_FORECAST)),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F'&amp;amp;(num(month(Month_Year_FORECAST))-num(ApplyMap('test3',FLAG_ACT_FCST)))) as FLAG_REF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Resident test ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;drop table test ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 07:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340576#M704471</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-05-08T07:12:30Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340577#M704472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the suggestion, i'm using it. but because i'm loading multiple excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the map works if i only have one file, if i have second file it wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also try to drop the mapping table but there's an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any other suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 08:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340577#M704472</guid>
      <dc:creator />
      <dc:date>2012-05-08T08:54:31Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340578#M704473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to find a way to clear all the data in the mapping table. so when the next excel is loaded, the mapping table will be reset. because i'm using Rowno() , if i don't clear/ drop the mapping table, the number just increase continuously...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 09:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340578#M704473</guid>
      <dc:creator />
      <dc:date>2012-05-08T09:09:47Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340579#M704474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is by any chance your excel files have same column names in different tables?&lt;/P&gt;&lt;P&gt;If it has same column name, it will try to merge the values to match the column values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just my thought &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 13:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340579#M704474</guid>
      <dc:creator />
      <dc:date>2012-05-08T13:29:18Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340580#M704475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all the excel has the same column... it's the file for monthly forecast values.... &lt;/P&gt;&lt;P&gt;i got it working by loading one file at a time...&lt;/P&gt;&lt;P&gt;i don't know how, but there must be a way we can clear all the table before loading the next file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for the moment.. i can't use&lt;STRONG&gt; for each File in filelist ('..\*.xls')&amp;nbsp; .... next &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if anyone know the work around.. please share... &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 01:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340580#M704475</guid>
      <dc:creator />
      <dc:date>2012-05-09T01:33:20Z</dc:date>
    </item>
    <item>
      <title>another tricky part ...</title>
      <link>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340581#M704476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, i got it fully working...without having to reload one file by one excel...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's due to the dropping of mapping table.. technically u can't drop a mapping table.&lt;/P&gt;&lt;P&gt;so intead, we give the mapping a different name.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/6522#6522"&gt;http://community.qlik.com/message/6522#6522&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 02:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/another-tricky-part/m-p/340581#M704476</guid>
      <dc:creator />
      <dc:date>2012-05-09T02:58:39Z</dc:date>
    </item>
  </channel>
</rss>

