Formulas
- 18 Articles
Get familiar with operator precedence Quickbase acts on certain operators before it acts on others. This is called operator precedence. Operator precedence impacts the outcome of your formula. Quickbase reads operators in a predetermined order, ...
Operators are special symbols like + and * that act on one or two values to return a new value. Quickbase evaluates operators in a specific order, called operator precedence. Operator precedence Quickbase evaluates certain oper...
With custom data rules , you can write a formula at the table level to make sure invalid data isn't allowed. The formula consists of conditions where the data is not valid and should not be saved. You use the If() function, listing each invalid con...
Formula query functions only work in certain formula field types. However, you can use variables or type conversion functions to use formula query functions in most formula field types. Conversion functions convert a value from one datatype ...
This article contains examples and guidelines for using formula queries in custom data rules and custom role permissions. Custom data rules Custom data rules allow you to validate data. Using formula queries, you can do things like: Prevent d...
The following guidelines will help you avoid errors and performance issues when using formula queries. To help performance Do not filter, sort, or group reports based on formula query fields This avoids additional processing time and helps to op...
If you are using grid edit on tables that have formula queries in formula fields, there are some different behaviors: You cannot directly edit formula fields while using grid edit However, you can edit fields that are referenced in formula q...
Use this feature to create a new type of calculation in a summary report. With it, you can perform calculations on a set of aggregate data by first summing the data set, and then calculating an average. This is made possible with a formula function ...
A regular expression, or regex, is a pattern made up of symbols and characters. Regex is used to match strings with specific patterns, similar to a very powerful text search. Quickbase offers three regex functions. These functions allow you to pars...
The Distance formula calculates the straight-line geographic distance between 2 points on Earth using their latitude and longitude coordinates. Use it to measure proximity between locations in your app, like the distance between a customer site an...
Formula fields, summary fields, and lookup fields derive their values from the values of other fields. For instance, a formula field, C , might be the sum of the values in field A and field B . These source fields ( A and B ) are sub-fields ...
GetRecord() is a formula query function you can use to fetch a specific record for reference. You can't use this function on its own Use within GetFieldValues , SumValues , or Size functions, which use a list of records as a parame...
GetRecordByUniqueField() is a formula query function you can use to fetch a specific record for reference. GetRecordByUniqueField() can fetch records based on any unique field with the inputs of field ID and a value parameter Use Ge...
GetRecords() is a formula query function that lets you dynamically search for records using a custom query. You can't use this function on its own. Results depend on the other function where it's used. Use it within the GetFieldValues...
GetFieldValues() is a formula query function that you can use to get values from a specific field of the records referenced in the GetRecord , GetRecordByUniqueField() , or GetRecords function. GetFieldValues() examples
SumValues() is a formula query function you can use to calculate the sum of values in a field for records that match the query. SumValues() examples
Size() is a formula query function you can use to count the number of records in a text, user, or record list. Size() can use GetRecords as a parameter, or it can use a user list or multi-select text field. Size() examples
When you use a query in a formula query function, you may need to reference field and record IDs, and table aliases. Find field IDs Open a table and select Settings from the table card in the page bar. Select Fields . On the Fields setti...