Skip to content

Commit 02d019f

Browse files
committed
docs: rollup as links
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
1 parent 5d6e1de commit 02d019f

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

content/docs/fields/field-types/links-based/rollup.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ keywords: ['Fields', 'Field types', 'Links based types', 'Rollup', 'Create rollu
1515
4. Select the link field from the dropdown. This is the field that links the current table to the related table.
1616
5. Select the field for display from the dropdown. This is the field that will be displayed in the current table.
1717
6. Select the aggregation function from the dropdown. This is the function that will be used to aggregate the data.
18-
7. Click on `Save Field` button.
18+
7. Set the **Precision** (Optional) to number of decimal places to display for numeric aggregation functions.
19+
8. Enable the **Thousand Separator** (Optional) to format the number with a thousand separator.
20+
9. Click on `Save Field` button.
1921

2022
![image](/img/v2/fields/types/rollup.png)
2123

22-
### Aggregation Functions
24+
### Aggregation functions
2325
Here's a table with brief descriptions for each of the aggregation functions supported by NocoDB:
2426

2527
| Aggregation Function | Description |
@@ -33,6 +35,21 @@ Here's a table with brief descriptions for each of the aggregation functions sup
3335
| Sum Distinct | Adds up all the distinct values in a dataset. |
3436
| Average Distinct | Calculates the average of distinct values in a dataset. |
3537

38+
39+
### Rollup count as link
40+
41+
When using a rollup field with the **Count** function, you can enable the **"Show count as links"** option to make the displayed count clickable. This allows users to directly access and view the underlying linked records that contribute to the count. Once enabled, the rollup field becomes editable, allowing you to add or modify records in the linked table directly from the rollup field.
42+
43+
![image](/img/v2/fields/types/rollup-count-as-link.png)
44+
45+
Additionally, you can configure "Singular label" & "Plural label" for the rollup field. These labels will be used to display the count in a more user-friendly manner, such as "1 record" or "5 records".
46+
47+
Rollup count as link is available only for the `Count` aggregation function & with `ID` field type selected as the related table field during rollup creation.
48+
49+
<Callout type="info">
50+
API response for rollup field will always return the count as a number, regardless of whether the "Show count as links" option is enabled or not. If you need to retrieve the linked records, you can use associated `LinkToAnotherRecord` field type instead.
51+
</Callout>
52+
3653
## Similar links-based fields
3754
- [Links](links)
3855
- [Lookup](lookup)
334 KB
Loading
129 KB
Loading

0 commit comments

Comments
 (0)