CR 9
Oracle DB
I've got an existing selection formula that I need to add one more bit of logic to. The table has this info:
Transaction Nbr BFY Document Nbr
10001 2005 AB10000
10002 2004 AB10001
10003 2004 BB11111
10004 2005 BB11234
10005 2004 BB12345
I have a parameter, ?RptLevel, asking to include a certain level where the value can either be "Y" or "N".
When the ?RptLevel = "N" then it needs to include all transaction numbers. When ?RptLevel = "Y" then if BFY < 2005 and Document Nbr starts with "BB" then exclude the transaction.
My intial go was:
But then when you select "N", the report was blank.
I then tried:
Now the report takes forever.
Any help would be greatly appreciated.
Oracle DB
I've got an existing selection formula that I need to add one more bit of logic to. The table has this info:
Transaction Nbr BFY Document Nbr
10001 2005 AB10000
10002 2004 AB10001
10003 2004 BB11111
10004 2005 BB11234
10005 2004 BB12345
I have a parameter, ?RptLevel, asking to include a certain level where the value can either be "Y" or "N".
When the ?RptLevel = "N" then it needs to include all transaction numbers. When ?RptLevel = "Y" then if BFY < 2005 and Document Nbr starts with "BB" then exclude the transaction.
My intial go was:
Code:
If ?RptLevel = "Y"
Then If BFY < "2005"
Then not {DocumentNbr} startswith "BB"
But then when you select "N", the report was blank.
I then tried:
Code:
If ?RptLevel = "Y"
Then If BFY < "2005"
Then not {DocumentNbr} startswith "BB"
Else {TransNbr} = {TransNbr}
Now the report takes forever.
Any help would be greatly appreciated.