<?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: Handle unmatched values in ApplyMap conditional statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658568#M49328</link>
    <description>&lt;P&gt;I want to clarify your statement about text values using a lot of space in the QVD.&amp;nbsp; Do you mean if you use a fixed value like "UNKNOWN"?&amp;nbsp; That should take the same amount of space in a QVD as "-1".&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 15:31:31 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2019-12-17T15:31:31Z</dc:date>
    <item>
      <title>Handle unmatched values in ApplyMap conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658516#M49321</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;In my model, I create a new column by using ApplyMap in a conditional If statement. I give a default value to the records which don't have a match but when it is a text value, it occupy a lot of space in my QVDs. I tried to put numerical codes for the unmatched values which makes it very hard for the business to recognize the meaning of the number of error.&lt;/P&gt;&lt;P&gt;Is there any best practice to handle these kind of issues?&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(isnull(Table1.Table1Key)&lt;BR /&gt;,-1&lt;BR /&gt;,if(isnull(Table2.Table2Key)&lt;BR /&gt;, -1&lt;BR /&gt;,Applymap('Mapping_Example',Table3.Table3Key,-1))) as Column1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone recommand a&amp;nbsp; way to handle the unmatched values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658516#M49321</guid>
      <dc:creator>FreeBI</dc:creator>
      <dc:date>2024-11-16T19:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Handle unmatched values in ApplyMap conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658548#M49325</link>
      <description>&lt;P&gt;load it default value as a number for eg. 1 within table. Then create a separate column with distinct values and link it with original value.&lt;/P&gt;&lt;P&gt;Below which you are already doing it&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(isnull(Table1.Table1Key)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,-1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,if(isnull(Table2.Table2Key)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, -1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,Applymap('Mapping_Example',Table3.Table3Key,-1))) as Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now create a same column with distinct value and there you replace -1 with any value and link with Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Column1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Column1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(&amp;nbsp;Column1=-1,'Default',Column1) as&amp;nbsp;Column2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fieldvalue('Column1',recno()) as&amp;nbsp;Column1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;autogenerate fieldvaluecount('Column1');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now use column2 as display&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 14:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658548#M49325</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2019-12-17T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Handle unmatched values in ApplyMap conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658568#M49328</link>
      <description>&lt;P&gt;I want to clarify your statement about text values using a lot of space in the QVD.&amp;nbsp; Do you mean if you use a fixed value like "UNKNOWN"?&amp;nbsp; That should take the same amount of space in a QVD as "-1".&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658568#M49328</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-17T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Handle unmatched values in ApplyMap conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658893#M49381</link>
      <description>&lt;P&gt;I used to put fixed values as 'Unknow value' for a table with 100 millions records. My QVDs were around 5Go. When I replaced the text value by a numerical value,&amp;nbsp; it went down to 3,5Go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 09:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1658893#M49381</guid>
      <dc:creator>FreeBI</dc:creator>
      <dc:date>2019-12-18T09:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handle unmatched values in ApplyMap conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1659030#M49391</link>
      <description>&lt;P&gt;That's odd. Did you use a fixed value for the unknown, or a unique string like "Unknown Value - " &amp;amp; field?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 14:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Handle-unmatched-values-in-ApplyMap-conditional-statement/m-p/1659030#M49391</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-18T14:17:43Z</dc:date>
    </item>
  </channel>
</rss>

