Vizuators' blog

How Multi-fact Relationships Simplified Our Data Model at Tableau

Business intelligence without data modeling is unthinkable. And physical joins are no longer enough; logical data models are increasingly needed. They allow you to create complex structures without having to manually write queries. As a self-service tool, Tableau made this possible in 2020 by introducing relationships. They made data models more flexible and productive.

We recently faced such a task when analyzing the assortment of a retail chain.

There was this data structure:
  • Sales are in the Orders table.
  • Stocks are in the Inventory table.
  • Categories and product descriptions are in the Products table.
  • The names of retail outlets are in the Stores table.

This is how the tables are related.

Business challenge: Identify illiquid goods in different categories

To do this, it was necessary to find out which goods are not sold for a certain period of time and yet are stored in significant quantities in warehouses .

A warehouse in this context is a specific point of sale. The report should present sales and stocks of goods by category. It is important to include a comparison with the previous period to track the dynamics. Also, a user should be able to filter out one of the points of sale to dig deeper into its KPIs.

Here are our 4 cards to examine your dashboard work

  • Fields from data source
    • Use Comments to fields. Help to understand the specifics of the data.
    • Try not to use Aliases. Not used in calculations, at least. If necessary, create a copy of the field with aliases for signatures, and do the calculations on the original field.
  • Further work and documentation
    • Folders. Use them to group similarly used fields: filters, formatting, fields with aliases, meaning groups, and numbering.
    • Caption. Brief description of the visualization. It can be used for reference or to make your comments.
    • Describe sheet. Contains the main visualization parameters: Caption, Marks, Filters, Rows, Columns, etc.

    It can be used for documentation.

    Call:

    Worksheet > Describe Sheet

    or Ctrl+E (Cmd+E)

  • Calculated fields
    • Names.
    • Give names your mom can understand.
    • Formulas. Break the logic into steps. Use hyphens to make the formula easier to read. Be careful with duplication. Replace constants with parameters. Create a validation sheet
    • Comments. Describe the purpose of the calculation and the calculation process. Use Describe to Understand the Value of a Field and display metadata.

    //single line comment

    /* multi-line comment */

  • Packing work
    • Remove unused fields
    • Use color coding sheets
    • Add update log
word cloud of practically identical names
watch Our video

Rules of development in Tableau (English subs)

Let's try to find all the incorrect names of calculations and pages on your server

GraphQL and Python will help you

How to improve dashboard performance?

Let's audit your dataviz

Use proved Tableau expertise

By clicking the button, you agree to the processing of personal data. We use it to stay connected. Read more