Skip to main content

Can anyone help me with creating a calculated field for calculating sales this year and Sales last year by month and allow the user to select the year for this year and the year for last year?

 

Data is by day How to compare prior year data by month in Tableau with year selection? 

What I want the output to look like is:

 imageI tried various ways and can't get it to work by month, any help is appreciated!

3 answers
  1. Jun 27, 2025, 5:38 AM

    please check the attached workbook. it uses the sample data as you presented.

    hope this helps! (modified to add method 2 sheet for the filter)

0/9000