<?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: Populate data on the basis of priority in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240775#M28135</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The most easy method is to have a ranking config table for each channel and then do a lookup with this table to get the ranking for each record. Order the incoming data based on key columns and rank. Then for each data group (using taggregaterow), pick the first record which is having highest rank.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; This should resolve your issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 11:24:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-08T11:24:12Z</dc:date>
    <item>
      <title>Populate data on the basis of priority</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240773#M28133</link>
      <description>&lt;P&gt;I am stuck with a scenario, given below,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to populate target table on the basis of some priority on source data, if the high priority record found then other records should not load into target from the same group, it should be get rejected. If the high priority item not found, it should check other below priority record, if found, load the same into target and ignore other records in the same group, example below,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Priority Order:&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1. sfdc&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2. sfdc,dc,fg ( if channel like '%sfdc%')&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;3. *&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Note: There is no specific KEY column available, combination of columns can make a KEY.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; if source data comes like below, it should load only last record,&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;name&lt;/TD&gt; 
   &lt;TD&gt;chargecode&lt;/TD&gt; 
   &lt;TD&gt;groupcode&lt;/TD&gt; 
   &lt;TD&gt;channel&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;*&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;sfdc,dc,fg&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;sfdc&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;2. In this case 2nd record should loaded&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;name&lt;/TD&gt; 
   &lt;TD&gt;chargecode&lt;/TD&gt; 
   &lt;TD&gt;groupcode&lt;/TD&gt; 
   &lt;TD&gt;channel&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;*&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;sfdc,dc,fg&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3. If the source record coming with single channel, then it should load, so in this case priority is not required,&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;name&lt;/TD&gt; 
   &lt;TD&gt;chargecode&lt;/TD&gt; 
   &lt;TD&gt;groupcode&lt;/TD&gt; 
   &lt;TD&gt;channel&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;sfdc,dc,fg&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;name&lt;/TD&gt; 
   &lt;TD&gt;chargecode&lt;/TD&gt; 
   &lt;TD&gt;groupcode&lt;/TD&gt; 
   &lt;TD&gt;channel&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;*&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;name&lt;/TD&gt; 
   &lt;TD&gt;chargecode&lt;/TD&gt; 
   &lt;TD&gt;groupcode&lt;/TD&gt; 
   &lt;TD&gt;channel&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;sme1&lt;/TD&gt; 
   &lt;TD&gt;50958&lt;/TD&gt; 
   &lt;TD&gt;5098&lt;/TD&gt; 
   &lt;TD&gt;sfdc&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240773#M28133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data on the basis of priority</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240774#M28134</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLzpAAG"&gt;@Vibin_CT&lt;/A&gt;&amp;nbsp;,check the below one.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 749px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Ys.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130171i67F3A7678AD64E89/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Ys.png" alt="0683p000009M3Ys.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Yx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140322iEB8C2E90308B0B2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Yx.png" alt="0683p000009M3Yx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 11:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240774#M28134</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-04-08T11:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data on the basis of priority</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240775#M28135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; The most easy method is to have a ranking config table for each channel and then do a lookup with this table to get the ranking for each record. Order the incoming data based on key columns and rank. Then for each data group (using taggregaterow), pick the first record which is having highest rank.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; This should resolve your issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 11:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240775#M28135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T11:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data on the basis of priority</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240776#M28136</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you very much!!&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;: Thanks for your quick response, but your first condition won't provide expected result, because if we find channel with only 'sfdc', we should ignore other records from the same group. I am okay with the solution provided by &lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 11:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240776#M28136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T11:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Populate data on the basis of priority</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240777#M28137</link>
      <description>&lt;P&gt;Thanks for the update&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLzpAAG"&gt;@Vibin_CT&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Since you have the solution, could you please mark the topic as closed? Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 11:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Populate-data-on-the-basis-of-priority/m-p/2240777#M28137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-08T11:54:10Z</dc:date>
    </item>
  </channel>
</rss>

