Browse Source

docs: update content and screenshots for Rollup

pull/3552/head
Raju Udava 2 years ago committed by GitHub
parent
commit
a3466c4970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 50
      packages/noco-docs/content/en/setup-and-usages/rollup.md

50
packages/noco-docs/content/en/setup-and-usages/rollup.md

@ -8,13 +8,14 @@ menuTitle: "Rollup"
## Rollup ## Rollup
Sample simple Organization structure: Sample Organization structure:
- 5 Departments (company departments), each department has a team name & associated team code - 5 Departments, each department has a team name & associated team code
- 5 employees working at different Departments - 5 employees working at different Departments
- Vertical **has many** Employees : relationship has been defined - Teams **has many** Employees : relationship has been defined
![Screenshot 2022-09-09 at 12 57 32 PM](https://user-images.githubusercontent.com/86527202/189296162-536185f1-31ed-40df-b668-deed7ad630aa.png)
![LookUp](https://user-images.githubusercontent.com/86527202/144038845-402d5401-a214-4166-bc07-fcf8dcc8a961.png)
### RollUp AGGREGATION functions supported ### RollUp AGGREGATION functions supported
@ -27,46 +28,53 @@ Sample simple Organization structure:
- Sum Distinct - Sum Distinct
- Average Distinct - Average Distinct
Now, we can explore how to extract employee count information per vertical using **"ROLLUP"** columns Now, we can explore how to extract employee count information per team using **"ROLLUP"** columns
## Adding a rollup column ## Adding a rollup column
### 1. Add new column #### 1. Add new column
Click on '+' icon to the left of column headers in Departments table Click on '+' icon to the left of column headers in Departments table
![1](https://user-images.githubusercontent.com/86527202/144236273-484edc5b-7f5f-4041-b480-db08d4459d07.png) <!-- ![1](https://user-images.githubusercontent.com/86527202/144236273-484edc5b-7f5f-4041-b480-db08d4459d07.png) -->
### 2. Feed column name #### 2. Feed column name
![2](https://user-images.githubusercontent.com/86527202/144236279-41904955-4990-4a23-bec6-b0953002eac6.png) <!-- ![2](https://user-images.githubusercontent.com/86527202/144236279-41904955-4990-4a23-bec6-b0953002eac6.png) -->
### 3. Select Column type as 'Rollup' #### 3. Select Column type as 'Rollup'
![3](https://user-images.githubusercontent.com/86527202/144236283-4596e3e1-3bf8-488f-bc9b-8ec1466a35c6.png) <!-- ![3](https://user-images.githubusercontent.com/86527202/144236283-4596e3e1-3bf8-488f-bc9b-8ec1466a35c6.png) -->
### 4. Choose Child Table #### 4. Choose Child Table
Table Employee in our example Table Employee in our example
![4](https://user-images.githubusercontent.com/86527202/144236284-301178d8-f452-4d1e-9dff-80dd9570c280.png) <!-- ![4](https://user-images.githubusercontent.com/86527202/144236284-301178d8-f452-4d1e-9dff-80dd9570c280.png) -->
### 5. Choose on Child column #### 5. Choose on Child column
Pick appropriate column for aggreagation Pick appropriate column for aggreagation
![5](https://user-images.githubusercontent.com/86527202/144236286-28547d74-feb8-4ad8-a872-7ba809e5db1e.png) <!-- ![5](https://user-images.githubusercontent.com/86527202/144236286-28547d74-feb8-4ad8-a872-7ba809e5db1e.png) -->
### 6. Select Aggregate function #### 6. Select Aggregate function
Aggregate function will be "count" in our case Aggregate function will be "count" in our case
![6](https://user-images.githubusercontent.com/86527202/144236288-34a567d5-a5e9-4a1e-b074-5ea633e799a3.png) <!-- ![6](https://user-images.githubusercontent.com/86527202/144236288-34a567d5-a5e9-4a1e-b074-5ea633e799a3.png) -->
#### 7. Click on Save
![Screenshot 2022-09-09 at 1 03 49 PM](https://user-images.githubusercontent.com/86527202/189297619-4d5c815b-6c97-41fa-978e-9b645448e508.png)
<!-- ![7](https://user-images.githubusercontent.com/86527202/144236289-5872529a-ba47-428d-979e-fdefb92a1039.png) -->
### 7. Click on Save Column `Employee Count` is populated with appropriate information
![7](https://user-images.githubusercontent.com/86527202/144236289-5872529a-ba47-428d-979e-fdefb92a1039.png) ![Screenshot 2022-09-09 at 1 07 45 PM](https://user-images.githubusercontent.com/86527202/189297662-c7ff1e3e-eec7-4108-a089-6c945b90b867.png)
### 8. Column TeamCount is populated with appropriate information
![8](https://user-images.githubusercontent.com/86527202/144236291-52855f92-ad8b-4be1-aa98-b5cfdb1ee108.png) <!-- ![8](https://user-images.githubusercontent.com/86527202/144236291-52855f92-ad8b-4be1-aa98-b5cfdb1ee108.png) -->

Loading…
Cancel
Save