How to create WTD, MTD, QTD, YTD calculations in Tableau

View profile for Andy Kriebel

Helping Analysts Master Tableau and Become Industry Leaders | Tableau Visionary Hall of Fame | DataIQ Top 100 Influencer

Guess how many calculations you need to show WTD, MTD, QTD, or YTD... In today’s Intermediate Next-Level Tableau class, we built a calendar to verify the calcs. We created one flexible calculation: ✔ Week-to-date, month-to-date, quarter-to-date, year-to-date Then we created two calcs: ✔ Prior periods (like prior month-to-date) ✔ Same period in the prior year All controlled by a single parameter. Then we used map layers to design the calendar heatmap. All in one sheet! Here’s how it works 👇 What’s your favorite way to compare time periods in Tableau?

  • calendar
Peter Marsden

Data Visualisation ⬥ Tableau ⬥ SQL ⬥ Power BI

2mo

This sounds more elegant than the approach I've used... you have my interest!

Maureen Okonkwo

Tableau Ambassador || Tableau Featured Author 2024 || 4x #VOTD || Tableau Most Notable Newbie Winner || Tableau Community Highlight || Business Inteligence Analyst || Data Visualization Developer

2mo

Amazing Andy This is an interesting use case. Will definitely love to try it out.

James Donder

Senior Data Analyst at Multnomah County

2mo

Once again an amazing learning experience Andy Kriebel! I’m putting finishing touches on mine and will post to it shortly.

What an interesting and enlightening way to visualize this. Thanks Andy.

Don Collins

Data Analytics That Creates Impact, Not Burnout | Your Work Should Matter

2mo

Looks like an awesome use case.

Ojoswi Basu

Making Financial and Data Literacy Accessible for All • Tableau Ambassador • Mentor

2mo

Love the layout. What a phenomenal session at NLT

Neeraj K.

Digital Transformation Partner and Principal Architect @DataDive Australia | Modern BI Stack | Salesforce | Data | Tableau

2mo

You know there is one more I had to build is custom date range comparison to last year :)

Jonathan Shroyer

Gaming at iQor | Foresite Inventor | 2X Exit Founder, 20X Investor Return | Keynote Speaker, 100+ stages

2mo

Super clean solution, Andy. Having those period comparisons controlled by one parameter feels like a legit timesaver - love how visual the calendar heatmap makes it too. For me, the flexibility with date ranges is everything. 👏

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories