KUMA allows you to filter data in Event widgets not only within the current dashboard, but also when drilling down to another dashboard. In this case, the selected filtering parameters and the time period are preserved and applied to the new dashboard.
This is achieved using global variables. The global variables must be configured in both dashboards, as well as in the properties of widgets: on the target dashboard, the variable is specified in the SQL query, and in the source dashboard, the variable is specified when configuring the Drill down to another dashboard action. When drilling down from one dashboard to another, KUMA automatically substitutes the selected value of the variable and the time period, after which the charts in the target dashboard are rebuilt.
Local variables cannot be used when drilling down to another dashboard.
To configure the drill-down from one dashboard to another, you need to configure both dashboards: first the target dashboard, then the source dashboard. Both dashboards must belong to the same tenant.
Configuring the target dashboard
To configure the target dashboard:
The variable name may contain only English letters and numerals and may not contain spaces.
filter()
function to the WHERE
clause.The syntax for variables with a specific value is as follows:
filter(<
event_field_name
> = $
variable_name
)
The syntax for variables with an arbitrary value to be entered manually is as follows:
filter(<
event_field_name
> like $
variable_name
)
Configuring the source dashboard
To configure the source dashboard:
The variable name must be the same as the name of the variable created in the target dashboard. The name may contain only English letters and numerals and may not contain spaces.
The selected variable must be specified in the SQL query of the widget on the target dashboard, so that the data on this widget is automatically filtered after the drill-down.
Drilling down from source dashboard to target dashboard
To drill down to the target dashboard:
This opens the target dashboard in a new tab. The time period of the original widget is automatically applied to the entire dashboard, and the selected value from the Value drop-down list is passed as a variable to widgets of the Event type, in which it is used in the SQL query through the filter()
function. The charts in the widgets on the other dashboards are rebuilt with the passed values taken into account.
If you change or delete a variable that is specified in the action on the target dashboard to which you are drilling down to, the drill-down is still performed, but the value of the variable is not passed.