<?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 Schema desing problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Schema-desing-problem/m-p/471122#M176005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a suggestion on how to handle a problem with Qlik data structure.&lt;/P&gt;&lt;P&gt;I have a table "A" on wich I have two colums like "user_id", "date" (datetime)&lt;/P&gt;&lt;P&gt;Another table "B" need to get foreach "user_id" all the colums "date" that match the same "user_id"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table "B" has some colums like "user_id", "name", "amount", "purchase_date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relation between "B" and "A" is one to many, so I have "n" records in table "A" foreach record of "B".&lt;/P&gt;&lt;P&gt;The need is to check which record of "B" has the "purchase_date" greater than "date" (in table "A").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I simply use an ApplyMap to get in the table "B" the "date" column (using "user_id" as the key) I can get just the first record of the ApplyMap that matches, an that record can be not the one I need.&lt;/P&gt;&lt;P&gt;So I want to get in table "B" all the possible records of table "A" that matches, and any "user_id" can have an arbitrary number of records that matches (0...n).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I design a schema that allow me to define a simple check on the frontend (I suppose with Set Analysis) to check if a particular record of the table "B" has "purchase_date" greater than any occurence of "date" of the table "A" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Apr 2013 09:58:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-19T09:58:44Z</dc:date>
    <item>
      <title>Schema desing problem</title>
      <link>https://community.qlik.com/t5/QlikView/Schema-desing-problem/m-p/471122#M176005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a suggestion on how to handle a problem with Qlik data structure.&lt;/P&gt;&lt;P&gt;I have a table "A" on wich I have two colums like "user_id", "date" (datetime)&lt;/P&gt;&lt;P&gt;Another table "B" need to get foreach "user_id" all the colums "date" that match the same "user_id"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table "B" has some colums like "user_id", "name", "amount", "purchase_date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relation between "B" and "A" is one to many, so I have "n" records in table "A" foreach record of "B".&lt;/P&gt;&lt;P&gt;The need is to check which record of "B" has the "purchase_date" greater than "date" (in table "A").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I simply use an ApplyMap to get in the table "B" the "date" column (using "user_id" as the key) I can get just the first record of the ApplyMap that matches, an that record can be not the one I need.&lt;/P&gt;&lt;P&gt;So I want to get in table "B" all the possible records of table "A" that matches, and any "user_id" can have an arbitrary number of records that matches (0...n).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I design a schema that allow me to define a simple check on the frontend (I suppose with Set Analysis) to check if a particular record of the table "B" has "purchase_date" greater than any occurence of "date" of the table "A" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 09:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Schema-desing-problem/m-p/471122#M176005</guid>
      <dc:creator />
      <dc:date>2013-04-19T09:58:44Z</dc:date>
    </item>
  </channel>
</rss>

