Recent PostsRecent Posts Popular TopicsPopular Topics
 Home Search Members Calendar Who's On

 dervied box Rate Topic Display Mode Topic Options
Author
 Message
 Posted Monday, June 16, 2014 8:06 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Monday, November 24, 2014 6:03 AM Points: 134, Visits: 227
 i need to do the followingIf 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?
Post #1581140
 Posted Monday, June 16, 2014 8:53 AM
 SSCrazy Group: General Forum Members Last Login: Friday, December 12, 2014 7:23 AM Points: 2,128, Visits: 1,487
 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.RegardsLempster
Post #1581169
 Posted Monday, June 16, 2014 8:57 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Monday, November 24, 2014 6:03 AM Points: 134, Visits: 227
 well the whole logic is thisChange the calculation of the Notional Amount for Future securities for all fundsa) 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
Post #1581184
 Posted Monday, June 16, 2014 9:08 AM
 SSCrazy Group: General Forum Members Last Login: Friday, December 12, 2014 7:23 AM Points: 2,128, Visits: 1,487
 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'.RegardsLempster
Post #1581201
 Posted Monday, June 16, 2014 9:13 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Monday, November 24, 2014 6:03 AM Points: 134, Visits: 227
 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 AMountbut there is errors in it. is it possible to do it this way?
Post #1581207
 Posted Tuesday, June 17, 2014 12:30 AM
 SSCertifiable Group: General Forum Members Last Login: Yesterday @ 11:13 PM Points: 5,316, Visits: 12,347