Use Tableau Table Calculations to Draw Lines

Use Tableau Table Calculations to Draw Lines

Mike Roberts
//

As with all things Tableau, some of the more surprising tricks happen when you’re asked a seemingly simple, yet surprising, question. In this case, it went something like this:

‘Yes, the line chart is good but can we get a ‘fake’ line in there that is always at a 45 degree angle no matter what date I select?’

My first response would be to ask why. Why would there even be a need have something in the visualization that’s not going to be useful to the analytical process? Although it was an odd request, it was, nonetheless, quite intriguing. How would one just plot a straight line from one point to the next, regardless of date/time selected?

Here’s how I approached this:

Step 1:

Create your existing, dynamic, chart.

Step 2:

Create the calculated field that will allow us to plot the aforementioned line. Once that is complete, add that field to the ROWS shelf and make it a dual axis.

 

Step 3:

Turn on the Trend Model for that line

 

Step 4:

Format and remove any unnecessary, non-data, gristle

 

After creating this, I’m trying to think of some useful and practical applications. One that comes to mind would be some form of a Sprint Burndown chart. That’s all I could think of 🙂 

 

Enjoy!

-Mike

 

 

Need Expert Help?

See Our Full Menu of Data Services

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072

×

Love our blog? You should see our emails. Sign up for our newsletter!