Date calculations allow us to perform operations on dates, such as adding or subtracting dates and obtaining parts of dates. Let's look at some of the key functions in the following sections.
Building date calculations
Obtaining the current date/time
Today() returns the current date in Tableau and NOW() can be used to return the current date-time. A common use case of this is to find the time taken between an event occurrence and today.
Obtaining parts of a date
- DAY(), MONTH() and YEAR(): They share the syntax of function (date). They can be used for obtaining the...