It seems to be good for a cumulative sum for dimension 3 and a normal sum for other dimensions untill when I expand my pivot table and I have a zero line values like the screen:
How could I fix my formula to have the correct cumulative sum when I expand my Pivot Table instead of the zero values?