Split columns into multiple columns

Eight Stars

Split columns into multiple columns

Hi experts

I want to be able to split column into multiple columns.

I have values like this in row:

"2012-01-24T13:00:00-00:00": 19,
"2012-01-24T14:00:00-00:00": 13,
"2012-01-27T09:00:00-00:00": 23

Please note that there could be plenty of dates in one row which I’m unsure.

Is it possible to split this into date in one column and counts 19,13,23 into another column?

Thanks
Harshal.

Fifteen Stars TRF
Fifteen Stars

Re: Split columns into multiple columns

Have a look at this post where I explain how to use String.split() in a tMap

https://community.talend.com/t5/Design-and-Development/String-Handling-in-Tmap/td-p/141264


TRF
Highlighted
Eight Stars

Re: Split columns into multiple columns

@TRF: thanks for your reply. I had looked at those posts earlier. However, my requirement is bit different to those. I need outlook like this:

Date Count
Date 1 19
Date 2 23
Date 3 3
And so on.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read