<?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: Nested Multi-criteria mapping in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233469#M23124</link>
    <description>thanks for this, would it also be used by operational support to adjust calculations when a client decides to change the origin data without giving us appropriate notice? I just want to make sure it also has a life as an administration tool to the mapping as well as the creator of it. Thanks</description>
    <pubDate>Tue, 05 Nov 2019 19:08:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-05T19:08:16Z</dc:date>
    <item>
      <title>Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233461#M23116</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm new to Talend Studio for Data Integration and am trying to understand how to manage a set of references which can be managed in a data source used in a transformation. I have another post in here because I don't have tStandardizeRow in my palette and cannot seem to find out how to install it if it is the right tool for the job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to set the value of "Asset" based upon a series of one or more conditions. If I wrote it as an IF THEN ELSE set of steps, it would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
 &lt;TBODY&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'Future'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'General Future'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;ELSE Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'General Equity'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'Option'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'General Option'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals ('Equity' OR 'Warrant')&lt;/P&gt;&lt;P&gt;AND origin.Custodian Account Display Name&lt;/P&gt;&lt;P&gt;equals 'CFD'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'Equity'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'Bond'&lt;/P&gt;&lt;P&gt;AND origin.Custodian Account Display Name&lt;/P&gt;&lt;P&gt;equals 'CFD'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'Fixed Income'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'Credit Default Swaption'&lt;/P&gt;&lt;P&gt;AND origin.Custodian Account Display Name&lt;/P&gt;&lt;P&gt;equals 'CFD'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'Swaption'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'Interest Rate Swap'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'IRS'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'CDS'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'CDS'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
  &lt;TR&gt;
   &lt;TD&gt;&lt;P&gt;IF origin.Instrument Type&lt;/P&gt;&lt;P&gt;equals 'Repurchase Agreement'&lt;/P&gt;&lt;/TD&gt;
   &lt;TD&gt;&lt;P&gt;Set&amp;nbsp;&lt;EM&gt;VALUE&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to destination.Asset&lt;/P&gt;&lt;P&gt;VALUE = 'Repo'&lt;/P&gt;&lt;/TD&gt;
  &lt;/TR&gt;
 &lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233461#M23116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233462#M23117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Could you please try tMap (use condition expressions) or tJavaRow (where you can write Java if-else conditions) to resolve your use case?&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;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 17:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233462#M23117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-01T17:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233463#M23118</link>
      <description>&lt;P&gt;Thanks for your response, I wanted to try to achieve this without codes using reference or rules data and apply one or more rules to a value in the mapping. If I end up adding Java into the mapping then the references themselves cannot be managed outside of the map by non-technical business users. How would you approach this without hard-coding rules and values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Matt&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 19:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233463#M23118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-03T19:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233464#M23119</link>
      <description>Is there a better way of doing a series of conditions with alternative actions using the paid version of Talend vs Open Studio? tStandardizeRow sounds interesting but might only be for specific data payload types for addresses, phone numbers, etc - I don't have that feature available on Open Studio so not entirely sure. Thanks, Matt</description>
      <pubDate>Mon, 04 Nov 2019 19:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233464#M23119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T19:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233465#M23120</link>
      <description>&lt;P&gt;Most of your conditions center around mapping Instrument Type to a desired Asset value. Some of the conditions don't appear to be fully covered. (ex: What happens if the Instrument Type is Bond and the Custodian Account Display Name is not CFD?)&lt;/P&gt; 
&lt;P&gt;I would probably approach this as a lookup table, stored either in a database or a file that maps Instrument Types to their corresponding Asset values. I would apply the lookup regardless of conditions on the Custodian Account Display Name and simplify the conditional to use the lookup value or some replacement value.&lt;/P&gt; 
&lt;P&gt;If you want to avoid checking the value of CADN in the code at all, then you can either include all the CADN values in the lookup table or else just the mappings when CADN = 'CFD' and != 'CFD'.&lt;/P&gt; 
&lt;P&gt;Ex:&lt;/P&gt; 
&lt;PRE&gt;Instrument Type		CADN	Asset
======================================
Future				General Future
Option				General Option
Equity			CFD	Equity
Equity				Other
Bond			CFD	Fixed Income
Bond			CFD	Other&lt;BR /&gt;DEFAULT                         DEFAULT VALUE
etc.&lt;/PRE&gt; 
&lt;P&gt;This would allow changes to the mappings without needing to update the Talend job.&amp;nbsp; You might need to apply the mappings more than once, and might need a special routine to handle and apply the default value for cases not handled by the rest of the mapping table.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233465#M23120</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2019-11-04T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233466#M23121</link>
      <description>Thanks for this - yes, this is more like it. There is an ELSE action in that table which is to set value to General Equity - far right column.
&lt;BR /&gt;I was looking to do a lookup table as well but couldn't figure out how you would enter a lookup to file to resolve the value required and how I could incorporate it so that, if no match, THEN set value to General Equity.</description>
      <pubDate>Mon, 04 Nov 2019 20:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233466#M23121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233467#M23122</link>
      <description>additionally, the 'CFD' is a CONTAINS within string rather than EQUALS, which I cannot find a function to use in an expression for. I was going to have the table with explicit rows so have a resolve for: 
&lt;BR /&gt; 
&lt;BR /&gt;1. Instrument Type equals x ANDCADN contains 'CFD' 
&lt;BR /&gt;2. Instrument Type equals x AND CADN does not contain 'CFD' 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, Matt</description>
      <pubDate>Mon, 04 Nov 2019 20:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233467#M23122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-04T20:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233468#M23123</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If your use case is related to creation validation rules by business users themselves, one approach will be to provide Talend Data Prepartion tool for the business users. They can create all the data quality use cases themselves since the Talend Data preparation allows the business rules creation like a smart excel sheet.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Once they create the Rules using Talend Data Preparation, you can use those recipes within Talend Studio by connecting to those recipes. Then you can implement these rules for production loads.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.talend.com/resources/what-is-data-preparation/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talend.com/resources/what-is-data-preparation/&lt;/A&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;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 05:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233468#M23123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-05T05:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Multi-criteria mapping</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233469#M23124</link>
      <description>thanks for this, would it also be used by operational support to adjust calculations when a client decides to change the origin data without giving us appropriate notice? I just want to make sure it also has a life as an administration tool to the mapping as well as the creator of it. Thanks</description>
      <pubDate>Tue, 05 Nov 2019 19:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Nested-Multi-criteria-mapping/m-p/2233469#M23124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-05T19:08:16Z</dc:date>
    </item>
  </channel>
</rss>

