<?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 exclude nulls when using Match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772082#M454638</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;The attachment does not have all the syntax errors.&lt;/P&gt;&lt;P&gt;also note, I used regions and countries as an example, but this is not region/country specific&lt;/P&gt;&lt;P&gt;I have the following&lt;/P&gt;&lt;P&gt;CountryRegion:&lt;/P&gt;&lt;P&gt;MAPPING&lt;/P&gt;&lt;P&gt;load * INLINE [&lt;/P&gt;&lt;P&gt;status, region&lt;/P&gt;&lt;P&gt;LAUNCH_Mexico, LA&lt;/P&gt;&lt;P&gt;FRANCE ,WE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then data&lt;/P&gt;&lt;P&gt;Launch:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(MATCH(COUNTRY,'LAUNCH_US','LAUNCH_CANADA), 'US', //If it's us or canada, it's US&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF MATCH(COUNTRY'*LAUNCH*'), 'EX_US', // if it's any other country, it's exus&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; APPLYMAP('CountryRegion',COUNTRY,'') // any other values, apply the map or null&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;) as region&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;COUNTRY&lt;/P&gt;&lt;P&gt;LAUNCH_US&lt;/P&gt;&lt;P&gt;LAUNCH_CANADA&lt;/P&gt;&lt;P&gt;LAUNCH_RUSSIA&lt;/P&gt;&lt;P&gt;HONDURAS&lt;/P&gt;&lt;P&gt;JAPAN,&amp;nbsp;&lt;/P&gt;&lt;P&gt;FRANCE&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;so the expected output should be&lt;/P&gt;&lt;P&gt;LAUNCH_US, US&lt;/P&gt;&lt;P&gt;LAUNCH_CANADA, US&lt;/P&gt;&lt;P&gt;LAUNCH_RUSSIA, EX_US&lt;/P&gt;&lt;P&gt;HONDURAS, HONDURAS&lt;/P&gt;&lt;P&gt;JAPAN, ''&lt;/P&gt;&lt;P&gt;FRANCE , FRANCE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the problem&lt;/P&gt;&lt;P&gt;load *&amp;nbsp;&lt;/P&gt;&lt;P&gt;resident launch&lt;/P&gt;&lt;P&gt;where isnull(region) = 0 // tried len(region) &amp;gt;2 also tried to hide null values in the table itself, with alternate states.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot hide the null value in the table&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2021 02:07:09 GMT</pubDate>
    <dc:creator>RogerG</dc:creator>
    <dc:date>2021-01-06T02:07:09Z</dc:date>
    <item>
      <title>exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772082#M454638</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;The attachment does not have all the syntax errors.&lt;/P&gt;&lt;P&gt;also note, I used regions and countries as an example, but this is not region/country specific&lt;/P&gt;&lt;P&gt;I have the following&lt;/P&gt;&lt;P&gt;CountryRegion:&lt;/P&gt;&lt;P&gt;MAPPING&lt;/P&gt;&lt;P&gt;load * INLINE [&lt;/P&gt;&lt;P&gt;status, region&lt;/P&gt;&lt;P&gt;LAUNCH_Mexico, LA&lt;/P&gt;&lt;P&gt;FRANCE ,WE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then data&lt;/P&gt;&lt;P&gt;Launch:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(MATCH(COUNTRY,'LAUNCH_US','LAUNCH_CANADA), 'US', //If it's us or canada, it's US&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF MATCH(COUNTRY'*LAUNCH*'), 'EX_US', // if it's any other country, it's exus&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; APPLYMAP('CountryRegion',COUNTRY,'') // any other values, apply the map or null&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;) as region&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;COUNTRY&lt;/P&gt;&lt;P&gt;LAUNCH_US&lt;/P&gt;&lt;P&gt;LAUNCH_CANADA&lt;/P&gt;&lt;P&gt;LAUNCH_RUSSIA&lt;/P&gt;&lt;P&gt;HONDURAS&lt;/P&gt;&lt;P&gt;JAPAN,&amp;nbsp;&lt;/P&gt;&lt;P&gt;FRANCE&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;so the expected output should be&lt;/P&gt;&lt;P&gt;LAUNCH_US, US&lt;/P&gt;&lt;P&gt;LAUNCH_CANADA, US&lt;/P&gt;&lt;P&gt;LAUNCH_RUSSIA, EX_US&lt;/P&gt;&lt;P&gt;HONDURAS, HONDURAS&lt;/P&gt;&lt;P&gt;JAPAN, ''&lt;/P&gt;&lt;P&gt;FRANCE , FRANCE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now the problem&lt;/P&gt;&lt;P&gt;load *&amp;nbsp;&lt;/P&gt;&lt;P&gt;resident launch&lt;/P&gt;&lt;P&gt;where isnull(region) = 0 // tried len(region) &amp;gt;2 also tried to hide null values in the table itself, with alternate states.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot hide the null value in the table&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 02:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772082#M454638</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-06T02:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772137#M454649</link>
      <description>&lt;P&gt;You mean like this? PFA&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anil_Babu_Samineni_0-1609922485712.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46473iD753785DB13A984C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anil_Babu_Samineni_0-1609922485712.png" alt="Anil_Babu_Samineni_0-1609922485712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772137#M454649</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-01-06T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772181#M454651</link>
      <description>&lt;P&gt;Maybe use Qualify &amp;amp; Unqualify&lt;/P&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET ThousandSep=',';
SET DecimalSep='.';
SET MoneyThousandSep=',';
SET MoneyDecimalSep='.';
SET MoneyFormat='$#,##0.00;($#,##0.00)';
SET TimeFormat='h:mm:ss TT';
SET DateFormat='M/D/YYYY';
SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';
SET FirstWeekDay=6;
SET BrokenWeeks=1;
SET ReferenceDay=0;
SET FirstMonthOfYear=1;
SET CollationLocale='en-US';
SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';
SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';
SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';

SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';

//While I made this country specific, it is not
// it was the easiest thing I could think of to demonstrate my issue
CountryRegion:

MAPPING

load * INLINE [
	status, region
	Mexico, LA
	FRANCE ,WE
	JAPAN, JPAC
];

Launch:
LOAD *,
	// these needed to be handled dynamically due to the nubmber of changes month to month, I don't want to keep track of all the items I need to 
	// I know us and canada are always stable
	// all other launch things get EX_US
	//Everything else is defined in the mapping table
  IF(MATCH(COUNTRY,'LAUNCH_US','LAUNCH_CANADA'),'US', //If it's us or canada, it's US
       IF(wildMATCH(COUNTRY,'*LAUNCH*'), 'EX_US', // if it's any other country, it's exus
            APPLYMAP('CountryRegion',COUNTRY,'') // any other values, apply the map or null,
		)

     ) as region;

LOAD * INLINE [
COUNTRY, population
LAUNCH_US, 1000
LAUNCH_CANADA, 2000
LAUNCH_RUSSIA, 3000
HONDURAS, 4000
JAPAN, 5000
FRANCE, 6000
Mexico, 800
];


QUALIFY COUNTRY, region;
regions:
load COUNTRY, region
resident Launch
where region&amp;lt;&amp;gt;'';//DROP Table Launch; // tried len(region) &amp;gt;2 also tried to hide null values in the table itself, with alternate states.

UNQUALIFY COUNTRY, region;
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 10:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772181#M454651</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-01-06T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772264#M454664</link>
      <description>&lt;P&gt;This defeats the whole purpose.&amp;nbsp; I don't want to maintain a list of values for any future possibilities.&amp;nbsp; I mentioned that the region/country is an example, not the real data I am working with.&amp;nbsp; we have hundreds of values and could be updated anytime.&amp;nbsp; I was looking to just remove that "France" value from the second table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 14:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772264#M454664</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-06T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772265#M454665</link>
      <description>&lt;P&gt;Qualify would work, however I do need to reuse these values back into the original tables.&amp;nbsp; I was just hoping to not display the nulls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772265#M454665</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-06T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772270#M454666</link>
      <description>&lt;P&gt;And this?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 14:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772270#M454666</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-01-06T14:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: exclude nulls when using Match</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772340#M454668</link>
      <description>&lt;P&gt;Perfect, the Null() in the apply map, with all the other null references (where clause and table view) did the trick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 18:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-nulls-when-using-Match/m-p/1772340#M454668</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2021-01-06T18:27:57Z</dc:date>
    </item>
  </channel>
</rss>

