Tableau Desktop snippets

How to calculate the week number

Suppose to start from a Tableau Desktop workbook with the data of Star Wars saga movies release date.

// Week number
DATEPART('week',[US Release Date])
Tableau desktop

You can download a working example of this Tableau Desktop workbook in the Resources area.

Nicola Simboli

Nicola Simboli Senior Analytics Engineer

15+ years across SaaS, enterprise and consulting. Focused on scalable data platforms, metric reliability and analytics systems that teams actually use.

Back to Tableau Desktop cookbook page