<?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 expression in the script? Applymap &amp;amp; IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639849#M594975</link>
    <description>&lt;P&gt;Sorry, but i don't understand the solution.&lt;/P&gt;&lt;P&gt;Now, in my file, new_field is correctly calculated.&lt;/P&gt;&lt;P&gt;The thing that is wrong is that the sw probably don't recognize that i want to see this value only in the records that have field3 = 1 !&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 10:10:15 GMT</pubDate>
    <dc:creator>Mattia</dc:creator>
    <dc:date>2019-10-25T10:10:15Z</dc:date>
    <item>
      <title>What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639818#M594969</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;attached is a sample data file (is a personal/desktop) edition.&lt;/P&gt;&lt;P&gt;The output i want to obtain is the following:&lt;/P&gt;&lt;P&gt;if field3 = 1,&amp;nbsp; the first 5 number of field4 and the last 2 of the same field.&lt;/P&gt;&lt;P&gt;field3 is not in table, so i use applymap function.&lt;/P&gt;&lt;P&gt;Can someone 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:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639818#M594969</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2024-11-16T02:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639828#M594970</link>
      <description>&lt;P&gt;Is this your expected output?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 271px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22344i7339147961E94C50/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639828#M594970</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-10-25T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639836#M594971</link>
      <description>&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;thanks for the message.&lt;/P&gt;&lt;P&gt;No, only in record with field2 01700000, o1600000 and ps000000 i want to see the value in new_field.&lt;/P&gt;&lt;P&gt;Because only in these record field3 = 1.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 09:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639836#M594971</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-25T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639838#M594972</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff"&gt;If&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;ApplyMap&lt;/FONT&gt;('KEY_TO_FIELD3',&lt;FONT color="#800000"&gt;[FIELD2]&lt;/FONT&gt;,'n/a')=1, (&lt;FONT color="#0000ff"&gt;Left&lt;/FONT&gt;(&lt;FONT color="#800000"&gt;[FIELD4]&lt;/FONT&gt;,5) &amp;amp; ',' &amp;amp; &lt;FONT color="#0000ff"&gt;Right&lt;/FONT&gt;(&lt;FONT color="#800000"&gt;[FIELD4]&lt;/FONT&gt;,2))) &lt;FONT color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT color="#800000"&gt;NEW_FIELD&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 09:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639838#M594972</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-10-25T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639839#M594973</link>
      <description>&lt;P&gt;Yes, i've tried this expression and it works.&lt;/P&gt;&lt;P&gt;But, field3 in my file has been imported from a txt file.&lt;/P&gt;&lt;P&gt;The script is something like: [@18:20] as field3 and in the straight table i not see "1" but "001".&lt;/P&gt;&lt;P&gt;I think it probably be a problem of format but i don't know how to solve it!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 09:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639839#M594973</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-25T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639846#M594974</link>
      <description>&lt;P&gt;001 is a text value here. You could get 1 from it using &lt;STRONG&gt;num(). &lt;/STRONG&gt;Remove comma and try like:&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT color="#0000ff"&gt;If&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;ApplyMap&lt;/FONT&gt;('KEY_TO_FIELD3',&lt;FONT color="#800000"&gt;[FIELD2]&lt;/FONT&gt;,'n/a')=1, &lt;FONT color="#0000ff"&gt;Num&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;Left&lt;/FONT&gt;(&lt;FONT color="#800000"&gt;[FIELD4]&lt;/FONT&gt;,5) &amp;amp; &lt;FONT color="#0000ff"&gt;Right&lt;/FONT&gt;(&lt;FONT color="#800000"&gt;[FIELD4]&lt;/FONT&gt;,2))) &lt;FONT color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT color="#800000"&gt;NEW_FIELD&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="3"&gt;;&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 10:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639846#M594974</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-10-25T10:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong in this expression in the script? Applymap &amp; IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639849#M594975</link>
      <description>&lt;P&gt;Sorry, but i don't understand the solution.&lt;/P&gt;&lt;P&gt;Now, in my file, new_field is correctly calculated.&lt;/P&gt;&lt;P&gt;The thing that is wrong is that the sw probably don't recognize that i want to see this value only in the records that have field3 = 1 !&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 10:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-in-this-expression-in-the-script-Applymap-amp-IF/m-p/1639849#M594975</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-25T10:10:15Z</dc:date>
    </item>
  </channel>
</rss>

