<?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 Need some help with Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258599#M620479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to Load Script for QlikView and need some help with one item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are loading data as seen in my attachment. It has several rows of data with three columns, Business Unit, # of Invoices and TAT Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a part of the load script that I need to update to pull in just the first row of the data (row 2 of the CSV file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the scrip that i have now and it is pulling in all the rows and adding them together for the TAT Result column. I am trying to use something similar to a Where clause or a SUMIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;,Sum(IF( len(trim([TAT_Result]))&amp;gt;0 and&amp;nbsp; ApplyMap('mapSourceFiles', SourceFileID)='SLA 6.1', [TAT_Result]))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;as SLA6.1.Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;,Sum(IF(ApplyMap('mapSourceFiles', SourceFileID)='SLA 6.1', RecordCounter.Facts))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;/Sum(IF(ApplyMap('mapSourceFiles', SourceFileID)='SLA 6.1', RecordCounter.Facts))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;as SLA6.1.Flag&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;! !&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 16:35:50 GMT</pubDate>
    <dc:creator>davidstrong</dc:creator>
    <dc:date>2017-01-30T16:35:50Z</dc:date>
    <item>
      <title>Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258599#M620479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am fairly new to Load Script for QlikView and need some help with one item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are loading data as seen in my attachment. It has several rows of data with three columns, Business Unit, # of Invoices and TAT Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a part of the load script that I need to update to pull in just the first row of the data (row 2 of the CSV file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the scrip that i have now and it is pulling in all the rows and adding them together for the TAT Result column. I am trying to use something similar to a Where clause or a SUMIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;,Sum(IF( len(trim([TAT_Result]))&amp;gt;0 and&amp;nbsp; ApplyMap('mapSourceFiles', SourceFileID)='SLA 6.1', [TAT_Result]))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;as SLA6.1.Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;,Sum(IF(ApplyMap('mapSourceFiles', SourceFileID)='SLA 6.1', RecordCounter.Facts))&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;/Sum(IF(ApplyMap('mapSourceFiles', SourceFileID)='SLA 6.1', RecordCounter.Facts))&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;as SLA6.1.Flag&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;! !&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258599#M620479</guid>
      <dc:creator>davidstrong</dc:creator>
      <dc:date>2017-01-30T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258600#M620480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, I only see part of the script and it looks a bit mangled.&lt;/P&gt;&lt;P&gt;But in general, to read a single record, you add &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;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE(RowNo() &amp;lt; 1 )&lt;/SPAN&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;at the end of the Load clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 06:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258600#M620480</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2017-01-31T06:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258601#M620481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using &lt;STRONG&gt;First n&lt;/STRONG&gt; we can load &lt;STRONG&gt;n&lt;/STRONG&gt; no. of rows from data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;First 1 LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Category,Value&lt;/P&gt;&lt;P&gt;Education,800&lt;/P&gt;&lt;P&gt;Entertainment,500&lt;/P&gt;&lt;P&gt;Leadership,900&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give only first row from the table.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="151324" alt="10.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151324_10.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 06:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258601#M620481</guid>
      <dc:creator>sravanthialuval</dc:creator>
      <dc:date>2017-01-31T06:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258602#M620482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&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;If you want to pull in just the first row of the data (row 2 of the CSV file)&lt;/SPAN&gt; then you can try adding below code snippet to filter the records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM&gt;WHERE RecNo()= 1;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;P.S.: Fields SLA6.1.Result and SLA6.1.Flag are ambiguous to me. If possible could you please elaborate more on this.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 07:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258602#M620482</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-01-31T07:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258603#M620483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2017-02-04_19-26-22.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/152026_2017-02-04_19-26-22.png" style="height: 58px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what is in my load script. The SLA6.1.Result and SLA6.1.Flag are pulled into the dashboard to display the results. I am pretty new to load scripting and am taking over this project from someone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul, how do I add in your Where clause to this script. I am sorry, I am still learning this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 02:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258603#M620483</guid>
      <dc:creator>davidstrong</dc:creator>
      <dc:date>2017-02-05T02:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258604#M620485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a table load as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14863577624902311" jivemacro_uid="_14863577624902311" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;Data:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD Column1,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column2,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column3,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column4&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;[Data\SampleData.xlsx]&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to filter it by adding filter based on RecNo() function then refer below modified code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14863578062418575" jivemacro_uid="_14863578062418575"&gt;
&lt;P style="font-size: 13.3333px;"&gt;Data:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD Column1,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column2,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column3,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column4&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;[Data\SampleData.xlsx]&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;WHERE RecNo()= 1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 05:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258604#M620485</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-02-06T05:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258605#M620486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are all good ideas, but still not ones that I think can help me here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps some more context will help. This Load Statement is loading several other elements as well&amp;nbsp; and what I am needing is just the first row from one of the many items. So to add WHERE RecNo()= 1;&amp;nbsp; at the end of my Load Script would result in just the first record from each of the elements being loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need something like a Vlookup to the match to the specific row of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made this work on the visualization side of things using this code:&lt;/P&gt;&lt;P&gt;IF([BUSINESS UNIT]='MyBuNAME',NUM(AVG({$&amp;lt;[Source File]={'SLA 6.1'},[BUSINESS UNIT]={'MyBuNAME'}&amp;gt;}[TAT_Result]), '0.00'), NUM(AVG({$&amp;lt;[Source File]={'SLA 6.1'},[BUSINESS UNIT]-={'MyBuNAME'}&amp;gt;}[TAT_Result]), '0.00'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;MyBuNAME replaces the actual name in the script.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is anyone who can offer up some help on this, I would be very grateful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-Load-Script/m-p/1258605#M620486</guid>
      <dc:creator>davidstrong</dc:creator>
      <dc:date>2017-10-16T19:53:38Z</dc:date>
    </item>
  </channel>
</rss>

