<?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: loading script question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227771#M858581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Are you looking for something like&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( CIRCUIT Like '*5' and COUNTRY ='Spain', 10,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(STATUS Like '*5' and COUNTRY = 'Sweden', 15, MRC)) as MRC,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CIRCUIT,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTRY,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;FROM ....;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;But this can get quite messy if you are applying a lot of these if() statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 16:28:48 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-01-24T16:28:48Z</dc:date>
    <item>
      <title>loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227764#M858574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;is it possible to put an instruction in the loading script in order to change some information in the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have these columns MRC, CIRCUIT and COUNTRY, and I know I have an issue with the DB I am using and I would like to give this kind of instruction:&lt;/P&gt;&lt;P&gt;where the CIRCUIT name is ending with 5 and the COUNTRY is Spain , replace the value in the column MRC with 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227764#M858574</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227765#M858575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( CIRCUIT Like '*5' and COUNTRY ='Spain', 10, MRC) as MRC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CIRCUIT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTRY&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 15:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227765#M858575</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-24T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227766#M858576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;and what if I need to add more conditions like this one for the same field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227766#M858576</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2017-01-24T16:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227767#M858577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add them... as long as all information originate from within the same record, it should be quite easy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227767#M858577</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-24T16:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227768#M858578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan,&lt;/P&gt;&lt;P&gt;you were really helpful &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, 24 Jan 2017 16:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227768#M858578</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2017-01-24T16:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227769#M858579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use Match or Wildmatch in your IF as suggested by Stefan. &lt;/P&gt;&lt;P&gt;You can also use like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Wildmatch(CIRCUIT, '*5', '*8', '*2') AND Match(COUNTRY, 'Spain', 'Swedan'), 10, MRC) AS MRC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227769#M858579</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-01-24T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227770#M858580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for your answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what now I need to do is to add more conditions, on the same fields but on different records and replacing the wrong data with different information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your example, what if I want to use for Sweden 15, and instead of CIRCUIT the STATUS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227770#M858580</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2017-01-24T16:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227771#M858581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Are you looking for something like&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;LOAD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( CIRCUIT Like '*5' and COUNTRY ='Spain', 10,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(STATUS Like '*5' and COUNTRY = 'Sweden', 15, MRC)) as MRC,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CIRCUIT,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COUNTRY,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATUS&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;FROM ....;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;But this can get quite messy if you are applying a lot of these if() statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227771#M858581</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-24T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227772#M858582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uhm, you are right, it is messy.. but I will not use more than 3 conditions &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much &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, 24 Jan 2017 16:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227772#M858582</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2017-01-24T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227773#M858583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AS Stefan suggested you might have to use nested IF's using Match and wildmatch too. &lt;BR /&gt;BTW what is your complete requirement here? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227773#M858583</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-01-24T16:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: loading script question</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227774#M858584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have used the formula proposed by Stefan and it works perfectly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I had to change two different MRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I will to apply the same structure to change some circuit info.. I will let you know if something will not work ..&lt;/P&gt;&lt;P&gt;Once again thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-question/m-p/1227774#M858584</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2017-01-24T16:39:05Z</dc:date>
    </item>
  </channel>
</rss>

