<?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: Map Multiple Fields from Single Field by Text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197162#M386028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Attached&lt;/P&gt;&lt;P&gt;&lt;IMG alt="correspondingvalue.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139347_correspondingvalue.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 20:49:48 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2016-09-30T20:49:48Z</dc:date>
    <item>
      <title>Map Multiple Fields from Single Field by Text</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197159#M386025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well with everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we map single field to multiple fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have two tables. Datalog and AttachmentUnit - they are linked by tun_id_pk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In DataLog we have fields tun_id_pk, log_di1, log_di2, log_di3, log_d4.&amp;nbsp; DataLog is a huge table.&amp;nbsp; One month Data is about 30 million in DataLog Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In AttachmentUnit table there are fields atu_id, tun_id_pk (link with DataLog) and&amp;nbsp; atu_port ("di0", "di1", "di2", "di3".&amp;nbsp; Each atu_id will have one port number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AttachmentUnit:&lt;/P&gt;&lt;P&gt;atu_id, tun_id_pk, atu_port&lt;/P&gt;&lt;P&gt;1, 1, "di0"&lt;/P&gt;&lt;P&gt;2, 1, "di1"&lt;/P&gt;&lt;P&gt;3, 2, "di2"&lt;/P&gt;&lt;P&gt;4, 3, "di3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If inserter_port is di1 then it means that value for the Datalog tun_id_pk for the corresponding Attachment Unit will be in log_di1.&amp;nbsp; Similarly if the inserted_port is di2 then corresponding value will be in log_di2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we combine the Datalog and Attachment Unit table into one ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataLog:&lt;/P&gt;&lt;P&gt;tun_id_pk, log_di0, log_di1, log_di2, log_di3&lt;/P&gt;&lt;P&gt;1, 12,0,0,0&lt;/P&gt;&lt;P&gt;1, 0,34,0,0&lt;/P&gt;&lt;P&gt;2, 0,0,13,0&lt;/P&gt;&lt;P&gt;3, 0,0,0,123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;New_DataLog&lt;/P&gt;&lt;P&gt;tun_id_pk, atu_id, value&lt;/P&gt;&lt;P&gt;1, 1, 12&lt;/P&gt;&lt;P&gt;1, 2, 34&lt;/P&gt;&lt;P&gt;2, 2, 13&lt;/P&gt;&lt;P&gt;4, 3, 123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TUN_ID is 1 and ATU_ID is 1 and the INSERTED_PORT is "di0" so in the DataLog table it maps to log_di0 where the value is 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we have to map the inserted_port with log_di numbers and then insert it in the resultant table with the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate if someone can assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 19:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197159#M386025</guid>
      <dc:creator>sjhussain</dc:creator>
      <dc:date>2016-09-30T19:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map Multiple Fields from Single Field by Text</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197160#M386026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please provide sample data, it'll be easier to show and explain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 20:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197160#M386026</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-09-30T20:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Map Multiple Fields from Single Field by Text</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197161#M386027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Dear Vineeth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&amp;nbsp; Actually i have included a small sample of data in my query.&amp;nbsp; There also exists the result table which I wouls like to follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly let me lnow if you require more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 20:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197161#M386027</guid>
      <dc:creator>sjhussain</dc:creator>
      <dc:date>2016-09-30T20:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Map Multiple Fields from Single Field by Text</title>
      <link>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197162#M386028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Attached&lt;/P&gt;&lt;P&gt;&lt;IMG alt="correspondingvalue.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139347_correspondingvalue.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 20:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Map-Multiple-Fields-from-Single-Field-by-Text/m-p/1197162#M386028</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-09-30T20:49:48Z</dc:date>
    </item>
  </channel>
</rss>

