Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Splitting Data into two rows

$
0
0

I'm trying to get some data in a format to import to tableau for some hub spoke type diagrams.

 

What i have so far is data formatted like the below 

 

RecordIDCostOriginDestinationOrigin LatOrigin LongDest LatDest Long
1300LGWANU51.14810181-0.19027799417.1367-61.792702

 

And I need to split each row into two records and create a path id so it looks like the below - so each row would be split into a path 1 and path 2 row with origin lat and long associated with path1 

 

RecordIDCostOriginDestinationLat LongPath
1300LGWANU51.14810181-0.1902779941
1300LGWANU17.1367-61.7927022

 

Any help would be greatly appreciated

 

Thanks

 

Toby

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles