Note
This documentation for Azure workbooks is now located at: https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-multi-value Please do not edit this file. All up-to-date information is in the new location and documentation should only be updated there.
A multi-value parameter allows the user to set one or more arbitrary text values. Multi-value parameters are commonly used for filtering, oftentimes when a drop down control may contain too many values to be useful.
-
Start with an empty workbook in edit mode.
-
Choose Add parameters from the links within the workbook.
-
Click on the blue Add Parameter button.
-
In the new parameter pane that pops up enter:
- Parameter name:
Filter
- Parameter type:
Multi-value
- Required:
unchecked
- Get data from:
None
- Parameter name:
-
Choose 'Save' from the toolbar to create the parameter.
-
The Filter parameter will be a multivalue parameter, initially with no values:
-
the user can then add multiple values:
A multi-value parameter behaves similarly to a multi-select Drop Down parameter. As such, it is commonly used in an "in" like scenario
let computerFilter = dynamic([{Computer}]);
Heartbeat
| where array_length(computerFilter) == 0 or Computer in (computerFilter)
| summarize Heartbeats = count() by Computer
| order by Heartbeats desc
Multi-value parameter supports following field style:
- Standard: Allows a user to add or remove arbitrary text items
- Password: Allows a user to add or remove arbitrary password fields. The password values are only hidden on UI when user types. The values are still fully accessible as a param value when referred and they are stored unencrypted when workbook is saved.
You can use a query to seed the multi-value parameter with initial values. The user can then manually remove values, or add additional values. If a query is used to populate the multi-value parameter, a restore defaults button will appear on the parameter to restore back to the originally queried values.
-
Start with an empty workbook in edit mode.
-
Choose Add parameters from the links within the workbook.
-
Click on the blue Add Parameter button.
-
In the new parameter pane that pops up enter:
- Parameter name:
Filter
- Parameter type:
Multi-value
- Required:
unchecked
- Get data from:
JSON
- Parameter name:
-
In the JSON Input text block, insert this json snippet:
["apple", "banana", "carrot" ]
All of the items that are the result of the query will be shown as multi value items. (you are not limited to JSON, you can use any query provider to provide initial values, but will be limited to the first 100 results)
-
Use the blue
Run Query
button. -
Choose 'Save' from the toolbar to create the parameter.
-
The Filter parameter will be a multi-value parameter with 3 initial values
See also: