<?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: What's wrong in this script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639481#M595463</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;unfortunately, the script don't run anyway.&lt;/P&gt;&lt;P&gt;Do you have another suggest?&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 12:30:49 GMT</pubDate>
    <dc:creator>Mattia</dc:creator>
    <dc:date>2019-10-24T12:30:49Z</dc:date>
    <item>
      <title>What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639413#M595461</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;the following expression give me only 1 result "AMB", while don't show me "LAB".&lt;/P&gt;&lt;P&gt;If([@4:9]=001880,'DIALISI',&amp;nbsp;If(WildMatch([@10:17],'L*'),'LAB',&amp;nbsp;&amp;nbsp;If(Len(Trim([@10:17]&amp;gt;0)), If([@4:9]=030357,'PS_AMB','AMB')))) as TIPO&lt;/P&gt;&lt;P&gt;Please, someone can help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639413#M595461</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2024-11-16T02:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639435#M595462</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If([@4:9] = '001880', 'DIALISI',
	If(WildMatch([@10:17], 'L*'), 'LAB',
		If(Len(Trim([@10:17]))&amp;gt;0,
			If([@4:9] = '030357', 'PS_AMB', 'AMB')))) as TIPO&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 11:08:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639435#M595462</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-24T11:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639481#M595463</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;unfortunately, the script don't run anyway.&lt;/P&gt;&lt;P&gt;Do you have another suggest?&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639481#M595463</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-24T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639483#M595464</link>
      <description>&lt;P&gt;What error message do you get when you run this?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639483#M595464</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-24T12:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639492#M595465</link>
      <description>&lt;P&gt;Excuse me Sunny, i misspoke.&lt;/P&gt;&lt;P&gt;The script runs but the value of the field "TIPO" is only "AMB", altough i've values in the table that match the expression:&amp;nbsp;If(WildMatch([@10:17],'L*'),'LAB'&lt;/P&gt;&lt;P&gt;If can help you, if i hidd the last expression&amp;nbsp;If(Len(Trim([@10:17]))&amp;gt;0, If([@4:9] = '030357', 'PS_AMB' , 'AMB', the value of the field "TIPO" is LAB.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639492#M595465</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-24T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639501#M595466</link>
      <description>&lt;P&gt;Not sure why it doesn't work for you... but it seems to work for me... Sample script&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD *,
	 If(Field1 = '001880', 'DIALISI',
		If(WildMatch(Field2, 'L*'), 'LAB',
			If(Len(Trim(Field2))&amp;gt;0,
				If(Field1 = '030357', 'PS_AMB', 'AMB')))) as TIPO;
LOAD * INLINE [
    Field1, Field2
    001880, HSKJS
    193829, LHDSH
    001880, LDFHS
    030357, EHFSH
    030357, LDHFS
    030357,
];&lt;/LI-CODE&gt;&lt;P&gt;Here Field1 = [@4:9] and Field2 = &lt;SPAN&gt;[@10:17]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and this is what I get&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 160px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22283i988038F4BDFA7FED/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639501#M595466</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-24T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this script?</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639522#M595467</link>
      <description>&lt;P&gt;Sorry, Sunny.&lt;/P&gt;&lt;P&gt;It works perfectly.&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-script/m-p/1639522#M595467</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-24T13:30:21Z</dc:date>
    </item>
  </channel>
</rss>

