1.8 KiB
title | seotitle | description | menu | weight | v2.0/tags | |||||
---|---|---|---|---|---|---|---|---|---|---|
Create a variable | Create a dashboard variable | Create dashboard variables in the Data Explorer, from the Organization page, or import a variable. |
|
201 |
|
Create dashboard variables in the Data Explorer, from the Organization page, or import a variable.
For information about variable types, see Variable types.
Create a variable in the Data Explorer
-
Click the Data Explorer icon in the sidebar.
{{< nav-icon "data-explorer" >}}
-
Click Script Editor on the lower right.
-
Build the query for your variable using the Table visualization type or enable the View Raw Data option.
-
Click Save As in the upper right.
-
In the window that appears, select Variable.
-
Enter a name for your variable in the Name field.
-
Click Create.
Create a variable in the configuration page
-
Click the Settings icon in the navigation bar.
{{< nav-icon "settings" >}}
-
Select the Variables tab.
-
Click +Create Variable.
-
Enter a name for your variable.
-
Enter your variable.
-
Click Create.
Import a variable
-
Click the Organizations icon in the navigation bar.
{{< nav-icon "orgs" >}}
-
Select an organization from the list.
-
Select the Variables tab.
-
Click the +Create Variable dropdown menu and select Import Variable.
-
In the window that appears:
- Select Upload File to drag-and-drop or select a file.
- Select Paste JSON to paste in JSON.
- Select an organization from the Destination Organization dropdown.
- Click Import JSON as Variable.