<?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 clean data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295655#M1195361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What this mean? Can you give us more explanations..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 09:11:27 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2011-05-16T09:11:27Z</dc:date>
    <item>
      <title>clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295649#M1195354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi! I loaded a field containing zip codes. To make it neat I would like them to be formated as 'xxx xx', and most of them are, but not all. My first thought was to do it while loading by manipulating the string BUT I also have zip codes for three other countrys (country_id stored in another field). Is it the best way to do a temp table and then map that to the main table? Twice actually since I have to do it for all other countries as well. In SQL i would just set a condition, WHERE country_id=1, but I can't do that in loading? Only when loading resident, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 18:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295649#M1195354</guid>
      <dc:creator />
      <dc:date>2011-05-12T18:29:10Z</dc:date>
    </item>
    <item>
      <title>clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295650#M1195355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Omitted zip code from main, loaded zip, country_id and customer_id and then created MAPPING and ApplyMap. Switched the loading order so I create the mapping tables first and then I run the big one, with ApplyMap to get my clean swedish zip codes. Now I made another MAPPING for the other countries. I want them in the same field, naturally. So how do I merge the two MAPPINGS????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 19:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295650#M1195355</guid>
      <dc:creator />
      <dc:date>2011-05-12T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295651#M1195356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to make mappings for each country. This would assure a separated treatment and no overlapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script you could try to use the mapping related to the country or make concatenated loads for each country with a Where Clause on country_code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zip_code_SE:&lt;/P&gt;&lt;P&gt;MAPPING LOAD..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zip_code_GB:&lt;/P&gt;&lt;P&gt;MAPPING LOAD..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD ApplyMap('zip_code_' &amp;amp; country_code, zip_code) as zip_code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 20:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295651#M1195356</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-05-12T20:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295652#M1195357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi Ralf! But won't that force me to execute main script twice (or as many times as I have countrys)? Won't I get as many tables as I have countrys? Right now I like to do something like this: &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('new_zip_sweden',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SITE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('new_zip_not_sweden',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SITE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SITE_ZIPCODE &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;NO errors running the script but only not_sweden is correct. Not a friend of this editor!!!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 20:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295652#M1195357</guid>
      <dc:creator />
      <dc:date>2011-05-12T20:50:59Z</dc:date>
    </item>
    <item>
      <title>clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295653#M1195358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you need not to run the script twice in my solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw. you have an error in your nested ApplyMap, this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('new_zip_sweden', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('new_zip_not_sweden', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;SITE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;SITE_ZIPCODE&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 05:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295653#M1195358</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-05-13T05:15:17Z</dc:date>
    </item>
    <item>
      <title>clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295654#M1195360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Concatenated zip_fix for countries and then joined that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 09:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295654#M1195360</guid>
      <dc:creator />
      <dc:date>2011-05-16T09:01:53Z</dc:date>
    </item>
    <item>
      <title>clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295655#M1195361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What this mean? Can you give us more explanations..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 09:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295655#M1195361</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-05-16T09:11:27Z</dc:date>
    </item>
    <item>
      <title>clean data</title>
      <link>https://community.qlik.com/t5/QlikView/clean-data/m-p/295656#M1195362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Concatenated into one table:&lt;/P&gt;&lt;P&gt;new_zip:&lt;BR /&gt;LOAD...&lt;BR /&gt;WHERE country=1&lt;BR /&gt;concatenate LOAD...&lt;BR /&gt;WHERE country&amp;lt;&amp;gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I Joined new_zip back to main LOAD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 09:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/clean-data/m-p/295656#M1195362</guid>
      <dc:creator />
      <dc:date>2011-05-16T09:18:24Z</dc:date>
    </item>
  </channel>
</rss>

