This diagram shows how to calculate previous years' sales figures using a logical window.