Tableau Desktop snippets

How to calculate first Monday of a given Month

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

// First Monday of Month
DATE(
    DATETRUNC('week', 
        DATETRUNC('month',[US Release Date])+6,
        'Monday'
    )
)
Tableau desktop

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

Back to Tableau Desktop cookbook page