Alteryx Forums  

Go Back   Alteryx Forums > Alteryx Forums > Alteryx Products Forum > Alteryx > Data Processes

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2010, 11:34 AM
bgottdener bgottdener is offline
Administrator
 
Join Date: May 2010
Posts: 13
Default Specifying the Field Names You Want

Many databases that are imported into Alteryx incorporate a great deal of header information in the first few rows of data. Some of this information is desirable, and some can be removed. Additionally, some of this header information may actually be contained in multiple rows.

The following module outlines a process for specifying the field names that You Want to have in your module.

Attached are four files:
-The Module (.yxdb)
-The Input file (.csv)
-Before Processing Image (.jpg)
-After Processing Image (.jpg)

1) An initial Browse of our data shows that we have a few issues to address. The row currently used for field names is not needed in the file. There are two rows containing the information we wish to use for our field names. Note that we must declare that the first row contains data.

2) The Sample Tools at left are used to select the Rows for which we wish to concatenate cell data together. The first Sample tool selects the first three rows, the second skips the the first of the three rows.

3) The Summarize tool is used to Concatenate the values in our rows. Each row is Selected in the upper selection window, and then Added by clicking Add > String > Concatenate. Note that a delimiter can be specified, in this case I have used " - ", where the default is ","

4) The Dynamic Rename tool is used to rename the fields according to a user specified method. In this case, we have selected a Rename Mode of "Take Field Names from First Row of Data". Note that all fields have been selected or 'checked'.

5) The Sample tool at left selects all of the rows that are the actual records (data) in our file.

6) The Union tool is used to unite our newly defined field names with the actual data records of our Input file. Note the "Auto Config by Position" selection, in addition to the check mark next to "Set a Specific Output Order".

7) The result of our processing is a database with clearly defined fields.


Please let me know if you have any questions about the process, or how it can be applied to your module. I would be more than happy to speak with you.

-Brett Gottdener
Attached Images
File Type: jpg BeforeProcessing.jpg (43.2 KB, 4 views)
File Type: jpg AfterProcessing.jpg (34.7 KB, 4 views)
Attached Files
File Type: yxmd ForumPostingBrett_FieldNames_7_22_10.yxmd (21.9 KB, 6 views)
File Type: csv ForumPostingBrett_FieldNames_7_22_10.csv (592 Bytes, 2 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
use strings as database field names stephs Data Processes 9 06-02-2010 08:21 AM
'Take File/Table Name from Field' option for .xls/x cavila Data Processes 0 05-28-2010 09:36 AM
Underscores in Field Names hhaigh Alteryx 2 02-15-2010 03:41 PM
Changing Sheet names to Grp tmonroe Composer 1 12-18-2009 11:25 AM
Save Field Configurations Admin (Admin) Data Processes 0 05-12-2008 06:47 AM


All times are GMT -6. The time now is 09:40 PM.


Powered by vBulletin® Version 3.7.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.