Open *TSVB*, then make sure the required settings are configured.
. On the dashboard, click *Create panel*.
. On the *New visualization* window, click *TSVB*.
. In *TSVB*, click *Panel options*, then make sure the following settings are configured:
* *Index pattern*
* *Time field*
* *Interval*
. Select a *Drop last bucket* option. It is dropped by default because the time filter intersects the time range of the last bucket, but can be enabled to see the partial data.
. In the *Panel filter* field, specify any <<kuery-query, KQL filters>> to select specific documents.
To configure the value of each series, select the function, then configure the function inputs. Only the last function is displayed.
. From the *Aggregation* dropdown, select the function for the series.
. To display each group separately, select one of the following options from the *Group by* dropdown:
* *Filters* — Groups the data into the specified filters. To differentiate the groups, assign a color to each filter.
* *Terms* — Displays the top values of the field. The color is only configurable in the *Time Series* chart. To configure, click *Options*, then select an option from the *Split color theme* dropdown.
. Click *Options*, then configure the inputs for the function.
For answers to frequently asked *TSVB* question, review the following.
[float]
===== Why is my TSVB visualization missing data?
It depends, but most often there are two causes:
* For *Time series* visualizations with a derivative function, the time interval can be too small. Derivatives require sequential values.
* For all other *TSVB* visualizations, the cause is probably the *Data timerange mode*, which is controlled by *Panel options > Data timerange mode > Entire time range*.
By default, *TSVB* displays the last whole bucket. For example, if the time filter is set to *Last 24 hours*, and the
current time is 9:41, *TSVB* displays only the last 10 minutes — from 9:30 to 9:40.
[float]
===== How do I calculate the difference between two data series?
Performing math across data series is unsupported in *TSVB*. To calculate the difference between two data series, use <<timelion, *Timelion*>> or <<vega, *Vega*>>.
===== How do I compare the current versus previous month?
*TSVB* can display two series with time offsets, but it can't perform math across series. To add a time offset:
. Click *Clone Series*, then choose a color for the new series.
+
[role="screenshot"]
image::images/tsvb_clone_series.png[Clone Series action]
. Click *Options*, then enter the offset value in the *Offset series time by* field.
[float]
===== How do I calculate a month over month change?
The ability to calculate a month over month change is not fully supported in *TSVB*, but there is a special case that is supported _if_ the
time filter is set to 3 months or more _and_ the *Interval* is `1m`. Use the *Derivative* to get the absolute monthly change. To convert to a percent,
add the *Math* function with the `params.current / (params.current - params.derivative)` formula, then select *Percent* from the *Data Formatter* dropdown.
===== How do I calculate the duration between the start and end of an event?
Calculating the duration between the start and end of an event is unsupported in *TSVB* because *TSVB* requires correlation between different time periods.
*TSVB* requires that the duration is pre-calculated.