Add a Calculated Field to Your Data

Sometimes, analyzing your data source requires adding a calculated field based on your existing fields. For example, you want to review the cost for each product that you sell. ‌You can either create a calculated field manually, or you can use Semantics AI and let Einstein draft one for you.

Required Editions

View supported editions.
User Permissions Needed
To add calculated fields: Tableau Unmetered Platform Analyst or Tableau Next Platform Analyst permission set
  1. From the workspace, open the visualization.
  2. From the semantic model’s context menu, select Created Calculated Field.
  3. In the New Calculated Field dialog box, enter the formula that you want to apply. For more information, see Build a Formula in a Calculated Field. To use Semantics AI (Beta), under Draft with Einstein, explain the measure you want to create in the text box and then click Draft with Einstein.
    Einstein suggests a formula and fills out all of the fields accordingly.
    New Calculated Field window
    Note
    Note Semantics AI must be enabled in order to use it. For more information, see Enable Semantics AI in Tableau Next (Beta).
    Note
    Note Semantics AI is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.
  4. Click Validate.
  5. Save the formula.