How to adjust existing columns
The Config builder lets you not only create your own columns but also adjust existing ones. Common tasks include changing how a column's values are displayed and renaming a column.
A config only needs to name the dataset and the column you are changing, and list the keys you change. Every other setting of the column stays as it is. The kind key is required on every column, so repeat the column's current kind (dimension or measure).
1. Find the dataset and column names
- Open a report that contains the column.
- Hover over the column header. The tooltip shows the dataset name in brackets after Table, and the full column identifier (
dataset.column) after Column.
You can also browse every dataset and column in the Schema tab next to the editor in the Config builder.
2. Create the config
- Go to Reports -> Advanced Reports -> Reports and click Config Builder on the reports list page.
- Click Add New Config.
- Enter a Title and write the config in the editor. Examples are below.
- Click Save.
After saving the config, reload the report page to see the adjusted column.
How to change how a column is displayed
Some columns may be displayed in a format that does not suit them. To change the format, set the column's value_format. Below is an example where the Qty Invoiced column of order items is displayed as a quantity:
{
"datasets": [
{
"name": "sales_order_item",
"columns": [
{
"name": "qty_invoiced",
"kind": "measure",
"value_format": "qty"
}
]
}
],
"explores": []
}
For detailed information about the available formats, refer to the Config builder page.
How to rename a column
For example, to rename the total_qty_ordered column of the Orders dataset to Items Ordered, add the following config:
{
"datasets": [
{
"name": "sales_order",
"columns": [
{
"name": "total_qty_ordered",
"kind": "measure",
"label": "Items Ordered"
}
]
}
],
"explores": []
}
Click Check against schema above the editor to validate the config before saving it.