Hi,
I'm currently putting together a decision table and have come across a bit of a challenge. I have a decision table that is setup as follows:
DECISION TABLE
| Field 1 | Field 2 | Return Value |
|---|---|---|
| X | A | 100 |
| Y | B | 200 |
I've applied some basic rules and the decision table in principle is working well. Where I've hit a brick wall is where I want to apply the return value to other rows in a table. The example I have is:
I have a table with the following rows:
FOUNDATION TABLE
| Field 1 | Field 2 | Field 3 |
|---|---|---|
| X | A | 95 |
| X | C | 120 |
| Y | B | 300 |
The rule I'm trying to model is, if Field 1 is X and Field 2 is A then set the value for Field 3 to 100 for Rows where Field 1 is X and Field 2 is A, but also, set Field 3 to 100 where Field 2 is B. I've thought about transposing Field 2 to seperate columns in my foundation table, however, this would considerably widen my table.
Am I trying to model the impossible, or is there something that I am missing.
Thanks for any help.
Regards,
Gary