I was working with a client recently and they wanted to create a calculation in Tableau allowing them to compare performance this month to date versus the same time period last month.
Let’s say we are comparing sales from this month to the previous month. We’ll start by creating a calculation to return sales for just this month: