From the course: Tableau 10: Mastering Calculations
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Add or subtract intervals from dates - Tableau Tutorial
From the course: Tableau 10: Mastering Calculations
Add or subtract intervals from dates
- [Instructor] Many events happen at regular intervals, such as every week, month, or year. In some cases, events can happen every eight or 10 days, or a client might have 45 days to respond to a proposal. Calculating long strings of dates by hand can be cumbersome, so Tableau allows you to make the calculation easier by creating a formula to add a set interval or increment to a date. I'll show you several ways to perform those tasks. My sample file is the AddDates workbook, and you can find it in the chapter four folder of your exercise files collection. Let's say that you want to add 45 days to a date. In the scenario that I have envisioned here in the workbook, I'm assuming that clients have contacted my hotel about hosting a conference and we have a proposal required date that I've already filled in. And what I want to do is to calculate a time 45 days in the future where we would expect a reply. To add 45 days to an existing date I can create a calculated field. So I'll go to the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Return the current date or date and time4m 7s
-
(Locked)
Return the day, month, or year component of a date4m 50s
-
(Locked)
Identify part of a date using DATEPART5m 3s
-
(Locked)
Add or subtract intervals from dates6m 37s
-
(Locked)
Truncate a date3m 37s
-
(Locked)
Identify the earlier or later of two dates3m 18s
-
-
-
-
-
-