<?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: Multiply applymap and IF – Results in variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639210#M678269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variable can only hold one value and can not be an array unfortunately. You could technically create a string of results separated with a delimiter but this can become messy if you have many "results". Instead I suggest you to use the peek() function on the table where TESTToRegion is loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2014 10:49:52 GMT</pubDate>
    <dc:creator>simondachstr</dc:creator>
    <dc:date>2014-06-04T10:49:52Z</dc:date>
    <item>
      <title>Multiply applymap and IF – Results in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639209#M678268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! In my script I have one line with many nested IFs and Applymap.&lt;/P&gt;&lt;P&gt;Can I put the results in a variable to use few lines below in another IF statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Fjalar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ApplyMap('Map_Facility',ApplyMap('Map_OrderInfo', %Key_Voucher_Light,%Key_Order))='IRA','SE', if(Applymap('Map_Country',ApplyMap('Map_CustCountry',ApplyMap('Map_Customer',ApplyMap('Map_SuppInvoice',ApplyMap('Map_OrderInfo', %Key_Voucher_Light,%Key_Order)))))=1, if(ApplyMap('Map_CustCountry',ApplyMap('Map_Customer',ApplyMap('Map_SuppInvoice',ApplyMap('Map_OrderInfo', %Key_Voucher_Light,%Key_Order))))='SE','SE','EU'),'Non EU')) as TESTToRegion,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 10:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639209#M678268</guid>
      <dc:creator />
      <dc:date>2014-06-04T10:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply applymap and IF – Results in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639210#M678269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A variable can only hold one value and can not be an array unfortunately. You could technically create a string of results separated with a delimiter but this can become messy if you have many "results". Instead I suggest you to use the peek() function on the table where TESTToRegion is loaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 10:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639210#M678269</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-06-04T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply applymap and IF – Results in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639211#M678270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may use peek() to get values from previous rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is difficult knowing not your entire case, but have you considered to join instead of those all if and applymap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 10:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639211#M678270</guid>
      <dc:creator />
      <dc:date>2014-06-04T10:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply applymap and IF – Results in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639212#M678271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dariusz!&lt;/P&gt;&lt;P&gt;Yes I have considered to join.&amp;nbsp; I'll probably try that, keeps the script cleaner.&amp;nbsp; Not sure how peek kan help me because I have to use the value from current row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;// Fjalar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 11:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639212#M678271</guid>
      <dc:creator />
      <dc:date>2014-06-04T11:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply applymap and IF – Results in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639213#M678272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you told:&lt;/P&gt;&lt;P&gt;Can I put the results in a variable to use few lines below in another IF statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, few lines below use peek() to get results from previous line....&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 11:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639213#M678272</guid>
      <dc:creator />
      <dc:date>2014-06-04T11:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply applymap and IF – Results in variable</title>
      <link>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639214#M678273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;Misunderstanding!&lt;/P&gt;&lt;P&gt;Can I then use the peek function like this to get the value from TESTToRegion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Peek('TESTToRegion')='SE','Sweden','Not Sweden') as PeekTEST,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never used peek before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Fjalar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 12:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiply-applymap-and-IF-Results-in-variable/m-p/639214#M678273</guid>
      <dc:creator />
      <dc:date>2014-06-04T12:11:18Z</dc:date>
    </item>
  </channel>
</rss>

