Forum Discussion

PFowler's avatar
PFowler
New Contributor II
7 days ago

Getting Column Text Value from Derivative Rule

Hi I have a derivate rule that I created that returns the absolute value of an amount based on column name. The column names are assigned in the data source and based on the data source column it will either assign an absolute value or a negative value. I want to be able to pull a column in my derivate rule that is a text attribute column and if the text equals something like "S5" it will do some type of conditional logic. With my limited experience with derivative rules and research it seems this cannot be done via a derivative rule. First question: Is there a way for me to do this? Second: If not, is there another alternative way that I can extract the text field of a column and based on that to do some type of additional logic? 

1 Reply

  • chul's avatar
    chul
    Contributor III

    If there's a valid amount in the amount field, you can write this logic using a Complex Expression or Conditional BR. If there's no amount, OneStream won't read the line.