Custom table calculations
Before we move on to some practical examples, let's briefly discuss how to write your own table calculations, instead of using quick table calculations. You can see a list of available table calculation functions by creating a new calculation and selecting Table Calculation from the drop-down list under Functions.
For each of the examples, we'll set Compute Using | Category. This means Department will be the partition.
You can think of table calculations broken down into several categories. The following table calculations can be combined and even nested just like other functions.
Meta table functions
These are the functions that give you information about the partitioning and addressing. These functions also include Index, First, Last, and Size:
- Index gives an increment as it moves along the addressing within the partition.
- First gives the offset from the first row in the partition, so the first row in each partition...