Tableau Desktop snippets
How to calculate last day of previous Month
Suppose to start from a Tableau Desktop workbook with the data of Star Wars saga movies release date.
// Last day of previous Month DATE( DATEADD('day', -1, DATETRUNC('month', [US Release Date]) ) )
You can download a working example of this Tableau Desktop workbook in the Resources area.