<?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: How can i correct this expression in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638876#M595637</link>
    <description>&lt;P&gt;Many thanks, Vegar!&lt;/P&gt;&lt;P&gt;Your solution runs perfectly!&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 10:28:41 GMT</pubDate>
    <dc:creator>Mattia</dc:creator>
    <dc:date>2019-10-23T10:28:41Z</dc:date>
    <item>
      <title>How can i correct this expression in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638864#M595635</link>
      <description>&lt;P&gt;Hi QV users,&lt;/P&gt;&lt;P&gt;i've a problem with the following expressions in the script:&lt;/P&gt;&lt;P&gt;KEY_TO_CODICE_PRESTAZIONE:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;[@10:17] as CONTATORE_PRESCRIZIONE,&lt;BR /&gt;[@29:33] as CODICE_PRESTAZIONE&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;If([@276:276]='S', If(ApplyMap('KEY_TO_CODICE_PRESTAZIONE',[@10:17],'n/a')='87371','SCREENING','BDG') as new field&lt;/P&gt;&lt;P&gt;it works perfectly: if the field [@276:276] contains the letter "S" and the field&amp;nbsp;[@29:33] contains the value "87371", the new field show me "SCREENING", otherwise "BDG" (if the&amp;nbsp;field&amp;nbsp;[@29:33] not contains the value "87371").&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;If([@276:276]='S', If(ApplyMap('KEY_TO_CODICE_PRESTAZIONE',[@10:17],'n/a')='87371'or'87372','SCREENING','BDG') as new field&lt;/P&gt;&lt;P&gt;don't work: my real goal is that if the field [@276:276] contains the letter "S" and the field&amp;nbsp;[@29:33] contains the value "87371" or the value "87372", the new field must show me "SCREENING", otherwise "BDG" (if the&amp;nbsp;field&amp;nbsp;[@29:33] not contains the value "87371" or the value "87372").&lt;/P&gt;&lt;P&gt;Please, can someone show me the right direction?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638864#M595635</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2024-11-16T02:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can i correct this expression in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638867#M595636</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(
  [@276:276]='S', 
  If(  
    match( ApplyMap('KEY_TO_CODICE_PRESTAZIONE',[@10:17],'n/a'), 
           '87371','87372'
         ),
    'SCREENING',
    'BDG'
  ) as [New field]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Oct 2019 10:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638867#M595636</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-10-23T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can i correct this expression in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638876#M595637</link>
      <description>&lt;P&gt;Many thanks, Vegar!&lt;/P&gt;&lt;P&gt;Your solution runs perfectly!&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 10:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-i-correct-this-expression-in-the-script/m-p/1638876#M595637</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-23T10:28:41Z</dc:date>
    </item>
  </channel>
</rss>

