Selecting Columns by Name in the Metric Builder
When selecting a value series, Grow refers to the selection by column name
report1!”column name”). If a new column is added to the report from the data source (for instance, if someone adds data to a saved report in Salesforce or an API is updated and adds new columns within a report) Grow will still be able to recognize which column to use for your charts.
You also have the option to select a specific number of cells in a column (
F2:F6), but that will remain fixed to the column (
Column F) and not the column name.
If you have selected a column that no longer appears in the data (for example, if you are showing MTD sales, but it’s the beginning of the month with no sales yet), the value series will still show the selection and will still show up in the legend, but it won’t show any data. It will appear in the metric builder with a dotted line border (see below).
Referencing Columns by Name in Spreadsheet Functions
In spreadsheet functions, you can reference both positional (
column C) or the actual name (
“forecast”) to refer to specific cells. If you are using the column name, remember that it is case sensitive, and make sure to surround the name with quotes.
If you want to use the Pivot Table transform to separate out different values and chart each one, skip the pivot transform on the data tab of the builder and instead go to the chart tab and select the column where you want to “slice” the data (the equivalent to selecting the “column source” in a pivot table transform).
Items to Consider:
- If the name of the column is changed, it will break the metric, so be careful when using data from a spreadsheet or other source that can be changed easily, or using the Rename Columns transform after selecting your data.
- The selection is case-sensitive, so changing any capitalization will break the selection.
- Don’t use quotation marks in the column headers themselves.