<?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: if row1 is zero, then return as 1 else return row1 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364851#M128540</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your question seems to be asking for a very simple Java solution.&lt;/P&gt;&lt;P&gt;Please confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your pseudo-solution could as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInput -(row1)-&amp;gt; tMap -(row2)-&amp;gt; tFileOut&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in tMap, you define your 'Column_C' as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.Column_C == "0" ? "1" : row1.Column_C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hope it helps&lt;/P&gt;</description>
    <pubDate>Sat, 04 Sep 2021 19:50:49 GMT</pubDate>
    <dc:creator>XJ_1630</dc:creator>
    <dc:date>2021-09-04T19:50:49Z</dc:date>
    <item>
      <title>if row1 is zero, then return as 1 else return row1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364850#M128539</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help out on this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex: I have three columns A, B, C ----- all the three columns are string data type.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If C is 0 , then I want it as 1 , else C as it is.  From this output, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add the C column numbers , based on the  A column ID's and return a output as D column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IcSIaAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157308i11A35D710BCEFFE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IcSIaAAN.png" alt="0695b00000IcSIaAAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Prabuj&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364850#M128539</guid>
      <dc:creator>prabuj</dc:creator>
      <dc:date>2024-11-15T23:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: if row1 is zero, then return as 1 else return row1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364851#M128540</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your question seems to be asking for a very simple Java solution.&lt;/P&gt;&lt;P&gt;Please confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your pseudo-solution could as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInput -(row1)-&amp;gt; tMap -(row2)-&amp;gt; tFileOut&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in tMap, you define your 'Column_C' as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.Column_C == "0" ? "1" : row1.Column_C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hope it helps&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 19:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364851#M128540</guid>
      <dc:creator>XJ_1630</dc:creator>
      <dc:date>2021-09-04T19:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: if row1 is zero, then return as 1 else return row1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364852#M128541</link>
      <description>&lt;P&gt;@Xuan Junior​&amp;nbsp;error, &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Please find the screenshot below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000IcdJ0AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156362i5DE78B2B233407B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000IcdJ0AAJ.png" alt="0695b00000IcdJ0AAJ.png" /&gt;&lt;/span&gt;Help out to solve. thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 16:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364852#M128541</guid>
      <dc:creator>prabuj</dc:creator>
      <dc:date>2021-09-05T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: if row1 is zero, then return as 1 else return row1</title>
      <link>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364853#M128542</link>
      <description>&lt;P&gt;@Prabhakaran Rajendran​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will teach you to fish, instead of, giving you a single fish ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Talend is a &lt;I&gt;code generator&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Graphical Job is used to create JAVA CLASSES (and other objects)&lt;/P&gt;&lt;P&gt;thus, your error refers to a COMPILE ERROR in the java class created by Talend based on your job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to verify, the code created by Talend -&amp;gt; click on: CODE&lt;/P&gt;&lt;P&gt;in the lower left coner of the Job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the CODE editor will highlight errors with a RED DASH on the right of the editor:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this makes easier to find any existing problems&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your error is a very basic Java error - just research a little and learn more Java&lt;/P&gt;&lt;P&gt;this is the best advice at this point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 14:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/if-row1-is-zero-then-return-as-1-else-return-row1/m-p/2364853#M128542</guid>
      <dc:creator>XJ_1630</dc:creator>
      <dc:date>2021-09-06T14:37:35Z</dc:date>
    </item>
  </channel>
</rss>

