June 16, 2014 at 8:06 am
i need to do the following
If Fund Complex = “Russell” and INV_SECTYPE_COD equal to ’75’
iii. NotionalAmount = [(SHARS/MULTIPLIER) * (MKT_PRC_BASE) *
(MULTIPLIER/100)]-[UNREALIZED_APP_DEP_BASE]
can this be done in a dervied box or whats the best way to it. its in a datflow part. any ideas?
June 16, 2014 at 8:53 am
Do you want to create a derived column based on other columns or do you want to direct data down different paths depending on column/derived column values? If the former then, yes, use a derived column. If the latter then you can use a Conditional Split transform or Precedence Constraints that use both a Condition and an Expression.
Regards
Lempster
June 16, 2014 at 8:57 am
well the whole logic is this
Change the calculation of the Notional Amount for Future securities for all funds
a) If INV_SECTYPE_COD equal to ’70’, ‘71’, ‘72’, ‘73’, ‘74’, or ‘75’
i. NotionalAmount with (NO_CONTRACTS / MULTIPLIER)
b) If Fund Complex = “Russell” and INV_SECTYPE_COD equal to ’70’, ‘71’, ‘72’, ‘73’, ‘74’
ii. NotionalAmount with [(SHARS/MULTIPLIER) * (MKT_PRC_BASE) *
(MULTIPLIER)]-[UNREALIZED_APP_DEP_BASE]
c) If Fund Complex = “Russell” and INV_SECTYPE_COD equal to ’75’
iii. NotionalAmount from with [(SHARS/MULTIPLIER) * (MKT_PRC_BASE) *
(MULTIPLIER/100)]-[UNREALIZED_APP_DEP_BASE]
and im not sure the best way to do it. i was trying drvied columns but couldnt get the forumal to work kept going red so wasnt sure if i was doing it right or if it would let me.
i was going to use a replace and do the code then aws this will more than likely update after the orginal vales are in table id say. might be better to use a query
June 16, 2014 at 9:08 am
Okay, not sure that I understand fully, but I always try and do as much as possible in my Source query so assuming that you are specifying a SQL query in your OLEDB Source (rather than selecting an entire table), you could maybe use CASE statements to set your column(s) appropriately. That may be what you mean at the very end of your previous post when you state 'better to do it in a query'.
Regards
Lempster
June 16, 2014 at 9:13 am
well i way trying to use a dervied column
this was the code i was trying
(TRIM(INV_SECTYPE_COD) == "75") && (TRIM(AttributeNames) == "")?[(SHARS/MULTIPLIER) * (MKT_PRC_BASE) *(MULTIPLIER/100)]-[UNREALIZED_APP_DEP_BASE]: Notional AMount
but there is errors in it. is it possible to do it this way?
June 17, 2014 at 12:30 am
ronan.healy (6/16/2014)
well i way trying to use a dervied column
Please note: the column is 'derived', not 'dervied' 🙂
The absence of evidence is not evidence of absence.
Martin Rees
You can lead a horse to water, but a pencil must be lead.
Stan Laurel
June 23, 2014 at 2:48 pm
Yes, you can do it in derived column. what you need is a bit more cumbersome than what I would want to do in a dc, but if you can't do it in source query and don't have a script component onboard already, use derived column.
I stumble around with the syntax in them, so I suggest you build one little case at a time to get their syntax correct then join them up with the appropriate ands/ors.
Do keep in mind that you are confined to the functions and operators that display top right in the component.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply