I am building a report and I want to build an interface that allows the users to add functionality similar to the summarize function. Ideally, users should be able to select up to 5 different columns and their respective aggregations. Then those results should added to the report as a table.
For example, if my user selects "sales":"sum", "date":"min", and "date":"max", the output should be a table like this:
| Column | Aggregation | Result |
| Sales | Sum | 20412408 |
| Date | Min | 2018-01-01 |
| Date | Max | 2020-12-31 |
Do you have any idea how I can build something like this?