Video | Tableau | Data visualisation | Data prep

Understanding the grain of your data in Tableau

Understanding what your data is about is critical to make sure you calculate the right aggregate values.

Part of Tableau Key ConceptsTableau Level of detail functions
  • The Orders count field actually counts rows in the Orders table, not distinct orders, so a single order can span multiple product rows
  • Superstore operates at the product level of detail, meaning each row is a product within an order rather than the order itself
  • Average sales in Tableau is really the average product value, calculated as total sales divided by the number of rows in the dataset
  • To get the true average order value you divide total sales by the distinct count of orders, which differs from the default average
  • Each logical table in the data model can have its own grain (Orders at product level, Returns at order level, People at regional level), and Tableau handles the aggregation across relationships