MarkBird
2 years agoContributor III
Is it possible to pass a parameter to a UD8 dynamic calc member?
Hi all
I currently have a UD8 member to do a simple variance to actuals formula, but I was wondering if it is possible pass parameters to the UD8 member formula that this could be more dynamic?
My current code looks something like this:
Try
'Declare base and comparison scenario variables
Dim currentScenario As String = api.Pov.Scenario.Name
Dim comparativeScenario As String = "Actual"
'Define pov filters
Dim currentFilter As String = "S#" & currentScenario & ":U8#None"
Dim comparisonFiler As String = "S#" & comparativeScenario & ":U8#None"
Return api.Data.GetDataCell("BWDiff("& currentFilter & "," & comparisonFiler & ")")
Catch ex As Exception
Throw ErrorHandler.LogWrite(si, New XFException(si, ex))
End Try
However, I'm trying to see if there is a solution where I could have the following:
Dim comparativeScenario As String = |!Comparative_Scenario_Parameter!|
Thanks,
Mark