Hello everyone!
- I am developing a pivot table in workshop
- User can choose between 4 granularity: year, year_month, year_quarter, snapshot_date
- 4 pivot tables to maintain because the column grouping is static
- the year pivot table
- the year_month pivot table
- the year_quarter pivot table
- the snapshot_date pivot table
- I need to create a serie of 4 of these tables with different aggregations
- I end up creating and maintaining 16 pivot tables
My suggestion:
- the string variable “pivot_table_granularity” has “year” or “year_month” or “year_quarter” or “snapshot_date”
- only one pivot table is created and maintained
- this pivot table accepts “pivot_table_granularity” as its column grouping configuration
- I only need to create one pivot table by aggregation serie.
- Less widgets to maintain!