dervied box

  • 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?

  • 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

  • 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

  • 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

  • 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?

  • ronan.healy (6/16/2014)


    well i way trying to use a dervied column

    Please note: the column is 'derived', not 'dervied' 🙂

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • 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