Hello All,
I am looking for a formula to calculate the total of the current Category, shown against each Sub-Category, as below:
Category Sub-Category Amount Category Total
Income Charitable Income 100 400
Income Other Income 300 400
Expenditure Staff Costs 200 700
Expenditure Other Costs 500 700
The problem is that I am using a Power BI chart which does not include Category,so I can't use the normal CALCULATE( [SUM], ALL( Account[Sub-Category]) ), that just gives me 1,100 for all rows.
I have been scratching my head for a while over this, does anyone know what approach I could try?
Thanks
Rich
I am looking for a formula to calculate the total of the current Category, shown against each Sub-Category, as below:
Category Sub-Category Amount Category Total
Income Charitable Income 100 400
Income Other Income 300 400
Expenditure Staff Costs 200 700
Expenditure Other Costs 500 700
The problem is that I am using a Power BI chart which does not include Category,so I can't use the normal CALCULATE( [SUM], ALL( Account[Sub-Category]) ), that just gives me 1,100 for all rows.
I have been scratching my head for a while over this, does anyone know what approach I could try?
Thanks
Rich