From the course: Complete Guide to Tableau for Data Scientists
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Manipulating dates with date functions - Tableau Tutorial
From the course: Complete Guide to Tableau for Data Scientists
Manipulating dates with date functions
- [Instructor] Tableau makes it really easy to manipulate dates, and we're going to look at a couple of the functions now, one for adding duration to dates and one to create durations based off of dates so we can look for the amount of time that's elapsed between two different dates. And to do that, I'm going to first create a table so I can see the results of the calculation in real time. So we have orders in our system, and we have an order date, and we have a shipping date, so I'm going to build a quick table with the order ID, and I want the order date, so I'm going to right-click or hold down the Option button when I do my left-click drag for a Mac. I'm going to select the second order date, Order Date Discrete, so I can see the numeric value of that order date. Do the same thing again with ship date, right-click or Option + left mouse drag for Mac, and we'll do our shipping date. So the first function I'm going to use is DateAdd. This allows us to add an amount of time onto an…
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
-
-
-
-
-
-
-
-
How do calculations work in Tableau?7m 35s
-
(Locked)
Understanding the order of operations in calculation6m 39s
-
(Locked)
Manipulating strings using string functions8m 14s
-
(Locked)
Manipulating dates with date functions7m 55s
-
(Locked)
Creating logic calculations using IF functions6m 29s
-
(Locked)
How do table calculations work?8m 13s
-
(Locked)
Table calc directions6m 41s
-
(Locked)
What are Level of Detail (LOD) calculations?3m 54s
-
(Locked)
EXCLUDE LOD calculations5m 6s
-
(Locked)
INCLUDE LOD calculations3m 56s
-
(Locked)
FIXED LOD calculations4m 31s
-
(Locked)
Using calculations in a join7m 1s
-
(Locked)
Challenge: Calculations1m 21s
-
(Locked)
Solution: Calculations6m
-
-
-
-
-
-
-