<?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: Converting Multiple Rows to One Row with Conditional Logic in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294691#M67542</link>
    <description>Currently I have each of the values set up with a conditional, like this:
&lt;BR /&gt;out_row.value1: in_row.Type == 1 ? in_row.Value : null
&lt;BR /&gt;out_row.value2: in_row.Type == 2 ? in_row.Value : null
&lt;BR /&gt;out_row.value3: in_row.Type == 3 ? in_row.Value : null
&lt;BR /&gt;The problem is that I only end up with one value per period: the last value processed, as it nulls out the other values.</description>
    <pubDate>Fri, 25 Nov 2016 18:40:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-25T18:40:48Z</dc:date>
    <item>
      <title>Converting Multiple Rows to One Row with Conditional Logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294690#M67541</link>
      <description>&lt;P&gt;I'm looking for some help with my TMap converting a table that looks like this:&lt;BR /&gt;&lt;BR /&gt;Period, Type, Value&lt;BR /&gt;1001, 1, .5&lt;BR /&gt;1001, 2, .15&lt;BR /&gt;1001, 3, .25&lt;BR /&gt;&lt;BR /&gt;To this:&lt;BR /&gt;&lt;BR /&gt;Period, Value1, Value2, Value3&lt;BR /&gt;1001, .5, .15, .25&lt;BR /&gt;&lt;BR /&gt;Not all 3 values are guaranteed to exist (in fact, 3 usually doesn't exist), and only values 1 to 3 are possible (though bad data happens). it's actually a pretty big TMAP with 10 or so tables and some weird year logic, but this is the bit that doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 18:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294690#M67541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-25T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Multiple Rows to One Row with Conditional Logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294691#M67542</link>
      <description>Currently I have each of the values set up with a conditional, like this:
&lt;BR /&gt;out_row.value1: in_row.Type == 1 ? in_row.Value : null
&lt;BR /&gt;out_row.value2: in_row.Type == 2 ? in_row.Value : null
&lt;BR /&gt;out_row.value3: in_row.Type == 3 ? in_row.Value : null
&lt;BR /&gt;The problem is that I only end up with one value per period: the last value processed, as it nulls out the other values.</description>
      <pubDate>Fri, 25 Nov 2016 18:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294691#M67542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-25T18:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Multiple Rows to One Row with Conditional Logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294692#M67543</link>
      <description>Have you looked at the tDenormalize component? Is this what you are looking for?</description>
      <pubDate>Fri, 25 Nov 2016 21:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294692#M67543</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2016-11-25T21:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Multiple Rows to One Row with Conditional Logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294693#M67544</link>
      <description>I tried denormalize, but as far as I can tell it can only deal with delimited data, it can't seem to handle any sort of conditional logic.
&lt;BR /&gt;Currently, I'm trying to import the source table 3 times, each into a different map which then assigns a different value, with conditional logic for whether the value should be included. I'll then unite these, and then sum for each period with aggregate row. It's the conditional logic which is the real pain here; nothing seems to be able to handle conditions.</description>
      <pubDate>Fri, 25 Nov 2016 21:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Converting-Multiple-Rows-to-One-Row-with-Conditional-Logic/m-p/2294693#M67544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-25T21:17:47Z</dc:date>
    </item>
  </channel>
</rss>

