<?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: Same primary key in a table and different information inrecords in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979007#M11338</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/197283"&gt;@Alemovaz&lt;/a&gt;&amp;nbsp; Could you please post some sample data along with the expected output.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2022 02:24:07 GMT</pubDate>
    <dc:creator>sidhiq91</dc:creator>
    <dc:date>2022-09-09T02:24:07Z</dc:date>
    <item>
      <title>Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979006#M11337</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large JgzqYd RES9jf tw-ta" dir="ltr" data-placeholder="Tradução"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have records with different contents and same primary key in a table. What happens is the following: the records bring the name of companies with one, two, or more characters of difference in their names due to entries in different reference databases. However, they bring the same registration code, which in Brazil is called CNPJ, and is the primary key of the table. However, I wanted to turn these records with two, three or four different names into a single record with a simplified name (eg the first name of the table with that key, or smaller). The objective is to make a sum of all sales values ​​for the same company code (primary key, that is, CNPJ) but present this simplified name as measure and title.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 02:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979006#M11337</guid>
      <dc:creator>Alemovaz</dc:creator>
      <dc:date>2022-09-09T02:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979007#M11338</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/197283"&gt;@Alemovaz&lt;/a&gt;&amp;nbsp; Could you please post some sample data along with the expected output.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 02:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979007#M11338</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-09-09T02:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979048#M11339</link>
      <description>&lt;P&gt;I am trying to understand the&amp;nbsp; issue. A way of achieving this could be to use map table and applymap.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NameMap:&lt;/P&gt;
&lt;P&gt;Mapping load&lt;/P&gt;
&lt;P&gt;CNPJ, Name&lt;/P&gt;
&lt;P&gt;From CNPJNameSource;&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;field1,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fields,&lt;/P&gt;
&lt;P&gt;CNPJ,&lt;/P&gt;
&lt;P&gt;applymap ('NameMap' ,CNPJ) as Name&lt;/P&gt;
&lt;P&gt;From Source;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 05:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979048#M11339</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-09-09T05:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979272#M11342</link>
      <description>&lt;P&gt;Hi Vegar!&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;I will try this.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979272#M11342</guid>
      <dc:creator>Alemovaz</dc:creator>
      <dc:date>2022-09-09T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979284#M11343</link>
      <description>&lt;P&gt;Hi SidHiq91!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table is:&lt;/P&gt;
&lt;P&gt;CNPJ (Key), Name, Address, Value1,...&lt;/P&gt;
&lt;P&gt;123456, Empresa 123, Avenue X num 67, 5000&lt;/P&gt;
&lt;P&gt;123456, Empresa 123 X, Avenue X num 67, 8000&lt;/P&gt;
&lt;P&gt;123456, Empresa 123 X1, Avenue X num 67, 7000&lt;/P&gt;
&lt;P&gt;567890, Empresa Y, Avenue Y num 85, 3000&lt;/P&gt;
&lt;P&gt;567890, Empresa Y A, Avenue Y num 85, 4000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whoever made each registration of companies X and Y put more or less information about the name. But they are the same companies respectively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979284#M11343</guid>
      <dc:creator>Alemovaz</dc:creator>
      <dc:date>2022-09-09T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979287#M11344</link>
      <description>&lt;P&gt;I want to use only one name for all entries, say: Company X and Company Y in ALL records for each company.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979287#M11344</guid>
      <dc:creator>Alemovaz</dc:creator>
      <dc:date>2022-09-09T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979306#M11345</link>
      <description>&lt;P&gt;You could try something like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MapName:
MAPPING LOAD
CNPJ, Name 
FROM Source;

Data:
LOAD
CNPJ, 
applymap('MapName', CNPJ) as Name, 
Address, 
Value1 
FROM Source
];
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR you can try to make a dimension table for CNPJ Like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DIM_CNPJ:
LOAD
CNPJ, 
FirstValue(Name) as  Name
FROM Source
Group by CNPJ;

Data:
LOAD
CNPJ, 
Address, 
Value1 
FROM Source
];
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Sep 2022 14:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979306#M11345</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-09-09T14:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Same primary key in a table and different information inrecords</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979353#M11346</link>
      <description>&lt;P&gt;Hi Vegar!&lt;/P&gt;
&lt;P&gt;I Will try this today.&lt;/P&gt;
&lt;P&gt;My expected result is (Table)&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;123456, Empresa 123, Avenue X num 67, 5000&lt;/P&gt;
&lt;P&gt;123456, Empresa 123 , Avenue X num 67, 8000&lt;/P&gt;
&lt;P&gt;123456, Empresa 123, Avenue X num 67, 7000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without X and X1 in the names.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 16:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Same-primary-key-in-a-table-and-different-information-inrecords/m-p/1979353#M11346</guid>
      <dc:creator>Alemovaz</dc:creator>
      <dc:date>2022-09-09T16:39:09Z</dc:date>
    </item>
  </channel>
</rss>

