Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Help on Decision Tables

$
0
0

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 1Field 2Return Value
XA100
YB200

 

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 2Field 3
XA95
XC120
YB300

 

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


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>