In some cases, you may have multiple data cards on your dashboard that utilize the same dataset, and you wish for these data cards to display identical values. You can achieve this by modifying the variables through the dashboard settings, eliminating the need to reconfigure each individual data card using the same dataset.
Furthermore, it's possible to apply this approach to different datasets that share common API-named variables. You can map various variables to share identical values. This article will guide you on how to effectively accomplish this task
How Set Dashboard Variables
You can set the dashboard variable from the action menu of the dashboard toolbar. This available for both draft and publish version of the dashboard.
Clicking this will bring up the configure dashboard variable form and will let you view and change the value of the data cards in the dashboard
Mapping Variable Names to a Variable Name
Variable names are mapped to with the same API name automatically. There are cases where your data set API names are different. To handle this case, you can map one or more variable names to a variable. You can set them to have the same value using the dashboard variable settings. This is available only in the draft version of the dashboard and can be accessed through the action menu of the dashboard toolbar.
Click the add variable mapping to start adding variable map.
You need to pick a variable name you would like visible to the user and then pick the variables you would like to map it to.
In this example, it will map "Date EQ" to the "date" variable. Applying this will hide the "date" variable and set the value of it whatever the value is set to "Date EQ'.
The configure dashboard variable form will also tell you which data card is using those variables.
Note that the value of the variable will be empty in the form by default if the data card have different values.