Hey folks,
I have two tables: employees, and tasks.
I basically want to have a view that summarises the capacities of each employee, by week, based on the tasks that they have assigned to them. This is very easily done using a pivot table in sheets
However, obviously, this isnโt the best idea as it offloads the logic and calculations to the spreadsheet, which isnโt best practice. Iโd like to use a formula or some sort of system to โbulidโ a table that would be able to summarise week, person, and capacity.
Ultimately, even a table like this would be super useful to generate
Many thanks in advance, everyone.
If the understanding of your requirement is correct, there may not be exactly the pivot table view that you desire but you could possibly take a look at group by Week , followed by Person in a table view and group aggregate for this table view could be SUM: Used Capacity or AVG: Order Capacity
In case of aggregate by SUM: the first group by of used capacity by weeks will be just arithmatic sum of all individual capacities.
This is alright, but there are two significant caveats:
Hi @Wiktor_Jurek
Yes, as mentioned, it will not be an exact pivot table. There will be some compromises.
Not sure why you mention this. If the Google sheet table โTasksโ is included in the AppSheet , I believe you could build a table view based on it with groupings as suggested.
Another option , again not exactly like a pivot table will be
[Tasks Table Key]= MINROW( โTasksโ, โ_ROWNUMBERโ, AND( [Person]=[_THISROW].[Person], [Week]=[_THISROW].[Week]))
If there are more than one tasks per person per week, you may need to add the โUser Capacityโ by person by week in another expression in a VC to create an [Aggregated Used Capcity by Person Per Week]
Display the slice in a table view with the column order as [Week], [Person] and [Aggregated Used Capcity by Person Per Week]
A point to note is that multirow expressions in VCs ( point 2 above ) could impact sync times. But Pivot by its very nature will involve some aggregation.
User | Count |
---|---|
17 | |
14 | |
10 | |
7 | |
4 |