Create a Set Parameter Data Action to Pass Column Values

You can create a Set Parameter data action when you want to update a parameter with values from the selected data points on a canvas when the data action is invoked.

For example, a consumer can select a data point in a bar graph, and invoke a data action from the tooltip toolbar. When they do this for a Set Parameter data action, they set the values for the parameter wherever it's used on the canvas

To use a Set Parameter data action for this purpose, you need to set the Requires Data option to On. This means the data action requires data and you can anchor the data action to a column and specify the values to pass.

Before you begin, you need to create a parameter. Follow the steps in Create a Parameter and don’t assign an initial value.

  1. On your home page, hover over a workbook, click Actions, and select Open.
  2. In the Data panel, click Actions Data Actions icon.
  3. In the Actions pane, click Create Action.
  4. In the Name field, give your data action a meaningful name.
  5. In the Type field, select Set Parameter.
  6. In the Requires Data field, make sure it's set to On.
  7. In the Anchor To row, select a column to associate with the data action.
  8. In the Parameter row, click None, then select your parameter.
  9. In the Pass Values row, select Column. Then in the Column row, select the corresponding column from your dataset.
  10. Click Create.