I am working on a calculated column that will return an “X” if specific criteria are met. The criteria are based pm three columns. The table actually has several columns.
COLUMN1 COLUMN2 COLUMN3 DATE
1234 100 300 1/1/2002
2245 100 500 2/3/2002
1234 400 400 4/5/2007
2256 100 500 7/5/2010
1234
The calcucated column will return and x if COLUMN1 has a value of 1234 OR IF COLUMN2 has 2 consecutive values < 200 within a 2 year period or COLUMN3 has 2 consecutive values > 300 within a 2 year period
According to this criteria row 1,3, and 5 will return an X due to the number 1234.
According to Column 2 row 1 will return an X due to the fact that there was a value less then 200 twice in a row within a 2 year period..
Any help would be greatly appreciated….
This might be quite slow on larger volumes of data due to the self join, but should provide you with the data you are looking for…