Skip to main content

Hi guys. I'm new to Tableau. I would like to calculate the sum of the previous 4 weeks before the week number filter. When I tried using Window Sum, the sum fails when the week number filter is applied.

Basically, I want it to show this if the person selects week 7 in the filter:

Blouse 18 Shirt 2 Pants 10 Sweater 9

If the person selects week 10 in the filter, it should show this:

Blouse 15 Pants 5 Sweater 9.

Any ideas? Thanks.

6 answers
0/9000