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

Data from multiple rows

$
0
0

Hi everyone,

 

Still a newbie trying to figure things out.... how can I transform multiple rows of data into one and also add new columns to the single row with data from the multiple rows?

 

Original data:

EmpIDNameProject IDMonth

Hours

111

John Doe

A

June

14
111John DoeAJuly16
111John DoeBJune

12

111John DoeBJuly13
222Jane SmithAJune15
222Jane SmithAJuly14
222Jane SmithBJune13
222Jane SmithBJuly14

 

Desired output:

EmpIDNameProject IDJune HoursJuly Hours2 Month Total Hours2 Month Avg Hours
111John DoeA14163015
111John DoeB12132512.5
222Jane SmithA15142914.5
222Jane SmithB13142713.5

 

Thanks in advance for any help or suggestions!

Sonny


Viewing all articles
Browse latest Browse all 4999

Trending Articles