What are grouping and perspective?
Every series on a widget has three settings that decide how its records are arranged:
Group by splits the metric by a dimension, so the widget shows one series per value, for example one per channel or one per country. This is the grouping. It decides what you see.
Search in time by picks the date that decides the period of a record, for example the day of the request or of the stay. This is the perspective. It decides which records are included in the time range.
Group by time sets how far apart the points on the time axis sit: One per Day, Week, Month, Quarter or Year.
In short: The perspective chooses the slice of data, and the grouping breaks that slice down. Group by time chooses how fine the time axis is.
How do I group a series by a dimension?
You find Group by in the widget editor, in the block of each series. Editing needs at least the User role.
Open the dashboard and click the name of the widget. The widget editor opens on the right.
Go to the series and click Group by.
Click a dimension, for example Portal. Only the dimensions the metric supports are listed. Type to search.
The chart now draws one series per value of the dimension, each with its own color. Grouping does not change which records are included. It only changes how they are shown. To limit or sort the groups, for example to the top 5 channels, see Ranking.
How do I choose the perspective?
In the widget editor, go to the series and click Search in time by.
Click the date that should decide the period, for example Arrival date or Created date. The list shows the dates of the metric.
The time range of the widget then applies to that date. With Last 7 days and Arrival date, the widget shows the bookings of guests arriving in the last 7 days, no matter when they booked. With Created date, it shows the bookings made in the last 7 days, no matter when the guests arrive.
A series draws nothing until Search in time by is set. The widget editor shows the banner One series has no data behind it yet until you pick one.
How do I set the spacing of the time axis?
In the widget editor, under Group by time at the top, click Day, Week, Month, Quarter or Year.
The widget recalculates its points, so a 60-day range becomes 60 points by day or 9 points by week. The setting is saved with the widget and applies to every series on it.
To change the grouping only for yourself, see Edit widget calendar.
How do grouping and perspective work together?
Take the metric Bookings with a time range of Last 7 days:
| Group by | Search in time by | The widget shows |
|---|---|---|
| Country | Created date | The bookings made in the last 7 days, one bar per country. |
| Arrival date | Created date | The bookings made in the last 7 days, arranged by when the guests arrive. It answers: Of the bookings made this week, when do the guests arrive? |
| Created date | Arrival date | The bookings of guests arriving in the last 7 days, arranged by when they were made. It answers: Of the guests arriving this week, when did they book? |
Troubleshooting
Why does the chart show one line although I grouped it?
The grouped series is drawn once per value only if the dimension has values in the selected range. Set a wider Time range or check the filter on the series.
The field Group by may be empty on a second series. Grouping is set per series.
Why did the numbers change after I switched Search in time by?
- That is expected. The time range now applies to a different date on each record, so different records fall into it. Pick the date that matches the question you are asking.
Why does Group by time have no effect?
- It only applies to series grouped by a date. A pie chart by channel has no time axis.
Why is the grouping button missing on the widget?
- The button only appears when at least one series on the widget runs over time. It is hidden on widgets that are grouped by a category only.