<?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: Create a Regional View in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964266#M957765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a WHERE clause in your data load script to only include records WHERE Currency='USD'; That should limit the data coming into your model to only those with USD Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 14:40:20 GMT</pubDate>
    <dc:creator>ogster1974</dc:creator>
    <dc:date>2015-11-10T14:40:20Z</dc:date>
    <item>
      <title>Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964257#M957756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I have a Location field in my initial table that includes about 50 different countries.&amp;nbsp; I'd like to group those locations into 3 Regions - Americas, Asia, EMEA.&amp;nbsp;&amp;nbsp; I tried using various expressions but I'm not getting anywhere close.&amp;nbsp; The more I read, it appears that I should do this in the script??&amp;nbsp; Can anyone offer a best practice or something easy to replicate???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 18:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964257#M957756</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-11-09T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964258#M957757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Mapping table in the script to map countries to regions in your data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Country, Region&lt;/P&gt;&lt;P&gt;USA, Northern America&lt;/P&gt;&lt;P&gt;Canada, Northern America&lt;/P&gt;&lt;P&gt;France, Europe&lt;/P&gt;&lt;P&gt;.. // Etc. etc.&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MAP',Country,'No region found!') as Region,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use field Region in list boxes, charts, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964258#M957757</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-09T19:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964259#M957758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;Several ways to do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you fried making a calculated dimension? Try adding a dimension by right clicking on your chart -&amp;gt; properties -&amp;gt; dimensions -&amp;gt; add calculated dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add one by following this syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Country='USA' or Country='Mexico', 'Americas',&lt;/P&gt;&lt;P&gt;if(Country='Japan' or Country='China','Asia',&lt;/P&gt;&lt;P&gt;EMEA))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create an inline load to connect Country to Region, then add Region as a dimension. In the load statement add something like:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country, Region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USA, Americas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mexico, &lt;SPAN style="font-size: 13.3333px;"&gt;Americas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; China, Asia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Japan, &lt;SPAN style="font-size: 13.3333px;"&gt;Asia&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; France, EMEA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964259#M957758</guid>
      <dc:creator />
      <dc:date>2015-11-09T19:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964260#M957759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a geo reference file in excel or similar containing the geographical hierarchy you need to support.&amp;nbsp; In your case 2 columns country and region and load in during the reload of your script.&amp;nbsp; Qlik will join on your country in your data model and you can use region straightaway in your charts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you do this&amp;nbsp; you can easily add new countries and in future extend your hierarchy to support sub regions, areas etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964260#M957759</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-09T19:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964261#M957760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I did this, where exactly would I add the text.&amp;nbsp; My script is attached.&amp;nbsp; Woiuld it be part of that table I'm loading or independent from it?&amp;nbsp; Thanks!!!&lt;IMG alt="ScriptSample.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104584_ScriptSample.PNG" style="height: 424px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 19:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964261#M957760</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-11-09T19:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964262#M957761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reposnse, I will try this...........One more question (this got deleted from my original post?.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you suggest pulling values in a field, only those that say USD at the end???&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 20:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964262#M957761</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-11-09T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964263#M957762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌do you mean adding default values in certain fields?&amp;nbsp; Your question isn't veryclear to me.&amp;nbsp;&amp;nbsp; Do you have an example of what you are trying to do to share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 21:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964263#M957762</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-09T21:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964264#M957763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;George Fischetti wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If I did this, where exactly would I add the text.&amp;nbsp; My script is attached.&amp;nbsp; Woiuld it be part of that table I'm loading or independent from it?&amp;nbsp; Thanks!!!&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to define / put the MAP table &lt;SPAN style="text-decoration: underline;"&gt;before&lt;/SPAN&gt; you access it using the ApplyMap() function. The ApplyMap() function would be called from within the LOAD that contains your Country field (Location?). If it's Location, insert this line in your LOAD statement you posted above (plus, as mentioned, the MAP: MAPPING LOAD ... ahead in the script):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MAP',Location,'No region found!') as Region,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you have some locations that end with 'USD' and should all be mapped to e.g. 'America', you can also use something like&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Location Like '*USD', 'America','not America') as Region,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can also combine both kind of location mapping&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Location Like '*USD', 'America', ApplyMap('MAP',Country,'No region found!')) as Region,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2015 21:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964264#M957763</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-09T21:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964265#M957764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry - I realize now how poorly worded my question was.&amp;nbsp;&amp;nbsp; I'm talking about values in the field.&amp;nbsp; This table I'm using has fields that record money in both the local currency and also USD, so it would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hungary LEI&lt;/P&gt;&lt;P&gt;Hungary USD&lt;/P&gt;&lt;P&gt;Japan YEN&lt;/P&gt;&lt;P&gt;Japan USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to limit my records that I see to just the USD values and I'm not sure how to do it in QLikview.&amp;nbsp; I can do this using a Substring command in other software packages but unsure the best way to do it here!!&amp;nbsp;&amp;nbsp; Thanks for your imput, I'm learning quite a bit!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 14:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964265#M957764</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-11-10T14:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964266#M957765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a WHERE clause in your data load script to only include records WHERE Currency='USD'; That should limit the data coming into your model to only those with USD Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 14:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964266#M957765</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-11-10T14:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964267#M957766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I tried to explain earlier, you can use LIKE operator (or WildMatch() function) to create a condition for record filtering:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MoneyRecord&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;WHERE MoneyRecord LIKE '*USD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WHERE WildMatch(MoneyRecord, '*USD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WHERE RIGHT(MoneyRecord, 3) = 'USD';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe also&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WHERE SUBFIELD(MoneyRecord,' ',-1) = 'USD';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 15:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964267#M957766</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-10T15:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Regional View</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964268#M957767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to both of you for your help.&amp;nbsp; I'm new to Qlikview so just trying to understand where everything goes.&amp;nbsp;&amp;nbsp; This was a big help and learning experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 18:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Regional-View/m-p/964268#M957767</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2015-11-10T18:26:00Z</dc:date>
    </item>
  </channel>
</rss>

