Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Delete Duplicate Rows

geeklarokcmie
8 - Asteroid

Greetings All,

What tools can I use to output the below "results data" into an .xls doc based on the given data?

 

- Convert the "Names" row values into columns (removing duplicates)

- Remove duplicates of "Role", "Organization", "Employee ID" and connect them directly to the name. 

- Is it also possible to have age listed under the name?

 

"Given Data"

NamesAgeRoleOrganizationEmployee ID
John Doe52CSAAmazonFM985
John Doe52Lead CSAFacebookFM525
John Doe52CSMTargetFM875
Jane Riley34CSAAmazonFM985
Jane Riley34Lead CSAFacebookFM525
Jane Riley34CSMTargetFM875
Dristo26CSAAmazonFM985
Dristo26ServerHiltonFM452
Dristo26DriverUberFM111

 

Result Data :

RoleOrganizationEmployee ID

John Doe 

(52)

Jane Riley

(34)

Dristo
(26)

CSAAmazonFM985xxx
Lead CSAFacebookFM525xxn/a
CSMTargetFM875xxn/a
ServerHiltonFM452n/an/ax
DriverUberFM111n/an/ax

 

Thank you!

4 REPLIES 4
EmanueleE
8 - Asteroid

Hi ekocharla.

 

i think that you want to unpivot your data.

 

cross tab.png

 

into the formula tool I create an header (name+age then unpivot it trough the cross tab) then dynamically rename the header at the last I create the x and n/a value for the records.

in attachment a flow v2020.2

grazitti_sapna
17 - Castor

Hi @geeklarokcmie , please refer to the workflow and screenshot for the desired output.

 

grazitti_sapna_0-1593413574936.png

 

Sapna Gupta
geeklarokcmie
8 - Asteroid

Hi Emanuele,

 

I appreciate your response and sharing the workflow. 

 

However, when I tried this in the actual data that i wanted to transform to -  it kept throwing an error in the formula tool as below :

 

Error: Formula (2): Parse Error at char(0): Unknown variable "Header" (Expression #1)

 

Please note that the solution from Sapna worked.

 

Thank you for your efforts. 

geeklarokcmie
8 - Asteroid

Hi Sapna,

 

This solution worked like a charm. 

 

Thank you so much for providing the accurate tools.

 

I love Alteryx - made working with excel so much easier.

 

 

Labels