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.
- WernerN2 months agoContributor
Was looking for something unrelated but your 'If Statement' inadvertently put me in the right direction. Much appreciate you sharing your code.
Related Content
- 12 months ago
- 12 months ago
- 11 months ago