Create and test a formula field
Calculate a value from fields in the same record and preview the result before saving.
Prepare a sample record
Open a table whose fields you can manage. For this example, add two fields of type Number and name them Price and Quantity. Add or update a sample record with a price of 12 and a quantity of 3. The expected result is 36.
Add the formula
- In Settings → Database, select the table. Open Fields, add a Formula field, and name it Line total.
- In the new field’s Options cell, select Configure to open the formula editor.
- Type
@and select Price from the field suggestions. Type*, then type@again and select Quantity. The result should look like@price * @quantity. Keep the field references inserted by the editor if their spelling differs.
Check the result and save
- In Result, use the previous and next record controls to find your sample. Check that the result is
36and that Referenced values shows the price and quantity you entered. - Check another record, especially if people can leave one of the inputs blank. If the editor reports an invalid reference, delete it and select the field again from the
@suggestions. If Result shows No records, add a record with known inputs and reopen the editor. - Select Save once the formula validates and the results match your expectations. Open the table and check the Line total value on your sample. If you cannot see the field in the grid, check which columns are visible in the current view.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?