<?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 Script little help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161858#M712807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems better but what about the cities I want to remain unchanged? I only get values for the cities I put in the map.&lt;/P&gt;&lt;P&gt;Moreover is it possible to put something like 'Others' for all the cities that I do not want to put one by one in the map?&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jan 2011 08:57:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-11T08:57:33Z</dc:date>
    <item>
      <title>Script little help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161854#M712803</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'm a newbie so please forgive me for this question if it is too easy.&lt;/P&gt;&lt;P&gt;I have already made the my SQL script and the pivot tables, the charts everything. The only problem I have and I do not want to change the SQL script is the following:&lt;/P&gt;&lt;P&gt;My lines have some values like this.&lt;/P&gt;&lt;P&gt;peter, student, patras&lt;BR /&gt;tom, student, athens&lt;BR /&gt;john, worker, mykonos&lt;/P&gt;&lt;P&gt;I want every time that I get the value 'athens' to transform it to 'central'. How can I do this in the script?&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 17:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161854#M712803</guid>
      <dc:creator />
      <dc:date>2011-01-10T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Script little help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161855#M712804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Do something like the following in the script (it will save you time in debugging charts and will perform better):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Person:LOAD Name, Position, If(City = 'Athens', 'Central', City) AS City;SQL SELECT Name, Position, CityFROM database.table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 18:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161855#M712804</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-01-10T18:21:32Z</dc:date>
    </item>
    <item>
      <title>Script little help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161856#M712805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect it works fine!&lt;/P&gt;&lt;P&gt;If in the future I have to have multiple IF? Can I create a conversion table or something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 18:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161856#M712805</guid>
      <dc:creator />
      <dc:date>2011-01-10T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Script little help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161857#M712806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's only a few values, I'd probably do a nested if. When more than a few values, consider a mapping table:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;MyMap:&lt;BR /&gt;MAPPING LOAD * INLINE [&lt;BR /&gt;Change This, To This&lt;BR /&gt;Athens, Central&lt;BR /&gt;NYC, New York City&lt;BR /&gt;etc.&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Person:&lt;BR /&gt;LOAD Name,&lt;BR /&gt; Position,&lt;BR /&gt; applymap('MyMap',City,City) AS City;&lt;BR /&gt;SQL SELECT Name, Position, City&lt;BR /&gt;FROM database.table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 22:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161857#M712806</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-10T22:43:46Z</dc:date>
    </item>
    <item>
      <title>Script little help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161858#M712807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems better but what about the cities I want to remain unchanged? I only get values for the cities I put in the map.&lt;/P&gt;&lt;P&gt;Moreover is it possible to put something like 'Others' for all the cities that I do not want to put one by one in the map?&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 08:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161858#M712807</guid>
      <dc:creator />
      <dc:date>2011-01-11T08:57:33Z</dc:date>
    </item>
    <item>
      <title>Script little help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161859#M712808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're only getting cities that you listed in the map, then there's something wrong. The third parameter in the applymap() is the default. So by default, if you don't find the city in the map, the script I gave should use the City field itself. If you wanted to use 'Others' instead, you would put 'Others' in the third parameter in the applymap() instead. Look up applymap in the help text for other examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 18:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-little-help/m-p/161859#M712808</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-11T18:40:17Z</dc:date>
    </item>
  </channel>
</rss>

