8 May 2018
I’m going to try and share some of the techniques and methods I use as a consultant. Using Tableau & Alteryx daily means that I’ve found I take small techniques, tips & tricks for granted. Hopefully this will be useful for you all.Using Tableau almost everyday means you pick up a few shortcuts. Here's some of my favourites when it comes to calculated fields.Between placements during my time in the Data School, I sat in on some training. Between creating a Pareto whale and supporting DS4, I wrote a quick blog about the 7 ways to create a calculated field in Tableau. Check out this post - and let me know if I've missed any - you'll find some others in the comments on that post.What I want to share in this particular post is other shortcuts I typically use as I work on a piece of work in Tableau. Let's get started:Setting up my calculation windowWhen you install a fresh new version of Tableau Desktop, you are presented with this fun pop up when you create a calculated field (using one of the 'traditional' methods) - but I personally hate this view. I much prefer clicking the little arrow on the right hand side which pops out a menu:This is for two reasons; the first that you are able to see the explanation of each type of calculation - which I find super useful when both explaining the logic to others, and working out the logic for myself; and second you are able to see the syntax of the function you will use. The fact that each function is organised into sections is also useful, particularly given different functions have different affects on different field types.Visual CuesTableau is full of visual cues - From the small icons for field types, and elements on a measure to indicate different manipualtions - I'm thinking the Table Calculation triangle, the Set venn-diagram and the Forecast arrow.Within the calculated field window, this is no different.Let's take the above as an example;
- [State] and [Sales] are orange given they are fields within the data source
- 'New York' is grey given it is a string
- SUM( ) is blue given it is a function
- Purple for parameters
- Black or grey for 'literal' functions - for example #2018-05-01# returns the ISO formatted date or TRUE/NULL, as well as numeric literals (ie. 1.45 or 12)