<?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 Data model Issue - applymap() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523434#M1150706</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;&lt;/P&gt;&lt;P&gt;&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 19:00:43 GMT</pubDate>
    <dc:creator>sibin_jacob</dc:creator>
    <dc:date>2013-06-29T19:00:43Z</dc:date>
    <item>
      <title>Data model Issue - applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523434#M1150706</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;&lt;/P&gt;&lt;P&gt;&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 19:00:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523434#M1150706</guid>
      <dc:creator>sibin_jacob</dc:creator>
      <dc:date>2013-06-29T19:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data model Issue - applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523435#M1150707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Applymap() will map a value to another single value. No records will be added to your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you need to consider joining your tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 16:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523435#M1150707</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-30T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data model Issue - applymap()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523436#M1150708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try applymap('mapzip',zip) as zipcode...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jun 2013 17:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-Issue-applymap/m-p/523436#M1150708</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2013-06-30T17:20:56Z</dc:date>
    </item>
  </channel>
</rss>

