Forum Discussion
kustrup
2 years agoNew Contributor
Thank you for the responses! I was able to resolve the issue with an IF statement:
If BRApi.Finance.Members.IsDescendant(si, _
BRApi.Finance.Dim.GetDimPk(si, "DIMENSION_NAME"), _
BRApi.Finance.Members.GetMemberId(si, dimTypeID.UD3, "PARENT_MEMBER"), _
BRApi.Finance.Members.GetMemberId(si, dimTypeID.UD3, DEPARTMENT_FOR_DATA_RECORD)) _
Then
That being said, it is definitely more efficient to use a global variable as franciscoamores said.
WernerN
11 months agoContributor II
Was looking for something unrelated but your 'If Statement' inadvertently put me in the right direction. Much appreciate you sharing your code.
Related Content
- 9 months ago
- 2 years ago
- 2 years ago