O'Reilly logo

Tableau 10.0 Best Practices by Jenny Zhang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sort by calculated field

If you want to sort a table calculation, you need to have a copy of the same table calculation and set it as discrete. You can drag the copy of the table calculation to View as the first dimension in Rows/Columns. The View will be sorted by the table calculation.

Let's look at an example. I will use the Superstore data for this example.

The goals for this visualization are as follows:

  1. Show the latest sales and sales trend for each Province.
  2. Sort the three strategic provinces (Quebec, Ontario, and Alberta) by the latest sales. Other provinces are sorted alphabetically.

Here are the steps to create this visualization:

  1. Drag Order Date to columns and set as Month.
  2. Drag Province to Rows.
  3. Drag Measure Names to Rows.
  4. Drag Measure Values ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required