Opens in a new tab
MIP Logo

One more way to do LY calcs in Tableau

This post was originally published on The Data School blog between 2018 and July 2025, before our program was renamed to MIP’s Analytics Career Accelerator. References throughout this article to “The Data School” or “DS” all refer to what is now MIP’s Analytics Career Accelerator. The program, its people, and its commitment to launching outstanding analytics careers remain the same – just under a new name.

If you are having trouble viewing this article, please report it here. 

At work recently, I encountered a need to display Last Year (LY) values on a line chart. However, traditional methods fell short, prompting me to explore alternative solutions.

Here is my solutions. If there are other ways to solve this , I am happy to give it a go

My requirement:

Show LY values on tooltip of line chart. Line chart has day on the x axis and can span across multiple years.

Image of example

So

 

 

 

Share this post