Skip to main content
February 27, 2026
Question

GetDataBufferUsingFormula

  • February 27, 2026
  • 2 replies
  • 9 views
Can someone check if there's any mistake in the below 2 lines. I am unable to execute the BR
 
 
Dim sourceBuff As DataBuffer
Dim srcED As String = args.CustomCalculateArgs.NameValuePairs("sourceEffectiveDate")
Dim selectedScenario = args.CustomCalculateArgs.NameValuePairs("selectedScenario")
Dim dmTime = api.Pov.Time.Name
Dim account = args.CustomCalculateArgs.NameValuePairs("account")
 
sourceBuff = api.Data.GetDataBufferUsingFormula($"FilterMembers(T#{dmTime}:S#{selectedScenario}:U4#Approved_Status:U6#Total_Audit:U7#{srcED}, [A#{account}.Base])") 

 

2 replies

March 3, 2026

Syntax looks OK - what's the error?

March 11, 2026

Hi, could it be that you forgot to define the type, meaning:
Dim dmTime As String = api.Pov.Tme.Name
Dim account As String =  args.CustomCalculateArgs.NameValuePairs("account")