Free Trial

Alteryx Designer Desktop Discussions

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

Create New Column Header/Title - Depending on Column Availability.

fikrizahari
8 - Asteroid

Hi,

Good day !

I would like to know whether there is tools / formula to create a new column title/header, if it cannot be found before.
The reason is : final output requires the show all column title.

Below is the example ( assume the table from client ) :

Employee NameMonthly SalaryWagetypeAmount
Angeline4349.17House Allowance300
Bruce7722.43House Allowance300
Charlotte10483.33House Allowance300
Diana7558.69WFH Allowance100
Eugene10483.33WFH Allowance100
Fiore14016.9WFH Allowance100
Glaze14016.9WFH Allowance100
Heather4158.33WFH Allowance100
Angeline4349.17Lunch Allowance50
Bruce7722.43Lunch Allowance50
Charlotte10483.33Dental Reimbursement51
Charlotte10483.33Dental Reimbursement71
Diana7558.69Dental Reimbursement43
Eugene10483.33Dental Reimbursement56



Currently, i only use 'Cross Tab' and 'Formula' tools to get below result:

Employee NameMonthly SalaryDental_ReimbursementHouse_AllowanceLunch_AllowanceWFH_AllowanceAnnual BonusPhone Allowance
Charlotte10483.33122300  00
Fiore14016.9   10000
Bruce7722.43 30050 00
Eugene10483.3356  10000
Heather4158.33   10000
Diana7558.6943  10000
Glaze14016.9   10000
Angeline4349.17 30050 00



The issue: there is possibility that the input file contain amount for 'Phone Allowance' and 'Annual bonus'.
In that case, I do not want the formula tools to create 'Phone Allowance' and 'Annual bonus'.

Thanks in advance!

3 REPLIES 3
Luke_C
17 - Castor
17 - Castor

Hi @fikrizahari 

 

Could you add a filter before the cross-tab to remove Phone Allowance and Annual Bonus values?

martinding
13 - Pulsar

Hi @fikrizahari ,

 

You could try this approach:

martinding_0-1679968303244.png

 

And after the final step, it will be just a matter of how you'd like to deal with nulls.

You can leave them as they are, or use a Cleanse tool, or use an Imputation tool.

 

flying008
15 - Aurora

Hi, @fikrizahari 

 

The other way :

 

录制_2023_03_28_12_30_38_152.gif

Labels
Top Solution Authors