08-03-2023 03:05 PM
Hi all,
I wonder if I can use the following code in a Cube Cell Format.
"XFMemberProperty (DimType=Account, Member=|MFAccount|, Property=AccountType)"
The idea is to flip value sign in case AccountType is 'Expense'.
-----------------------------------------------------------------------------------------------------------------------------
If ('XFMemberProperty(DimType=Account, Member=[RowE1MemberName] , Property=AccountType)= 'Expense') Then
FlipSign = True
End If
-----------------------------------------------------------------------------------------------------------------------------
08-03-2023 03:52 PM
Hi Rafael,
I don't think you can do that probably you could try using an XFBR rule, but the challenge is passing the account from cell POV to the rule. I'll give it a shot, but if you can share how you've built your CV, I can help with a better solution.
08-03-2023 04:19 PM
Hi Omkar,
this is the thing.
I have a column set with 3 members (Actual, Budget, Var_Scen),
where Variance is calculated as follows:
If AccountType = "Expense" then
Variance = (Actual - Budget)
else
Variance = (Budget - Actual)
The goal is implement a Guided_Reporting ColumnSet, so I don't know the accounts in the RowSet.
Thanks,
Rafael Vidal
08-04-2023 08:12 AM
Raphael - to answer your most recent comment, try using the BWDiff member filter to calculate the variance, rather than trying to flip the sign on the expense accounts. BWDiff will inherently calculate the variance based on account type (revenue, expense, etc.).