<?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: Applymap and tmp table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950916#M646905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's only that line check if there is records in TransactionUsers with values in Number_Dialed starting by '+_' or '0_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also try wildmatch:&lt;/P&gt;&lt;P&gt;Where ... and WildMatch(Trim(Number_Dialed), '+_*', '0_*') and ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 12:57:05 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-11-24T12:57:05Z</dc:date>
    <item>
      <title>Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950899#M646888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I use applymap to create a tmp table.&lt;/P&gt;&lt;P&gt;Then i want to filter that data using select statements.&lt;/P&gt;&lt;P&gt;I dont know how to replace Transactions table with my tmp table!!!&lt;/P&gt;&lt;P&gt;Pls help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a sample of my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Transfer user names to Transactions&lt;/P&gt;&lt;P&gt;MapTelephoneExtToUsers:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD * &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[New folder\New folder\USERS.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create temp table containing all fields&lt;/P&gt;&lt;P&gt;TransactionUsers:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;ApplyMap ('MapTelephoneExtToUsers',Ext, null() ) as NUsers;&lt;/P&gt;&lt;P&gt;sql select&amp;nbsp; * from Transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxTable:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;SQL SELECT MIN(DATE) AS minDate, MAX(DATE) AS maxDate from Transactions;&lt;/P&gt;&lt;P&gt;let vMinDate = peek('minDate',0,'MinMaxTable');&lt;/P&gt;&lt;P&gt;let vMaxDate = peek('maxDate',0,'MinMaxTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/P&gt;&lt;P&gt;SELECT ext, COUNT(ext) AS INTERNATIONAL FROM Transactions WHERE (date BETWEEN #$(MinDate)# AND #$(MaxDate)#) AND ( TRIM(number_dialed) LIKE '+_%' OR TRIM(number_dialed) LIKE '0_%') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 GROUP BY ext;&lt;/P&gt;&lt;P&gt;Outer Join (Q1_TOTAL_TRANSACTIONS_NUMBER)&lt;/P&gt;&lt;P&gt;LOAD *; &lt;/P&gt;&lt;P&gt;SELECT ext, COUNT(ext) AS MOBILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Transactions WHERE (date BETWEEN #$(MinDate)# AND #$(MaxDate)#) AND ( TRIM(number_dialed) LIKE '9%') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 GROUP BY ext;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 09:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950899#M646888</guid>
      <dc:creator />
      <dc:date>2015-11-20T09:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950900#M646889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George, maybe is only a typo in the post but your variables are named '&lt;STRONG&gt;v&lt;/STRONG&gt;MinDate' and '&lt;STRONG&gt;v&lt;/STRONG&gt;MaxDate', in the SELECT you're using 'Mindate' and 'MaxDate' (without the preceding 'v').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check in the reload log how is constructing the final SELECT, maybe the variables needs a Date() funtion to format the date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950900#M646889</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-20T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950901#M646890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ruben.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date function works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that i want to retrieve the data further down from the tmp table (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TransactionUsers)&lt;/SPAN&gt; instead of the Transactions table but i don't know how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 10:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950901#M646890</guid>
      <dc:creator />
      <dc:date>2015-11-20T10:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950902#M646891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you asking about 'Resident' load?. Resident is used to load from a previously loaded table in QV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test:&lt;/P&gt;&lt;P&gt;LOAD * Resident TransactionUsers Where DateField&amp;gt;='$(vMindate)' and DateField&amp;lt;='$(vMaxDate)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 11:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950902#M646891</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-20T11:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950903#M646892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link. You might get some idea. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" title="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 11:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950903#M646892</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-20T11:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950904#M646893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i will take things from the start because i haven't explained well what i need .&lt;/P&gt;&lt;P&gt;I have a table named "Transactions" and my script works perfectly when i am using it.&lt;/P&gt;&lt;P&gt;All i want to do now is add a column to that table using applymap and use the new table in my script.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Ex. I have now:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT ext, COUNT(ext) AS INTERNATIONAL FROM &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Transactions&lt;/STRONG&gt;&lt;/SPAN&gt; WHERE (date BETWEEN #$(MinDate)# AND #$(MaxDate)#) AND ( TRIM(number_dialed) LIKE '+_%' OR TRIM(number_dialed) LIKE '0_%') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 GROUP BY ext;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;And i want to do:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT ext, COUNT(ext) AS INTERNATIONAL FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;TransactionUsers &lt;/STRONG&gt;&lt;/SPAN&gt;WHERE (date BETWEEN #$(MinDate)# AND #$(MaxDate)#) AND ( TRIM(number_dialed) LIKE '+_%' OR TRIM(number_dialed) LIKE '0_%') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 GROUP BY ext;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 11:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950904#M646893</guid>
      <dc:creator />
      <dc:date>2015-11-20T11:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950905#M646894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried with Resident like I said before?&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD ext, COUNT(ext) AS INTERNATIONAL&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;TransactionUsers &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE DateField&amp;gt;='$(vMindate)' and DateField&amp;lt;='$(vMaxDate)' AND ( Left(TRIM(number_dialed), 2)='+_' OR Left(TRIM(number_dialed), 2)='0_') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 GROUP BY ext;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the fields used in 'Where' have to be loaded in TransactionUsers table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 12:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950905#M646894</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-20T12:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950906#M646895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have tried the script you sent me but it gives me the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;date&amp;gt;&lt;/P&gt;&lt;P&gt;MinMaxTable:&lt;/P&gt;&lt;P&gt;LOAD * Resident TransactionUsers Where date&amp;gt;='' and date&amp;lt;='18/11/2015'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 14:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950906#M646895</guid>
      <dc:creator />
      <dc:date>2015-11-20T14:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950907#M646896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create temp table containing all fields&lt;/P&gt;&lt;P&gt;TransactionUsers:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;ApplyMap ('MapTelephoneExtToUsers',Ext, null() ) as NUsers;&lt;/P&gt;&lt;P&gt;sql select&amp;nbsp; * from Transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxTable:&lt;/P&gt;&lt;P&gt;Load MIN(DATE) AS minDate, MAX(DATE) AS maxDate Resident TransactionUsers;&lt;/P&gt;&lt;P&gt;let vMinDate = peek('minDate',0,'MinMaxTable');&lt;/P&gt;&lt;P&gt;let vMaxDate = peek('maxDate',0,'MinMaxTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noconcatenate: &lt;/P&gt;&lt;P&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/P&gt;&lt;P&gt;load ext, COUNT(ext) AS INTERNATIONAL Resident TransactionUsers&lt;/P&gt;&lt;P&gt; WHERE (DATE &amp;lt;= $(vMinDate) AND DATE&amp;gt;=$(vMaxDate)) AND ( TRIM(number_dialed) LIKE '+*' OR TRIM(number_dialed) LIKE '0*') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 &lt;/P&gt;&lt;P&gt; GROUP BY ext;&lt;/P&gt;&lt;P&gt;Outer Join (Q1_TOTAL_TRANSACTIONS_NUMBER)&lt;/P&gt;&lt;P&gt;load ext, COUNT(ext) AS MOBILE Resident TransactionUsers&lt;/P&gt;&lt;P&gt; WHERE (DATE &amp;lt;= $(vMinDate) AND DATE&amp;gt;=$(vMaxDate)) AND ( TRIM(number_dialed) LIKE '9*') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 &lt;/P&gt;&lt;P&gt; GROUP BY ext;&lt;/P&gt;&lt;P&gt;drop table &lt;SPAN style="font-size: 13.3333px;"&gt;TransactionUsers;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 07:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950907#M646896</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-11-23T07:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950908#M646897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's telling that the 'date' field doesn't exists, check if this is exactly the name of the field. Field name are case sensitive so 'date'&amp;lt;&amp;gt;'Date'&amp;lt;&amp;gt;'DATE'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 08:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950908#M646897</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-23T08:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950909#M646898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben thanks for all the help. You were wright about the field,it was case sensitive. Now my problem is when i run the script it gives no errors but it doesn't fetch a line.&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;Connected&lt;/P&gt;&lt;P&gt;MapTelephoneExtToUsers &amp;lt;&amp;lt; Sheet1 76 lines fetched&lt;/P&gt;&lt;P&gt;TransactionUsers &amp;lt;&amp;lt; Transactions 289.470 lines fetched&lt;/P&gt;&lt;P&gt;MinMaxTable &amp;lt;&amp;lt; TransactionUsers 1 lines fetched&lt;/P&gt;&lt;P&gt;Q1_TOTAL_TRANSACTIONS_NUMBER &amp;lt;&amp;lt; TransactionUsers 0 lines fetched&lt;/P&gt;&lt;P&gt;TransactionUsers 0 lines fetched&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Below is my script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MapTelephoneExtToUsers:&lt;/P&gt;&lt;P&gt;Mapping &lt;/P&gt;&lt;P&gt;LOAD *&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[qliktest\New folder\USERS.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TransactionUsers:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;ApplyMap ('MapTelephoneExtToUsers',Ext, null() ) as NUsers;&lt;/P&gt;&lt;P&gt;sql select&amp;nbsp; * from Transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxTable:&lt;/P&gt;&lt;P&gt;LOAD MIN(Date) AS minDate, MAX(Date) AS maxDate Resident TransactionUsers;&lt;/P&gt;&lt;P&gt;let vMinDate = peek('minDate',0,'MinMaxTable');&lt;/P&gt;&lt;P&gt;let vMaxDate = peek('maxDate',0,'MinMaxTable');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD Ext, COUNT(Ext) AS INTERNATIONAL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident TransactionUsers&lt;/P&gt;&lt;P&gt;WHERE Date&amp;gt;=$(MinDate) AND Date&amp;lt;=$(MaxDate) AND&amp;nbsp; ( Left(TRIM(Number_Dialed), 2)='+_' OR Left(TRIM(Number_Dialed), 2)='0_') AND Status = 'O' AND Cost &amp;lt;&amp;gt; 0.0 GROUP BY Ext;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer Join (Q1_TOTAL_TRANSACTIONS_NUMBER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Ext, COUNT(Ext) AS MOBILE&lt;/P&gt;&lt;P&gt;Resident TransactionUsers&lt;/P&gt;&lt;P&gt;WHERE Date&amp;gt;=$(MinDate) AND Date&amp;lt;=$(MaxDate) AND ( TRIM(Number_Dialed) LIKE '9%') AND Status = 'O' AND Cost &amp;lt;&amp;gt; 0.0 GROUP BY Ext;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinDate and MaxDate get whatever value i choose in the calendar so their working proberly, the problem occurs when i try to filter the Resident table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 14:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950909#M646898</guid>
      <dc:creator />
      <dc:date>2015-11-23T14:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950910#M646899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should use '*' in your conditions instead of '%'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 17:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950910#M646899</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-11-23T17:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950911#M646900</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;Mapping Load takes two fields and only two, you have to define the keyfiled and the field you want to map, like this.&lt;/P&gt;&lt;P&gt;MapTelephoneExtToUsers:&lt;/P&gt;&lt;P&gt;Mapping &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Keyfield,&lt;/P&gt;&lt;P&gt;Valuefield&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[qliktest\New folder\USERS.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 19:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950911#M646900</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2015-11-23T19:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950912#M646901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in your '&lt;SPAN class="j-post-author"&gt;20-nov-2015 15:36' post seems that QV doesn't have a value in MinDate (it shows "Where date&amp;gt;=&lt;STRONG&gt;''&lt;/STRONG&gt; and date&amp;lt;='18/11/2015')"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Check in the reload log if the script is retrieving the dates stored in the variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Also add a simple quote before and after the variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;- $(MinDate) --&amp;gt; '$(MinDate)'&lt;/P&gt;&lt;P&gt;- $(MaxDate) --&amp;gt; '$(MaxDate)'&lt;/P&gt;&lt;P&gt;- (TRIM(Number_Dialed) LIKE '9%') --&amp;gt; (Left(TRIM(Number_Dialed),1)='9')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950912#M646901</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-24T08:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950913#M646902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My table only consists 2 fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950913#M646902</guid>
      <dc:creator />
      <dc:date>2015-11-24T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950914#M646903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MinDate and MaxDate variables get whatever value i select in the calendar of qlikview so their working correctly. I tested them many times. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I also tried the syntax you recommended in your last post but the problem still remains the same.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The difference from previously is that now i filter the resident table (which is Transaction table + one extra column) instead Transactions table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;BEFORE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SELECT ext, COUNT(ext) AS INTERNATIONAL FROM Transactions WHERE (date BETWEEN #$(MinDate)# AND #$(MaxDate)#) AND ( TRIM(number_dialed) LIKE '+_%' OR TRIM(number_dialed) LIKE '0_%') AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0 GROUP BY ext;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;For the date 13/11/2015 it fetches 27 lines.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;NOW:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;LOAD Ext, COUNT(Ext) AS INTERNATIONAL&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident TransactionUsers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE Date&amp;gt;='$(MinDate)' AND Date&amp;lt;='$(MaxDate)' AND&amp;nbsp; ( Left(TRIM(Number_Dialed), 2)='+_' OR Left(TRIM(Number_Dialed), 2)='0_') AND Status = 'O' AND Cost &amp;lt;&amp;gt; 0.0 GROUP BY Ext;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: underline;"&gt;&lt;STRONG&gt;For the date 13/11/2015 i&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;t fetches 0 lines.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"" ( Left(TRIM(Number_Dialed), 2)='+_' OR Left(TRIM(Number_Dialed), 2)='0_') ""&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When i remove the script above it fetches 40 lines. So the problem must be in that part of the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 10:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950914#M646903</guid>
      <dc:creator />
      <dc:date>2015-11-24T10:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950915#M646904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Q1_TOTAL_TRANSACTIONS_NUMBER:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load ext, COUNT(ext) AS INTERNATIONAL Resident TransactionUsers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE (DATE &amp;lt;= $(vMinDate) AND DATE&amp;gt;=$(vMaxDate)) AND ( TRIM(number_dialed)&lt;STRONG&gt; LIKE '+*'&lt;/STRONG&gt; OR TRIM(number_dialed) &lt;STRONG&gt;LIKE '0*')&lt;/STRONG&gt; AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY ext;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Join (Q1_TOTAL_TRANSACTIONS_NUMBER)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load ext, COUNT(ext) AS MOBILE Resident TransactionUsers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE (DATE &amp;lt;= $(vMinDate) AND DATE&amp;gt;=$(vMaxDate)) AND ( TRIM(number_dialed) &lt;STRONG&gt;LIKE '9*')&lt;/STRONG&gt; AND status = 'O' AND cost &amp;lt;&amp;gt; 0.0&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;GROUP BY ext;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 11:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950915#M646904</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-11-24T11:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950916#M646905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's only that line check if there is records in TransactionUsers with values in Number_Dialed starting by '+_' or '0_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also try wildmatch:&lt;/P&gt;&lt;P&gt;Where ... and WildMatch(Trim(Number_Dialed), '+_*', '0_*') and ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 12:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950916#M646905</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-11-24T12:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap and tmp table</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950917#M646906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your help. The problem is fixed. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 14:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-and-tmp-table/m-p/950917#M646906</guid>
      <dc:creator />
      <dc:date>2015-12-04T14:49:15Z</dc:date>
    </item>
  </channel>
</rss>

