Since you're using ATTR() aggregation in your [CustomCalc],
you may want to have both [Rekening] and [ParentRekening]
Dimension Pills on Details -- so the ATTR( [Rekening] ) = '0500'
and ATTR( [ParentRekening] ) = 'ACE' conditions wouldn't get Nulls.
With both those Dimensions on a view, the Total would become
a WINDOW_SUM() Table Calculation.
Please find the attached.
Workbook_v10.5_YF.twbx 99.9 KB