Tableau Desktop snippets
How to calculate number of days of previous Month
Suppose to start from a Tableau Desktop workbook with the data of Star Wars saga movies release date.
// Number of days previous Month
DAY(
DATEADD('day', -1,
DATETRUNC('month', [US Release Date])
)
)
![Tableau desktop](static/img/CookBook/Tableau_desktop/010. Number of days previous Month.png)
You can download a working example of this Tableau Desktop workbook in the Resources area.