<?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: Problem in a LOAD statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865875#M302931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 13:37:38 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2015-06-10T13:37:38Z</dc:date>
    <item>
      <title>Problem in a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865874#M302930</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;I am loading data from a large Excel sheet and I have a number of formulas and Applymap-commands in the LOAD.&lt;/P&gt;&lt;P&gt;Among them is one line like&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; IF &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PACK_TIME1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt; 0, 'Packzeit', &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;KeepChar&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ComCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'LV'))&amp;gt;0, 'LV', 'Vol')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Art_Kostenberechnung_syncreon&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt; If there is a positive packtime, I want the output to be 'Packzeit', the price is calculated using that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;=&amp;gt; If not, I want to check whether the ComCode contains the letters 'LV' and if yes, I want 'LV', otherwise I want 'Vol'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sounds pretty easy, doesn't it? Still, when I select the 0 in the field 'Packtime' and I select 'LV' in the field 'Art_Kostenberechnung_syncreon', I get a number of CommentCodes that don't contain the letters 'LV'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Can anybody tell what's wrong there?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865874#M302930</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-10T13:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865875#M302931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865875#M302931</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-06-10T13:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865876#M302932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that load statement the only one that creates a table with the Art_Kostenberechnung_syncreon field? Or does that field exist in another table too? And the same question for the Packtime (or is it PACK_TIME1?) field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865876#M302932</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-10T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865877#M302933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keepchar will remove all characters except L or V from ComCode, so if Comcode contains any text with a capital L or a Capital V, then the len expression will return a value greater than zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may be better to use &lt;STRONG&gt;index(ComCode, 'LV')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865877#M302933</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-06-10T13:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865878#M302934</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;those fields both exist only once each. The field_name is PACK_TIME1 in the original because there are two fields with packtimes in the report - internal and external.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:44:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865878#M302934</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-10T13:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865879#M302935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is most probably it. I just took a quick look and it seems that all ComCodes that I do not actually want, but that do appear either contain an L or a V - not&amp;nbsp; both, but only one. I want only those where there is the sequence 'LV' somewhere in the ComCode.&lt;/P&gt;&lt;P&gt;I'll see whether I can do better using INDEX().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-a-LOAD-statement/m-p/865879#M302935</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-06-10T13:46:49Z</dc:date>
    </item>
  </channel>
</rss>

