<?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 ApplyMap() for one to many relation(Data model issue) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ApplyMap-for-one-to-many-relation-Data-model-issue/m-p/523306#M1149189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problems in my data model. In my fact tables are multiple levels. The levels are Physician, Zip and account. But I want direct relation between Zip and account, Zip and Physician, Account and Physician. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I planned to use only one fact table. So I am using mapping load, link table and apply map functionality in the loading script. I have one&lt;BR /&gt;to one relation between physician and Zip. But I have one to many relations between Account to Physician and Account to zip. (one account having&lt;BR /&gt;multiple Zip and multiple Physician)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created mapping table for account to physician, Account to Zip and Physician to Zip. And in dummy data I added three values for account&lt;BR /&gt;that are ‘ACC2’, ‘ACC3’ and ‘ACC4’. In that ‘ACC2’ and ‘ACC3’ having only one physician and Zip but ‘ACC4’ having more than one Zip and Physician.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am getting the correct values at physician and Zip level.&amp;nbsp; But I am not getting the right values and selection for ‘ACC4’ selection. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So Please help me to write the applymap() for one to many relation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;How will I write applymap() script for one to many relation?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA my application for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sibin Jacob. C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Jun 2013 18:41:18 GMT</pubDate>
    <dc:creator>sibin_jacob</dc:creator>
    <dc:date>2013-06-29T18:41:18Z</dc:date>
    <item>
      <title>ApplyMap() for one to many relation(Data model issue)</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-for-one-to-many-relation-Data-model-issue/m-p/523306#M1149189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problems in my data model. In my fact tables are multiple levels. The levels are Physician, Zip and account. But I want direct relation between Zip and account, Zip and Physician, Account and Physician. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I planned to use only one fact table. So I am using mapping load, link table and apply map functionality in the loading script. I have one&lt;BR /&gt;to one relation between physician and Zip. But I have one to many relations between Account to Physician and Account to zip. (one account having&lt;BR /&gt;multiple Zip and multiple Physician)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created mapping table for account to physician, Account to Zip and Physician to Zip. And in dummy data I added three values for account&lt;BR /&gt;that are ‘ACC2’, ‘ACC3’ and ‘ACC4’. In that ‘ACC2’ and ‘ACC3’ having only one physician and Zip but ‘ACC4’ having more than one Zip and Physician.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am getting the correct values at physician and Zip level.&amp;nbsp; But I am not getting the right values and selection for ‘ACC4’ selection. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So Please help me to write the applymap() for one to many relation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;How will I write applymap() script for one to many relation?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA my application for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sibin Jacob. C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2013 18:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-for-one-to-many-relation-Data-model-issue/m-p/523306#M1149189</guid>
      <dc:creator>sibin_jacob</dc:creator>
      <dc:date>2013-06-29T18:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyMap() for one to many relation(Data model issue)</title>
      <link>https://community.qlik.com/t5/QlikView/ApplyMap-for-one-to-many-relation-Data-model-issue/m-p/523307#M1149190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By mistake .. I marked as Assumed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to unmark assumed answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sibin Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2013 18:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ApplyMap-for-one-to-many-relation-Data-model-issue/m-p/523307#M1149190</guid>
      <dc:creator>sibin_jacob</dc:creator>
      <dc:date>2013-06-29T18:58:46Z</dc:date>
    </item>
  </channel>
</rss>

