From the course: Complete Guide to Tableau for Data Scientists

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

How to show the difference between values in a line chart

How to show the difference between values in a line chart - Tableau Tutorial

From the course: Complete Guide to Tableau for Data Scientists

How to show the difference between values in a line chart

- [Instructor] Instead of needing to see the actual values on a timeline, it's often useful to be able to tell the differences between the former and the latter of any particular data point. This needs a secondary calculation or a table calculation added to an existing field. So first, we'll create a timeline. We'll right click Order Date, drag and drop it onto the columns, and select one of the continuous date fields towards the bottom. I'm going to select the month. We then add our measure to rows. So let's put Sales onto the rows. So this is a timeline that is looking month on month at the value of the sales. So I can see for an individual month how many sales we had, but what I want to be able to do is compare one month to the previous month to see was that a larger or smaller amount? To do that, we add the secondary calculation via a table count. Right click on the sum of sales on the row, go to Quick Table Calculation, and select Difference. Now, instead of plotting the actual…

Contents