Alteryx Designer Desktop Discussions

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

Combine data in 1 excel spreadsheet

tbudd001
5 - Atom

Is there a way to combine data within just 1 excel spreadsheet using Alteryx? 

Example: 

               Column A (Name)      Column B (Date)     Column C (Time)   Column D (Work Category)

Row 1     John Doe                    1/1/19                       1.5                         B1

Row 2     John Doe                    1/1/19                       1                            B2

Row 3     John Doe                    1/1/19                       1.5                         C3

Row 4     John Doe                    1/2/19                       2                            A2

Row 5     John Doe                    1/2/19                       1.5                         B3

Row 6     Jane Doe                     1/1/19                      1.5                          A4

Row 7     Jane Doe                     1/1/19                      2                            B3

 

I'm looking to sum column C hours by date and combine column D data with comma separators. 

Example:

Row 1     John Doe                    1/1/19                       4                         B1, B2, C3

Row 2     John Doe                    1/2/19                       3.5                       A2, B3

Row 3     Jane Doe                    1/1/19                      3.5                        A4, B3

 

3 REPLIES 3
MichalM
Alteryx Alumni (Retired)

@tbudd001 

 

What you'd like to do is to use the Summarize tool in the following configuration

 

  • Group by Name
  • Group by Date
  • Sum Time
  • String > Concatenate Work category

 

summarize-example.png

tbudd001
5 - Atom

Very helpful, thank you!

 

Is there also a way to remove decimals from a number starting with zero?

 

I have something like this: 

 

0.781823.45 and want it changed to 078182345

MichalM
Alteryx Alumni (Retired)
If you want to keep the zero at the beginning you will need to change the data type of the field to String - you can use the Select to do this.
Once converted, use the Data cleansing tool to remove the punctuation from the field.
Labels