The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
Steven
2 years agoContributor II
Derivative Transformation Rule ActualQuantity field as Amount
I would like to create a derivative transformation rule that will add _Qty to the end of the Account and pull the ActualQuantity field from the data source as the Amount. My DataSource has a field f...
- 2 years ago
It's difficult to judge without looking at your full datasource configuration, but there are many ways to skin this particular cat. You could map the column to an Attribute Value dimension (e.g. AttributeValue1), then use args.GetNumericValue("AV1#") . You could get it by column index from api.Parser.DelimitedParsedValues(yourColIndex). Keep in mind that most values will be treated as text, not Numeric, even if they are numbers; so you will want to get them as "Dimension Values", unless they are in Amount or in Attribute Values.
AndreaF
2 years agoContributor III
Perhaps you can map the ActualQuantity column as Amount in the data source. Then in the derivative rule you wouldn't need to use a complex expression, just the rule expression you already have and a None logical operator.
- Steven2 years agoContributor II
There are two different amounts. One for the Value, and one for the Quantity. If I map the ActualQuantity to the Amount; then I have to use the complex expression to find the value instead of finding the ActualQuantity. same issue with a different field.
I currently have created a SQL statement that pulls all the records twice. Once for value and once for ActualQuantity. This is working, but if I could do this in the Derivative rule, it would be cleaner.
Related Content
- 5 months ago
- 2 years ago