# Dynamic Pivoting Example

Canonical page: https://infinite-table.com/docs/learn/examples/dynamic-pivoting-example

This example showcases client-side grouping, pivoting and aggregation.
These properties are changed dynamically at run-time via the UI.

It also showcases different way of customizing columns based on dynamic conditions:

- uses custom `number` and `currency` column types, to format values
- has a custom border for rows that have `canDesign=yes`
- the custom column type `number` has a background color based on the color input

**Example**

```tsx files=["dynamic-advanced-pivoting-example.page.tsx","Settings.tsx","types.ts"]

```

## Server-side Dynamic Pivoting Example

This example is very similar with the above one, but pivoting, grouping and aggregation is done on the server-side.

**Example**

```tsx files=["dynamic-pivoting-serverside-example.page.tsx","Settings.tsx","types.ts"]

```
