<?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 Applymap with variable in statement possible in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215943#M69345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Created this:&lt;/P&gt;&lt;P&gt;Quarter_table:&lt;BR /&gt;MAPPING LOAD * INLINE [&lt;BR /&gt;Month, Quarter&lt;BR /&gt;Jan, Q1&lt;BR /&gt;Feb, Q1&lt;BR /&gt;Mrt, Q1&lt;BR /&gt;Apr, Q2&lt;BR /&gt;May, Q2&lt;BR /&gt;Jun, Q2&lt;BR /&gt;Jul, Q3&lt;BR /&gt;Aug, Q3&lt;BR /&gt;Sep, Q3&lt;BR /&gt;Oct, Q4&lt;BR /&gt;Nov, Q4&lt;BR /&gt;Dec, Q4];&lt;/P&gt;&lt;P&gt;and applied it here:&lt;/P&gt;&lt;P&gt;Treat:&lt;BR /&gt;NOCONCATENATE LOAD&lt;BR /&gt; *,&lt;BR /&gt; Month(DATE) as Treatment_month,&lt;BR /&gt; Year(DATE) as Treatment_year,&lt;BR /&gt; Date(DATE, 'DD-MM_YYYY') as Treatment_Date,&lt;BR /&gt; applymap('Quarter_table' , Month(DATE) , 'niks') as Treatment_Quarter&lt;BR /&gt;RESIDENT Treat_temp where Year(DATE) &amp;gt;=$($YearFrom);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the month, year and date work correct but not the month in the applymap. I have no idea why. The applymap result is niks where it should be Q1 or Q2 ....&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;Tnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2009 18:48:40 GMT</pubDate>
    <dc:creator>Michiel_QV_Fan</dc:creator>
    <dc:date>2009-10-14T18:48:40Z</dc:date>
    <item>
      <title>Applymap with variable in statement possible</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215943#M69345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Created this:&lt;/P&gt;&lt;P&gt;Quarter_table:&lt;BR /&gt;MAPPING LOAD * INLINE [&lt;BR /&gt;Month, Quarter&lt;BR /&gt;Jan, Q1&lt;BR /&gt;Feb, Q1&lt;BR /&gt;Mrt, Q1&lt;BR /&gt;Apr, Q2&lt;BR /&gt;May, Q2&lt;BR /&gt;Jun, Q2&lt;BR /&gt;Jul, Q3&lt;BR /&gt;Aug, Q3&lt;BR /&gt;Sep, Q3&lt;BR /&gt;Oct, Q4&lt;BR /&gt;Nov, Q4&lt;BR /&gt;Dec, Q4];&lt;/P&gt;&lt;P&gt;and applied it here:&lt;/P&gt;&lt;P&gt;Treat:&lt;BR /&gt;NOCONCATENATE LOAD&lt;BR /&gt; *,&lt;BR /&gt; Month(DATE) as Treatment_month,&lt;BR /&gt; Year(DATE) as Treatment_year,&lt;BR /&gt; Date(DATE, 'DD-MM_YYYY') as Treatment_Date,&lt;BR /&gt; applymap('Quarter_table' , Month(DATE) , 'niks') as Treatment_Quarter&lt;BR /&gt;RESIDENT Treat_temp where Year(DATE) &amp;gt;=$($YearFrom);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the month, year and date work correct but not the month in the applymap. I have no idea why. The applymap result is niks where it should be Q1 or Q2 ....&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;Tnx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215943#M69345</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2009-10-14T18:48:40Z</dc:date>
    </item>
    <item>
      <title>Applymap with variable in statement possible</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215944#M69346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;could it be that Month(Date) hold the numbers and not the text expression.&lt;/P&gt;&lt;P&gt;So you are trying to compare JAN with 1 as example?&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 18:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215944#M69346</guid>
      <dc:creator />
      <dc:date>2009-10-14T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Applymap with variable in statement possible</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215945#M69347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;You scored 100%!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Gift" src="http://community.qlik.com/emoticons/emotion-51.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 19:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-variable-in-statement-possible/m-p/215945#M69347</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2009-10-14T19:00:04Z</dc:date>
    </item>
  </channel>
</rss>

