<?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: Probably wrong expression: mapping load, apply map, wildmatch, left, right in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639735#M595551</link>
    <description>&lt;P&gt;Does this "&lt;EM&gt;FROM...?&lt;/EM&gt;" table has the field&amp;nbsp;&lt;EM&gt;[@306:306]&lt;SPAN&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 04:40:43 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2019-10-25T04:40:43Z</dc:date>
    <item>
      <title>Probably wrong expression: mapping load, apply map, wildmatch, left, right</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639096#M595548</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_VALORE_PRESTAZIONE:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;[@10:17] as CONTATORE_PRESCRIZIONE,&lt;BR /&gt;[@37:45] as VALORE_PRESTAZIONE&lt;/P&gt;&lt;P&gt;If(WildMatch(ApplyMap('KEY_TO_VALORE_PRESTAZIONE',[@10:17],'n/a'),[@306:306]='0'),Left([@37:45],7) &amp;amp; ',' &amp;amp; Right([@37:45],2),0) as VALORE&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The field&amp;nbsp;[@10:17] as CONTATORE_PRESCRIZIONE is the key field between table "T" and table "D".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The output i want to obtain is a new field called "VALORE" that if the field&amp;nbsp;[@306:306] of table "T" contains the value "0", return the first 7 numbers of the field [@37:45] of table "D", a comma, and the last 2 numbers of the same field of table "D"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&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:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639096#M595548</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2024-11-16T02:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Probably wrong expression: mapping load, apply map, wildmatch, left, right</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639271#M595549</link>
      <description>&lt;P&gt;Try splitting the wildmatch and applymap using preceeding load:&lt;/P&gt;&lt;P&gt;KEY_TO_VALORE_PRESTAZIONE:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;[@10:17] as CONTATORE_PRESCRIZIONE,&lt;BR /&gt;[@37:45] as VALORE_PRESTAZIONE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load*,If(WildMatch([@306:306],'0'),Left(Val,7) &amp;amp; ',' &amp;amp; Right(Val,2),0)as VALORE ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *,&lt;/EM&gt;&lt;EM&gt;ApplyMap('KEY_TO_VALORE_PRESTAZIONE',[@10:17],'n/a')as Val&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 04:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639271#M595549</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-24T04:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Probably wrong expression: mapping load, apply map, wildmatch, left, right</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639330#M595550</link>
      <description>&lt;P&gt;Hi Jkfong93,&lt;/P&gt;&lt;P&gt;thanks for the message but something not runs.&lt;/P&gt;&lt;P&gt;When i reload the script, QV tell me that the field&amp;nbsp;&lt;EM&gt;[@306:306] is not found.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've inserted the two conditions after the following script:&lt;/P&gt;&lt;P&gt;LOAD...;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load*,If(WildMatch([@306:306],'0'),Left(Val,7) &amp;amp; ',' &amp;amp; Right(Val,2),0)as VALORE ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *,&lt;/EM&gt;&lt;EM&gt;ApplyMap('KEY_TO_VALORE_PRESTAZIONE',[@10:17],'n/a')as Val&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;What's wrong?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mattia&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 07:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639330#M595550</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-24T07:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Probably wrong expression: mapping load, apply map, wildmatch, left, right</title>
      <link>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639735#M595551</link>
      <description>&lt;P&gt;Does this "&lt;EM&gt;FROM...?&lt;/EM&gt;" table has the field&amp;nbsp;&lt;EM&gt;[@306:306]&lt;SPAN&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 04:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Probably-wrong-expression-mapping-load-apply-map-wildmatch-left/m-p/1639735#M595551</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-25T04:40:43Z</dc:date>
    </item>
  </channel>
</rss>

