In Tableau, Window SUM is used to fetch the sum of expression within the window you described.
Are you looking out for Tableau training? Then obtain the Tableau certification from Intellipaat staying at home.
Do watch this YouTube video to get started.