You can use the WINDOW_SUM formula to do this. Writing the formula is straightforward, where it becomes more difficult is the 'Compute Using' to make sure it's giving you the correct total and subtotal. It looks like you want the calculation to restart for every new bar - you can set this in the Advanced settings of the Compute Using.
These links may help:
1 of 1 people found this helpful
Yes, they changed the table calculation settings and terminology fairly recently...
It's the Specific Dimensions you would use. I suggest you create your calculated field to begin, e.g. WINDOW_SUM(SUM([MeasureField]))
Drag it into the Tooltip shelf, then you are able to right click on the pill and set the Specific Dimensions and ensure its Restarts using the dimension that splits your bars.
thx that worked