Looking for Starter Kits? Head to the Community Gallery! Now formatted as YXIs for easy installation.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Data from multiple rows

SonnyDeLyte
7 - Meteor

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

17 REPLIES 17
jdunkerley79
ACE Emeritus
ACE Emeritus

Odd that we can't download.

 

2017-10-24_06-58-52.jpg

 

I chose to use a Summarise over a formula so it would just keep working regardless of number of months or when the months change.

 

First thought was a formula tool but felt a summarise would be a more general solution.

 

vishwa_0308
11 - Bolide

You are right @jdunkerley79..using summarize tool will make it generic regardless of how many months are there.

SonnyDeLyte
7 - Meteor

Awesome - learned a lot today! Thanks everyone!!

SonnyDeLyte
7 - Meteor

I still can't download... :-(

 

If you get a chance, I'd be interested in seeing how you configured the Summarize tool to compare to the Formula tool.

 

Thanks!

vishwa_0308
11 - Bolide

Cross tab config will be same and for summarize tool do group by EmpID and use Sum and Average actions for hours field. then use a join tool to combine Cross tab and Summarize inputs on EmpID.

jdunkerley79
ACE Emeritus
ACE Emeritus

Config all three tools below:

 

2017-10-24_07-39-01.jpg

 

SonnyDeLyte
7 - Meteor

Thanks again!

cmcclellan
13 - Pulsar

Yes, I was doing the same as this :)

Labels