How to use if statement to check calculation flag
Dear OneStream Experts:
Thank you so much for the great help in the past.
I am converting one Hyperion Planning application to OneStream application and would like to know how to use if statement to check calculation flag. For example: I have 3 dimensions
Account dimension has the following 3 members
Sales
Rebate
Rebate_Flag
UD1 - Product Dimension has many Members
TOTAL_Product Parent member with children(Product_1,Product_2,Product_3,,,,,,Product_N).
No_Product
UD2 - Country of Sale Dimension has one parent member ALL_Country and 2 children members
ALL_Country
USA
Canada
In Hyperion application, I have
Rebate_Flag->USA->No_Product =1
Rebate_Flag->Canada->No_Product =2
I want to calculate Rebate only when Rebate_Flag=1. In OneStream, I want to do
api.Data.Calculation("A#Rebate=A#Sales * 0.10", "UD1#Total_Product.base",true)
But how to I apply the if logic. In Hyperion, I can do
Fix(@Relative("All_Country",0),@Relative("TOTAL_Product",0))
If("Rebate_Flag"->"No_Product"=1) Then
Rebate=Sales*0.10;
End If
But in OneStream, how can I do If("Rebate_Flag"->"No_Product"=1), cross dimension calculation flag check?
Your help is truly appreciated. Thank you in advance.
