Input
Id | office_0_location | office_0_phone | office_1_location | office_1_phone | |
1 | abc@email.com | address1 | 123456 | address2 | 456652 |
need the output in this format.
Id | location | phone | |
1 | abc@email.com | address1 | 123456 |
1 | abc@email.com | address2 | 456652 |
Solved! Go to Solution.
Thanks, this works fine with static columns.
But office_[index]_location and office_[index]_phone are dynamic columns, it may have more columns based on the input data.
Could you please help me to resolve this issue.
office_0_location | office_0_phone | office_1_location | office_1_phone | office_2_location | office_2_phone |
Thanks, this works fine with static columns.
But office_[index]_location and office_[index]_phone are dynamic columns, it may have more columns based on the input data.
Could you please help me to resolve this issue.
office_0_location | office_0_phone | office_1_location | office_1_phone | office_2_location | office_2_phone |
Hi-
This update should help address that. Just does a transpose, splits the names, and then joins back on record position before checking to make sure that at least one of the location/phone columns has a value. If you send multiple workers through but they have differing numbers of locations/phones it will present nulls for the ones with less.
Thanks, this works fine with static columns.
But office_[index]_location and office_[index]_phone are dynamic columns, it may have more columns based on the input data.
Could you please help me to resolve this issue.
office_0_location | office_0_phone | office_1_location | office_1_phone | office_2_location | office_2_phone |