<?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 Use a mapping table in the WHERE  condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145534#M24226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franck,&lt;BR /&gt;this is exactly what Gordon says:&lt;BR /&gt;&lt;STRONG&gt;WHERE exists(Country) and exists(Year)&lt;/STRONG&gt;&lt;BR /&gt;Country and Year must be loaded before usin it in exists(). As for your original question - you certainly can use mapping in conditions. Assuming you have a map of Countries 'CountryMap', the condition could be;&lt;BR /&gt;WHERE applymap('CountryMap', Country, 'NONE') &amp;lt;&amp;gt; 'NONE'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2009 23:46:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-01T23:46:28Z</dc:date>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145531#M24223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if it's possible to use a mapping table (or conditions from another table) in the WHERE fonction.&lt;BR /&gt;Indeed, i load data from several sources and, for some values within, i don't want to load all.&lt;BR /&gt;I mean, i've several markets, and some have not so well-consolidated values, so i would like to remove them from the load during a specific time (after this time, data are quite better so i can use them...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does QV provide a way to process this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 16:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145531#M24223</guid>
      <dc:creator />
      <dc:date>2009-06-01T16:32:31Z</dc:date>
    </item>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145532#M24224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Franck,&lt;/P&gt;&lt;P&gt;Would an 'exists' test (with 'not' to negate it) in your where clause achieve what you need?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 18:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145532#M24224</guid>
      <dc:creator />
      <dc:date>2009-06-01T18:47:36Z</dc:date>
    </item>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145533#M24225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact, this is the kind of format i would use&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse;height:98px;" width="641"&gt;&lt;COL span="3" style="width:48pt;" width="64" /&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD height="17" style="height:12.75pt;width:48pt;" width="64"&gt;&lt;B&gt;Country&lt;/B&gt;&lt;/TD&gt;&lt;TD style="width:48pt;" width="64"&gt;&lt;B&gt;Sales_Start_Year&lt;/B&gt;&lt;/TD&gt;&lt;TD style="width:48pt;" width="64"&gt;&lt;B&gt;Sales_Start_Month&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD height="17" style="height:12.75pt;"&gt;USA&lt;/TD&gt;&lt;TD align="right"&gt;2007&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD height="17" style="height:12.75pt;"&gt;UK&lt;/TD&gt;&lt;TD align="right"&gt;2008&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD height="17" style="height:12.75pt;"&gt;FR&lt;/TD&gt;&lt;TD align="right"&gt;2007&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD height="17" style="height:12.75pt;"&gt;Canada&lt;/TD&gt;&lt;TD align="right"&gt;2009&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, in the sales query, for instance, it would be something like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;FROM Sales&lt;/P&gt;&lt;P&gt;WHERE Country=$_reference(country) AND Year=$_reference(Year)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i'm clearer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 18:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145533#M24225</guid>
      <dc:creator />
      <dc:date>2009-06-01T18:53:15Z</dc:date>
    </item>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145534#M24226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franck,&lt;BR /&gt;this is exactly what Gordon says:&lt;BR /&gt;&lt;STRONG&gt;WHERE exists(Country) and exists(Year)&lt;/STRONG&gt;&lt;BR /&gt;Country and Year must be loaded before usin it in exists(). As for your original question - you certainly can use mapping in conditions. Assuming you have a map of Countries 'CountryMap', the condition could be;&lt;BR /&gt;WHERE applymap('CountryMap', Country, 'NONE') &amp;lt;&amp;gt; 'NONE'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145534#M24226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-01T23:46:28Z</dc:date>
    </item>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145535#M24227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Michael.&lt;BR /&gt;Anyway, it seems your code won't work.&lt;BR /&gt;&lt;BR /&gt;Let me re-explain what i would like:&lt;/P&gt;&lt;P&gt;I would like to use a table (Country - Year - Month), use it as a reference table&lt;BR /&gt;When QlikView loads the Sales, it will check in the Reference Table if the Country is in this list&lt;BR /&gt;1) It's in this list, so QlikView gets the Year and Month and only load MORE Recent Data than Ref_Table.Year &amp;amp; Ref_Table.Month&lt;BR /&gt;2) It's not in this list, so load everything....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 19:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145535#M24227</guid>
      <dc:creator />
      <dc:date>2009-06-02T19:43:20Z</dc:date>
    </item>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145536#M24228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Michael.&lt;BR /&gt;Anyway, it seems your code won't work.&lt;BR /&gt;&lt;BR /&gt;Let me re-explain what i would like to achieve:&lt;BR /&gt;I would like to use a table (Country - Year - Month), use it as a reference table When QlikView loads the Sales, it will check in the Reference Table if the Country is in this list&lt;/P&gt;&lt;P&gt;1) It's in this list, so QlikView gets the Year and Month and only load MORE Recent Data than Ref_Table.Year &amp;amp; Ref_Table.Month&lt;/P&gt;&lt;P&gt;2) It's not in this list, so load everything....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me on this topic ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 19:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145536#M24228</guid>
      <dc:creator />
      <dc:date>2009-06-02T19:49:12Z</dc:date>
    </item>
    <item>
      <title>Use a mapping table in the WHERE  condition</title>
      <link>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145537#M24229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Franck,&lt;BR /&gt;See attached. I'm not sure if it's the simpliest way, but it works the way you explained it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 22:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-a-mapping-table-in-the-WHERE-condition/m-p/145537#M24229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-02T22:33:05Z</dc:date>
    </item>
  </channel>
</rss>

