<?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 Mapping of data with eliminating NULL values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Mapping-of-data-with-eliminating-NULL-values/m-p/1895365#M73865</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;I am trying to do something and I am struck with the solution. Please it would be great if someone can help. I have data coming from 3 different sources.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;exist_in_flag:&lt;/STRONG&gt;&lt;BR /&gt;mapping Load&lt;BR /&gt;ID,&lt;BR /&gt;1 as exist_in_flag&lt;BR /&gt;&lt;STRONG&gt;aaaa.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;BR /&gt;Load ID, InvoiceNo,addr, city , country,amt,&lt;BR /&gt;ApplyMap('exist_in_flag',ID,0) as exist_in_flag&lt;BR /&gt;&lt;STRONG&gt;from abc.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table 2:&lt;/STRONG&gt;&lt;BR /&gt;Noconcatenate &lt;BR /&gt;Load&lt;BR /&gt;ID,actual_date,&lt;BR /&gt;type,&lt;BR /&gt;courseID,&lt;BR /&gt;fees&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;from table2.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;left join(Table2)&lt;BR /&gt;load &lt;BR /&gt;ID,&lt;BR /&gt;addr, city, country, amt&lt;BR /&gt;resident Table1&lt;BR /&gt;where exists_in_flag = 1;&lt;/P&gt;
&lt;P&gt;concatenate&lt;BR /&gt;load&lt;BR /&gt;ID, addr, city , country&lt;BR /&gt;resident Table1&lt;/P&gt;
&lt;P&gt;where exists_in_flag=0;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table3:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Noconcatenate &lt;BR /&gt;load *&lt;BR /&gt;resident Table2;&lt;/P&gt;
&lt;P&gt;left join(Table3)&lt;BR /&gt;load&lt;BR /&gt;sid as ID,&lt;BR /&gt;storename,&lt;BR /&gt;storeaddr,&lt;BR /&gt;storecity,&lt;BR /&gt;storecountry,&lt;BR /&gt;startdate&lt;BR /&gt;&lt;STRONG&gt;from xyz.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The ID's are same in all the tables. I want to create a table which has fields like(ID, StoreNo, addr,city,country,amt,actual_date,fees)&lt;BR /&gt;So the probblem is, I want to have the Storeaddr,storecity,storecountry to be taken first, if the values are NULL or blank then pick the addr,city,country from table1. &lt;BR /&gt;I am trying to create this logic. But I don't know how to proceed.&lt;/P&gt;
&lt;P&gt;Basically I want storeaddr,storecity,storecountry to be taken from Table 3 first, if it's not available then select addr,city,country from Table 1 and if the values are NULL in Table 1 then pick the previous value.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 10:12:33 GMT</pubDate>
    <dc:creator>qlikuser22</dc:creator>
    <dc:date>2022-02-21T10:12:33Z</dc:date>
    <item>
      <title>Mapping of data with eliminating NULL values</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-of-data-with-eliminating-NULL-values/m-p/1895365#M73865</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I am trying to do something and I am struck with the solution. Please it would be great if someone can help. I have data coming from 3 different sources.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;exist_in_flag:&lt;/STRONG&gt;&lt;BR /&gt;mapping Load&lt;BR /&gt;ID,&lt;BR /&gt;1 as exist_in_flag&lt;BR /&gt;&lt;STRONG&gt;aaaa.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;BR /&gt;Load ID, InvoiceNo,addr, city , country,amt,&lt;BR /&gt;ApplyMap('exist_in_flag',ID,0) as exist_in_flag&lt;BR /&gt;&lt;STRONG&gt;from abc.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table 2:&lt;/STRONG&gt;&lt;BR /&gt;Noconcatenate &lt;BR /&gt;Load&lt;BR /&gt;ID,actual_date,&lt;BR /&gt;type,&lt;BR /&gt;courseID,&lt;BR /&gt;fees&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;from table2.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;left join(Table2)&lt;BR /&gt;load &lt;BR /&gt;ID,&lt;BR /&gt;addr, city, country, amt&lt;BR /&gt;resident Table1&lt;BR /&gt;where exists_in_flag = 1;&lt;/P&gt;
&lt;P&gt;concatenate&lt;BR /&gt;load&lt;BR /&gt;ID, addr, city , country&lt;BR /&gt;resident Table1&lt;/P&gt;
&lt;P&gt;where exists_in_flag=0;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table3:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Noconcatenate &lt;BR /&gt;load *&lt;BR /&gt;resident Table2;&lt;/P&gt;
&lt;P&gt;left join(Table3)&lt;BR /&gt;load&lt;BR /&gt;sid as ID,&lt;BR /&gt;storename,&lt;BR /&gt;storeaddr,&lt;BR /&gt;storecity,&lt;BR /&gt;storecountry,&lt;BR /&gt;startdate&lt;BR /&gt;&lt;STRONG&gt;from xyz.qvd;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The ID's are same in all the tables. I want to create a table which has fields like(ID, StoreNo, addr,city,country,amt,actual_date,fees)&lt;BR /&gt;So the probblem is, I want to have the Storeaddr,storecity,storecountry to be taken first, if the values are NULL or blank then pick the addr,city,country from table1. &lt;BR /&gt;I am trying to create this logic. But I don't know how to proceed.&lt;/P&gt;
&lt;P&gt;Basically I want storeaddr,storecity,storecountry to be taken from Table 3 first, if it's not available then select addr,city,country from Table 1 and if the values are NULL in Table 1 then pick the previous value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 10:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-of-data-with-eliminating-NULL-values/m-p/1895365#M73865</guid>
      <dc:creator>qlikuser22</dc:creator>
      <dc:date>2022-02-21T10:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping of data with eliminating NULL values</title>
      <link>https://community.qlik.com/t5/App-Development/Mapping-of-data-with-eliminating-NULL-values/m-p/1895748#M73901</link>
      <description>&lt;P&gt;Hav a look to these to qlik functions: &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/coalesce.htm" target="_blank"&gt;coalesce()&lt;/A&gt; and &lt;A href="https://help.qlik.com/en-US/sense/November2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalFunctions/alt.htm" target="_blank" rel="noopener"&gt;alt()&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 07:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mapping-of-data-with-eliminating-NULL-values/m-p/1895748#M73901</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-02-22T07:18:49Z</dc:date>
    </item>
  </channel>
</rss>

