<?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 Subfield in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subfield/m-p/57510#M9558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I was working with the function subfield and I had some minor problems.&lt;/P&gt;&lt;P&gt;I had a table with countries and IDs and some countries had multiple IDs, so I used subfield to extract and associate one ID per country.&lt;/P&gt;&lt;P&gt;Now, it happened that the function created a new column next to the IDs (IDs 2, let's say) in which the "second" IDs are contained, but the number of rows it's still the same.&lt;/P&gt;&lt;P&gt;I would like to maintain one column of IDs and ideally "duplicate" the row, with all the info associated to the ID.&lt;/P&gt;&lt;P&gt;In previous examples that I saw on the community the "duplication" was automatic, but that is not my case, do you have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that I wrote:&lt;/P&gt;&lt;P&gt;Load distinct,&lt;/P&gt;&lt;P&gt;Countries,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Comment&lt;/P&gt;&lt;P&gt;subfield("ID", ',', 2) as UnID&lt;/P&gt;&lt;P&gt;resident PROD2018;&lt;/P&gt;&lt;P&gt;drop table PROD2018;&lt;/P&gt;&lt;P&gt;rename Table PROD2018temp to PROD2018;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 12:44:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-06T12:44:57Z</dc:date>
    <item>
      <title>Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield/m-p/57510#M9558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I was working with the function subfield and I had some minor problems.&lt;/P&gt;&lt;P&gt;I had a table with countries and IDs and some countries had multiple IDs, so I used subfield to extract and associate one ID per country.&lt;/P&gt;&lt;P&gt;Now, it happened that the function created a new column next to the IDs (IDs 2, let's say) in which the "second" IDs are contained, but the number of rows it's still the same.&lt;/P&gt;&lt;P&gt;I would like to maintain one column of IDs and ideally "duplicate" the row, with all the info associated to the ID.&lt;/P&gt;&lt;P&gt;In previous examples that I saw on the community the "duplication" was automatic, but that is not my case, do you have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code that I wrote:&lt;/P&gt;&lt;P&gt;Load distinct,&lt;/P&gt;&lt;P&gt;Countries,&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Comment&lt;/P&gt;&lt;P&gt;subfield("ID", ',', 2) as UnID&lt;/P&gt;&lt;P&gt;resident PROD2018;&lt;/P&gt;&lt;P&gt;drop table PROD2018;&lt;/P&gt;&lt;P&gt;rename Table PROD2018temp to PROD2018;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield/m-p/57510#M9558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-06T12:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield/m-p/57511#M9559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try by removing the 2 from your SubField function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;SubField("ID", ','&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;, 2&lt;/SPAN&gt;&lt;/SPAN&gt;) as UnID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load distinct,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Countries,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Comment&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;subfield("ID", ',') as UnID&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;resident PROD2018;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;drop table PROD2018;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;rename Table PROD2018temp to PROD2018;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 16:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield/m-p/57511#M9559</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-08T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Subfield</title>
      <link>https://community.qlik.com/t5/QlikView/Subfield/m-p/57512#M9560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny!&lt;/P&gt;&lt;P&gt;I will try and I will let you know if this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mauro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 15:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subfield/m-p/57512#M9560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T15:07:48Z</dc:date>
    </item>
  </channel>
</rss>

