In the GoodData Portal, variables are values assigned to individual users that dynamically impact the data they see. For example, a project administrator could define a variable that limits account managers' access to just those accounts in their region. This type of variables could serve to improve usability.
In some situations, you may need to limit the number of values some users see in their dashboard attribute filters. For example, you can filter down a list of 100 products to only the products that apply to individual users.
The following graphics shows how, once configured, attribute and variable filters are essentially indistinguishable from the point of view of the dashboard viewer. In the attribute filter, thousands of accounts are displayed, most of which are irrelevant to the user in question.
When a variable filter is used, only relevant accounts are displayed in each user's filter drop-down.
How Variables are Controlled
Variables are controlled on the report level, not the dashboard level.
In order for your dashboard variable filters to be defined by a variable, each of your reports needs to have the variable added either to the metric (see Incorporating Filtered Variables at the Metric Level) or the filter (see Incorporating Filtered Variables at the Report Level). Without the variable defined on the report level, the filter will not update the values on the dashboard.
- On a report, adding the variable filter limits the data displayed.
- On a dashboard, adding the variable filter limits the number of attribute values displayed on the filter.
Before You Start
- Make sure that your project administrator created Define Filtered Variables. for you. For more information, see
- All the reports on your dashboard have the Incorporating Filtered Variables at the Report Level and Incorporating Filtered Variables at the Metric Level. defined. For more information, see
Create a Variable Filter
- While on your dashboard in edit mode, click the Filter menu on the top, and click Attribute.
- Toggle to the Variable pane.
- Choose a filter variable that has been established by a project administrator.
- Click Add.
The filter is added to the dashboard.
Click the pencil icon that appears above the filter, and configure (select and un-select) what filter values to include in the filter.
The values that you configured will become the default ones (automatically pre-selected) for all dashboard users.
To configure the filter further, click the Gear icon.
The filter's configuration opens.
- Under Selection, determine whether users will be able to select just one value at a time or many values at once.
- (Optional) Under Arrange, rearrange the filter with respect to other dashboard objects it may be overlapping.
- Click Apply.
The filter is saved.
- Click Save.
The dashboard is saved.