beadedbytes
Technical User
I'm wondering if there's a somewhat automated way to generate a code listing that's based on common elements.
I'm working with a data tool that allows one to pull customer data by selecting desired metrics. In addition to the CODE, a sampling of the metrics are listed below -- STATE, VERSION, TYPE, SRC1, SRC2 and SRC3. Here's are the issues though.
ISSUE #1
The original CODE denotes the different combinations of the STATE, VERSION and TYPE metrics. A CODE is assigned to each unique combination of these 3 metrics. I also add the SRC1, SRC2, SRC3 metrics to each record before downloading the data for my Excel pivot table. By doing this, the original CODE is no longer unique and the number of rows in the Data Set 'increases'. After downloading, I create a revised 'unique' code for each record in the Data Set by concatenating the STATE, VERSION, TYPE, SRC1, SRC2, SRC3 metrics.
ISSUE #2
The Data Set only includes records wherein the customer has responded. Since this info can vary as responses are received, I want to build - in advance - a table for my pivot that includes all possible combinations of the metrics in the Data Set below. I would then use this all-inclusive table for my Excel Pivot updates instead of creating and attaching revised coding to the actual Data Set. Is there a way to do this inside Excel? I hope so. Please let me know. Thank you in advance.
I'm working with a data tool that allows one to pull customer data by selecting desired metrics. In addition to the CODE, a sampling of the metrics are listed below -- STATE, VERSION, TYPE, SRC1, SRC2 and SRC3. Here's are the issues though.
ISSUE #1
The original CODE denotes the different combinations of the STATE, VERSION and TYPE metrics. A CODE is assigned to each unique combination of these 3 metrics. I also add the SRC1, SRC2, SRC3 metrics to each record before downloading the data for my Excel pivot table. By doing this, the original CODE is no longer unique and the number of rows in the Data Set 'increases'. After downloading, I create a revised 'unique' code for each record in the Data Set by concatenating the STATE, VERSION, TYPE, SRC1, SRC2, SRC3 metrics.
ISSUE #2
The Data Set only includes records wherein the customer has responded. Since this info can vary as responses are received, I want to build - in advance - a table for my pivot that includes all possible combinations of the metrics in the Data Set below. I would then use this all-inclusive table for my Excel Pivot updates instead of creating and attaching revised coding to the actual Data Set. Is there a way to do this inside Excel? I hope so. Please let me know. Thank you in advance.
Code:
[u]# of Variables Per Field (Multi = infinite possibilities)[/u]
Multi 50 Multi Multi 10 2 3
[u]DATA SET[/u]
CODE STATE VERSION TYPE SRC1 SRC2 SRC3
0315-001 AZ ABCD01 XYZ 0 Y -
0315-001 AZ ABCD01 XYZ 0 Y A
0315-001 AZ ABCD01 XYZ 0 Y B
0315-001 AZ ABCD01 XYZ 0 Z -
0315-001 AZ ABCD01 XYZ 0 Z A
0315-001 AZ ABCD01 XYZ 0 Z B
0315-002 AZ ABCD02 XYZ 1 Y -
0315-002 AZ ABCD02 XYZ 1 Y A
0315-002 AZ ABCD02 XYZ 1 Y B
0315-002 AZ ABCD02 XYZ 1 Z -
0315-002 AZ ABCD02 XYZ 1 Z A
0315-002 AZ ABCD02 XYZ 1 Z B