<?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 testing if a mapping table exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201794#M386884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I need to test if a mapping table is loaded. usually for a "normal" table i'm using a test of NoOfRows() but with a mapping table it doesn't work... any idea.&lt;/P&gt;&lt;P&gt;I do have an ugly workaround :when I load the mapping table, I manage a referential as the same time and I test a peek() on the ref... yurk! pretty uggly!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 22:39:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-17T22:39:06Z</dc:date>
    <item>
      <title>testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201794#M386884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I need to test if a mapping table is loaded. usually for a "normal" table i'm using a test of NoOfRows() but with a mapping table it doesn't work... any idea.&lt;/P&gt;&lt;P&gt;I do have an ugly workaround :when I load the mapping table, I manage a referential as the same time and I test a peek() on the ref... yurk! pretty uggly!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201794#M386884</guid>
      <dc:creator />
      <dc:date>2016-10-17T22:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201795#M386885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I really needed to validate that the data was loaded into the mapping table, I'd first load the same data into a regular non-mapping table, then test what's needed to be tested, and then load the Mapping table as a resident load from the conventional table. It's an extra step, but I think it's the only way. AFAIK, you can't refer to the Mapping table in the script otherwise...&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;Learn advanced Qlik techniques in my book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=CVZRHMG6CVR2FGTA"&gt;QlikView Your Business&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201795#M386885</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-10-17T22:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201796#M386886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During development, it's always a good idea to validate the data that you'll be loading later as a mapping table.&lt;/P&gt;&lt;P&gt;Are you using a mapping table for a different purpose perhaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 23:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201796#M386886</guid>
      <dc:creator>shawn-qv</dc:creator>
      <dc:date>2016-10-17T23:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201797#M386887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I develop with subs each sub is creating 1 table (fac or dim).&lt;/P&gt;&lt;P&gt;I need this massive mapping table in many subs.&lt;/P&gt;&lt;P&gt;During my development I'm reloading only the table/s I'm working on...not all the data model.&lt;/P&gt;&lt;P&gt;the test just say :if the mapping tables was not loaded before than load it, else use the one you already got in memory.&lt;/P&gt;&lt;P&gt;Just to make my like easier in dev... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 23:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201797#M386887</guid>
      <dc:creator />
      <dc:date>2016-10-17T23:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201798#M386888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mapping tables are invisible to table functions and script statements. A workaround I've used for your case is to set a variable when loading the table and test it later.&amp;nbsp; If required, you can use a compound variable name that takes into account the table you are working on. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SUB MySub(table)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF len(mappingloaded.$(table))=0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; MAP_$(table):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Mapping LOAD 1,2 AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; SET mappingloaded.$(table)=true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDSUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL MySub('Customer')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL MySub('X')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CALL MySub('Customer')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201798#M386888</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-10-18T00:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201799#M386889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool! we got a similar alternative... I was just hopping one of the function available can do that for me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201799#M386889</guid>
      <dc:creator />
      <dc:date>2016-10-18T00:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: testing if a mapping table exists</title>
      <link>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201800#M386890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Rob! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/testing-if-a-mapping-table-exists/m-p/1201800#M386890</guid>
      <dc:creator />
      <dc:date>2016-10-18T00:27:41Z</dc:date>
    </item>
  </channel>
</rss>

