<?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 Advanced key logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-key-logic/m-p/990158#M337470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm one step from finalizing a new application and of course I've gotten stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I'm trying to tag a transaction to data from another table but I can't for the life of me figure out how to design the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say that this is my input data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14461241685194588" jivemacro_uid="_14461241685194588" modifiedtitle="true"&gt;
&lt;P&gt;load * inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;GeoCountry, GeoState, GeoCity, GeoImportantData&lt;/P&gt;
&lt;P&gt;US, CA, Los Angeles, 44455&lt;/P&gt;
&lt;P&gt;US, CA, , 99933&lt;/P&gt;
&lt;P&gt;US, MA, Boston, 55588&lt;/P&gt;
&lt;P&gt;US, MA, , 88811&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load * inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Country, State, City, CustomerID&lt;/P&gt;
&lt;P&gt;US, CA, Los Angeles, 1&lt;/P&gt;
&lt;P&gt;US, CA, San Francisco, 2&lt;/P&gt;
&lt;P&gt;US, CA, San Jose, 3&lt;/P&gt;
&lt;P&gt;US, MA, Boston, 4&lt;/P&gt;
&lt;P&gt;US, MA, Springfield, 5&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to tag "GeoImportantData" to each customer. The problem is that all customers have a city whereas only some cities have unique "ImportantData".&lt;/P&gt;&lt;P&gt;A person from LA needs to get value "44455" added but his brother in SF should get "99933". I'm sure this is ridiculously simple but I'm completely stuck in a loop (metaphorical, not database-wise...)&lt;/P&gt;&lt;P&gt;Creating a key from "GeoCountry &amp;amp; GeoState" would mean that a person from CA would get two possible ImportantDatas, creating one from GeoCountry &amp;amp; GeoState &amp;amp; GeoCity would mean that a person from a city that does not have its own unique ImportantData is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I desperately need your help in figuring out how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 13:15:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-29T13:15:18Z</dc:date>
    <item>
      <title>Advanced key logic</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-key-logic/m-p/990158#M337470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm one step from finalizing a new application and of course I've gotten stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I'm trying to tag a transaction to data from another table but I can't for the life of me figure out how to design the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say that this is my input data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14461241685194588" jivemacro_uid="_14461241685194588" modifiedtitle="true"&gt;
&lt;P&gt;load * inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;GeoCountry, GeoState, GeoCity, GeoImportantData&lt;/P&gt;
&lt;P&gt;US, CA, Los Angeles, 44455&lt;/P&gt;
&lt;P&gt;US, CA, , 99933&lt;/P&gt;
&lt;P&gt;US, MA, Boston, 55588&lt;/P&gt;
&lt;P&gt;US, MA, , 88811&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load * inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Country, State, City, CustomerID&lt;/P&gt;
&lt;P&gt;US, CA, Los Angeles, 1&lt;/P&gt;
&lt;P&gt;US, CA, San Francisco, 2&lt;/P&gt;
&lt;P&gt;US, CA, San Jose, 3&lt;/P&gt;
&lt;P&gt;US, MA, Boston, 4&lt;/P&gt;
&lt;P&gt;US, MA, Springfield, 5&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to tag "GeoImportantData" to each customer. The problem is that all customers have a city whereas only some cities have unique "ImportantData".&lt;/P&gt;&lt;P&gt;A person from LA needs to get value "44455" added but his brother in SF should get "99933". I'm sure this is ridiculously simple but I'm completely stuck in a loop (metaphorical, not database-wise...)&lt;/P&gt;&lt;P&gt;Creating a key from "GeoCountry &amp;amp; GeoState" would mean that a person from CA would get two possible ImportantDatas, creating one from GeoCountry &amp;amp; GeoState &amp;amp; GeoCity would mean that a person from a city that does not have its own unique ImportantData is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I desperately need your help in figuring out how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 13:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-key-logic/m-p/990158#M337470</guid>
      <dc:creator />
      <dc:date>2015-10-29T13:15:18Z</dc:date>
    </item>
  </channel>
</rss>

