Calculate a variable using AI

Thanks to artificial intelligence, you can easily add a new variable to your dataset. Write your requirements and constraints in a text box, and the AI will process your prompt to generate a new variable.

You can use this AI feature:

  • From the Datavisualization environment in the Analysis section;

  1. Select the Calculate a variable by AI option.

  2. Write your prompt in the provided area, choosing the variables to be used.

    A few tips:

    • You can double-click on a variable in the list of variables on the right to add it to your calculation formula.

    NOTE: To help you write your prompt, a dedicated page provides you with predefined templates and practical tips.

  3. Click Next.

    You will see a preview of your variable.

    EXAMPLE: Spell-check of a text variable:

    NOTE: Generating a preview of the results does not deduct AI tokens from your account.

  4. Click Next.

  5. Configure the variable to be created by entering its name (label) and type (numerical, text, code, etc.).

  6. (Optional) Select the Automatic variable check box so that the calculation is executed for any observation added or modified after the creation of the calculated variable.

  7. Choose where to insert the new variable.

  8. Click Finish.

Your AI-calculated variable is created.