<?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 with FieldName in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394017#M615383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let&amp;nbsp; vMetriccode = '1,2,3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD PurchOrder_LineID as Tmp_LineID,&lt;/P&gt;&lt;P&gt;PurchOrder_No as Tmp_PurchOrder_No,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;subfield('$(vMetriccode)',',') as Tmp_MetricCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident OpenPurchOrders&lt;/P&gt;&lt;P&gt;Where Year(&lt;STRONG&gt;PurchOrder_Line_DepartDate&lt;/STRONG&gt;) =1988;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use applymap on &lt;STRONG&gt;Tmp_MetricCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2017 09:40:03 GMT</pubDate>
    <dc:creator>qliksus</dc:creator>
    <dc:date>2017-08-14T09:40:03Z</dc:date>
    <item>
      <title>Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394012#M615378</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;I would like to use ApplyMap by the FieldName, to some fields.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;ApplyMap('Map_FieldCode', &lt;A name="FieldName"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;FieldName(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;nr ,'TableName'&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought of using a loop, but something is going wrong while trying to&amp;nbsp; create the new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenPurchOrder:&lt;/P&gt;&lt;P&gt;LOAD Distinct PurchOrder_LineID,&lt;/P&gt;&lt;P&gt;PurchOrder_Line_DepartDate,&lt;/P&gt;&lt;P&gt;PurchOrder_Line_SupplyDate,&lt;/P&gt;&lt;P&gt;from $(vQVDPath)PurchOrder.QVD (qvd)&lt;/P&gt;&lt;P&gt;Where PurchOrder_Flag_IsClosed =0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET NF = NoOfFields('OpenPurchOrder');&lt;/P&gt;&lt;P&gt;LET NR = NoOfRows('OpenPurchOrder');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR I = 1 TO $(NR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR J = 1 to $(NF)&lt;/P&gt;&lt;P&gt;TmpTable:&lt;/P&gt;&lt;P&gt;LOAD FieldName($(J),'OpenPurchOrder');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 15:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394012#M615378</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-13T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394013#M615379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dafnis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain what are you trying to accomplish, in simple words? Are you mapping field names or field values? how does your mapping table look like?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="https://masterssummit.com/"&gt;Masters Summit for Qlik&lt;/A&gt; - coming to Boston, MA this October!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 15:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394013#M615379</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-08-13T15:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394014#M615380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to map a value by the&amp;nbsp; QVD field name:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="417"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" class="xl64" height="17" width="207"&gt;QVD_FieldName&lt;/TD&gt;&lt;TD align="left" class="xl64" width="210"&gt;Metric_Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl64" height="17"&gt;PurchOrder_Line_DepartDate&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl64" height="17"&gt;PurchOrder_Line_SupplyDate&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="left" class="xl64" height="17"&gt;PurchOrder_Line_Flag_SuppDateIsConf&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 15:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394014#M615380</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-13T15:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394015#M615381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, still missing the point... Maybe if you describe your source data and the desired result, it could become clearer...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 15:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394015#M615381</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2017-08-13T15:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394016#M615382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I realize that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the base table:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OpenPurchOrder:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Distinct PurchOrder_LineID,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PurchOrder_Line_DepartDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PurchOrder_Line_SupplyDate,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from $(vQVDPath)PurchOrder.QVD (qvd)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where PurchOrder_Flag_IsClosed =0;&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 would like to link&amp;nbsp; metric code to some of the fields.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The mapping is based on the field name.&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;Otherwise, i have to write it in the script:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For example:&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&gt;Concatenate (MissingDates)&lt;/P&gt;&lt;P&gt;LOAD PurchOrder_LineID as Tmp_LineID,&lt;/P&gt;&lt;P&gt;PurchOrder_No as Tmp_PurchOrder_No,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 as Tmp_MetricCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident OpenPurchOrders&lt;/P&gt;&lt;P&gt;Where Year(&lt;STRONG&gt;PurchOrder_Line_DepartDate&lt;/STRONG&gt;) =1988;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate (MissingDates)&lt;/P&gt;&lt;P&gt;LOAD PurchOrder_LineID as Tmp_LineID,&lt;/P&gt;&lt;P&gt;PurchOrder_No as Tmp_PurchOrder_No,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3 as Tmp_MetricCode,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident OpenPurchOrders&lt;/P&gt;&lt;P&gt;Where Year(&lt;STRONG&gt;PurchOrder_Line_SupplyDate&lt;/STRONG&gt;) =1988;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2017 15:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394016#M615382</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-13T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394017#M615383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try something like the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let&amp;nbsp; vMetriccode = '1,2,3';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD PurchOrder_LineID as Tmp_LineID,&lt;/P&gt;&lt;P&gt;PurchOrder_No as Tmp_PurchOrder_No,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;subfield('$(vMetriccode)',',') as Tmp_MetricCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident OpenPurchOrders&lt;/P&gt;&lt;P&gt;Where Year(&lt;STRONG&gt;PurchOrder_Line_DepartDate&lt;/STRONG&gt;) =1988;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use applymap on &lt;STRONG&gt;Tmp_MetricCode&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 09:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394017#M615383</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2017-08-14T09:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Applymap with FieldName</title>
      <link>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394018#M615384</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;Sorry for my late response...&lt;/P&gt;&lt;P&gt;Please note that for each metric I check another field (DepartDate, SuppluDate, etc..)&lt;/P&gt;&lt;P&gt;So i'm not sure how i should apply your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 05:42:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applymap-with-FieldName/m-p/1394018#M615384</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2017-08-17T05:42:44Z</dc:date>
    </item>
  </channel>
</rss>

