We've been asked to add a new field to our tables so that the users can run the reports based on that new field.
This new field is based on 3 existing fields in the table.
I created a crosswalk table that has all the mappings between the existing fields and the new field.
Here is some sample data for the crosswalk-
- If old field1 is "AL", field2 is "2E", field3 is "H" then the value in the new field should be "WWY1V"
- field1 = "AL"
field2 = "2H"
field3 = "H"
New Field = "WWY1D"
- field1 = "AL"
field2 = "2H"
field3 = "K"
New Field = "WWY1D"
- field1 = "EA"
field2 = "1F"
field3 = "J"
New Field = "WEW1C"
I have already created the crosswalk with all these values.
My exisitng tables has millions of records, so instead of adding this new field in the table itself and populating it, I would like to use the crosswalk table as a lookup.
So if a user wants to run the report by the new field.. let's say WEW1C it will look at the corresponding value EA1FJ in the crosswalk and go to the table and pull up all the records with value EA1FJ. I hope it makes sense.
What would be the beest way to do this? Can I add this crosswalk table as it is to my exisitng report and then do the lookup. If yes, then how? I am not sure if I should join the crosswalk table with the exisiting views my report is based on. Totally confused. Any help is really appreciated.
Thanks
-E
This new field is based on 3 existing fields in the table.
I created a crosswalk table that has all the mappings between the existing fields and the new field.
Here is some sample data for the crosswalk-
- If old field1 is "AL", field2 is "2E", field3 is "H" then the value in the new field should be "WWY1V"
- field1 = "AL"
field2 = "2H"
field3 = "H"
New Field = "WWY1D"
- field1 = "AL"
field2 = "2H"
field3 = "K"
New Field = "WWY1D"
- field1 = "EA"
field2 = "1F"
field3 = "J"
New Field = "WEW1C"
I have already created the crosswalk with all these values.
My exisitng tables has millions of records, so instead of adding this new field in the table itself and populating it, I would like to use the crosswalk table as a lookup.
So if a user wants to run the report by the new field.. let's say WEW1C it will look at the corresponding value EA1FJ in the crosswalk and go to the table and pull up all the records with value EA1FJ. I hope it makes sense.
What would be the beest way to do this? Can I add this crosswalk table as it is to my exisitng report and then do the lookup. If yes, then how? I am not sure if I should join the crosswalk table with the exisiting views my report is based on. Totally confused. Any help is really appreciated.
Thanks
-E