# PERSONALITY

### Details

After all answers are evaluated, it will return a group with an entry for each group with its calculated numeric.

### Syntax

**PERSONALITY(table, reducer)**

| Argument name                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><strong>table</strong></p><p>Required</p>   | Table to evaluate with answers groups and points.                                                                                                                                                                                                                                                                                                                                                                        |
| <p><strong>reducer</strong></p><p>Required</p> | <p>Mathematical operation to calculate a final numeric result for each group:<br></p><p><strong>avg</strong> Average of the points of each group.</p><p><strong>count</strong> Number of matching answers of each group.</p><p><strong>sum</strong> Sum of the points of each group.</p><p><strong>max</strong> Maximum answer points of each group.</p><p><strong>min</strong> Minimum answer points of each group.</p> |

### Examples

![mytable](/files/-MA5Xohnx5PmZciuALEx)

**Inputs**: *a* is true, *c* is true, and *d* is true.

* **PERSONALITY(mytable, 'avg')** will return {g1:1, g2:3}
* **PERSONALITY(mytable, 'count')** will return {g1:1, g2:2}
* **PERSONALITY(mytable, 'sum')** will return {g1:1, g2:6}
* **PERSONALITY(mytable, 'max')** will return {g1:1, g2:4}
* **PERSONALITY(mytable, 'min')** will return {g1:1, g2:2}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pickzen.com/guides/nocode/functions/personality.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
