SOLVED
concatenating dynamic fields
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
pgandhi
6 - Meteoroid
‎07-27-2015
05:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have got a set of fields whose number is dynamic i.e sometimes data might return 5 fields and sometimes 10. Now, I need to create another field which is a concatenation of these dynamic fields.
For example, if my data is returning 'Field 1', 'Field 2' and 'Field 3' then I need to create a field as 'Field 1, Field 2, Field 3', and if next time it return 'Field 4' as well then I sould be able to concatenate that as well.
For example, if my data is returning 'Field 1', 'Field 2' and 'Field 3' then I need to create a field as 'Field 1, Field 2, Field 3', and if next time it return 'Field 4' as well then I sould be able to concatenate that as well.
Solved! Go to Solution.
Labels:
- Labels:
- Transformation
2 REPLIES 2
Joe_Mako
12 - Quasar
‎07-27-2015
11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
One option is to use the Transpose and Summary Tools. Here is an example tool layout and sample starting data:

There here is the configuration of the Transpose tool, notice that the fields that we do not want to concatenate are selected as the Key Fields, and "Dynamic or Unknown Fields" is selected in the Data Fields, these Data Fields will be concatenated together:

Finally will can use the Summary tool to concatenate the reshaped data, Grouping by the fields selected as Key Fields, and concatenating Value from the Add button String->Concatenate, also you can set the separator:

That will produce an output of:
?

There here is the configuration of the Transpose tool, notice that the fields that we do not want to concatenate are selected as the Key Fields, and "Dynamic or Unknown Fields" is selected in the Data Fields, these Data Fields will be concatenated together:

Finally will can use the Summary tool to concatenate the reshaped data, Grouping by the fields selected as Key Fields, and concatenating Value from the Add button String->Concatenate, also you can set the separator:

That will produce an output of:
?

‎07-28-2015
02:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
yup...i figured that out...had used dynamic select with transpose and summarize to get what i wanted. Anyways, thanks for your help...really appreciate it.
