<?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 I think I should be using ApplyMap? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-think-I-should-be-using-ApplyMap/m-p/844237#M1019211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Scorecard excel file with ColumnName, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Column2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Column3, Value &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In another excel file, I have 2 tabs, CompletenessFlag and ActField which have ColumnA and ColumnB and then Column X and Column Z respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; I want to &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Look at&amp;nbsp; ColumnName in &lt;SPAN style="font-size: 13.3333330154419px;"&gt;my Nulls excel file, take value 1 and then&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;in my other excel file, i&lt;SPAN style="font-size: 13.3333330154419px;"&gt;n the CompletenessFlag tab&lt;/SPAN&gt;, Iterate each field of ColumnA and check to see if if the value I have from&amp;nbsp; field 1 equals the value of ColumnA from the CompletenessFlag&lt;UL&gt;&lt;LI&gt;if it doesnt, exit and go to value 2 of Column Name in Nulls&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If this value does match, then go to ActField tab, check to see if ColumnX matches also with the previous values that we collected and ALSO that columnZ = 'y'&lt;UL&gt;&lt;LI&gt;if it doesnt, exit and go to value 2 of Column Name in Nulls.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you can imagine, in Column Name in my Nulls table, I want to check to see if Column Name = Scorecard, it will then check CompletenessFlag tabe and see if Column Name = Scorecard, if its not, go back to Nulls, and go to the next field and go with the next value. If it does equal Scorecard, then check then next Act_Materialfields tab, is scorecard here? Yes ... but is Score= 'Y'? It is?, Perfect, go back to Nulls and take the value of Count Non-Nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Act_Materialfields_Map:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Table Name] , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; [Column Name]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Act_MaterialFields);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompletenessFlag_Map:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; [Column Name],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Score&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CompletenessFlag);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nulls:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Country &amp;amp; '-' &amp;amp; NULLS_Date as %Nulls_Detail,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country&amp;nbsp; as Nulls.Country, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Table Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; [Column Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Count Null], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Count non-Null], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Act_Materialfields_Map', [Table Name], 'error') as [Act_Column_Name] ,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('CompletenessFlag_Map', [Column Name], 'error') as Comp_Column_Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULLS_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULLS_Country_Code&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 09:10:15 GMT</pubDate>
    <dc:creator>bobbydave</dc:creator>
    <dc:date>2015-04-02T09:10:15Z</dc:date>
    <item>
      <title>I think I should be using ApplyMap?</title>
      <link>https://community.qlik.com/t5/QlikView/I-think-I-should-be-using-ApplyMap/m-p/844237#M1019211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Scorecard excel file with ColumnName, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Column2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Column3, Value &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In another excel file, I have 2 tabs, CompletenessFlag and ActField which have ColumnA and ColumnB and then Column X and Column Z respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; I want to &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Look at&amp;nbsp; ColumnName in &lt;SPAN style="font-size: 13.3333330154419px;"&gt;my Nulls excel file, take value 1 and then&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;in my other excel file, i&lt;SPAN style="font-size: 13.3333330154419px;"&gt;n the CompletenessFlag tab&lt;/SPAN&gt;, Iterate each field of ColumnA and check to see if if the value I have from&amp;nbsp; field 1 equals the value of ColumnA from the CompletenessFlag&lt;UL&gt;&lt;LI&gt;if it doesnt, exit and go to value 2 of Column Name in Nulls&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If this value does match, then go to ActField tab, check to see if ColumnX matches also with the previous values that we collected and ALSO that columnZ = 'y'&lt;UL&gt;&lt;LI&gt;if it doesnt, exit and go to value 2 of Column Name in Nulls.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you can imagine, in Column Name in my Nulls table, I want to check to see if Column Name = Scorecard, it will then check CompletenessFlag tabe and see if Column Name = Scorecard, if its not, go back to Nulls, and go to the next field and go with the next value. If it does equal Scorecard, then check then next Act_Materialfields tab, is scorecard here? Yes ... but is Score= 'Y'? It is?, Perfect, go back to Nulls and take the value of Count Non-Nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Act_Materialfields_Map:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Table Name] , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; [Column Name]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Act_MaterialFields);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompletenessFlag_Map:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; [Column Name],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Score&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is CompletenessFlag);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nulls:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Country &amp;amp; '-' &amp;amp; NULLS_Date as %Nulls_Detail,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Country&amp;nbsp; as Nulls.Country, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Table Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; [Column Name], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Count Null], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Count non-Null], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Act_Materialfields_Map', [Table Name], 'error') as [Act_Column_Name] ,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('CompletenessFlag_Map', [Column Name], 'error') as Comp_Column_Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULLS_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULLS_Country_Code&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;&lt;/D&gt;&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 09:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-think-I-should-be-using-ApplyMap/m-p/844237#M1019211</guid>
      <dc:creator>bobbydave</dc:creator>
      <dc:date>2015-04-02T09:10:15Z</dc:date>
    </item>
  </channel>
</rss>

