Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Data Explorer: Multi-Select Parameter "Select All" return all possible options instead

In Azure Data Explorer (dashboards, accessed via the web at the URL: dataexplorer.azure.com/dashboards/ ), a multi-select parameter will return empty (isempty() == true) if the "Select All" option is picked. However, I need to know all of the options if the "select all" option is picked. Is there a way to do this?

Here is an example of my Kusto query that the multiselect parameter feeds into. You will see that the "in" filter means I need a complete list of all of the options / values of the multiselect param.

Events
| where FilteredItem in (_multiselectParameter)
| where Timestamp between(_startTime.._endTime)
| summarize event_count = count() by bin(Timestamp, make_timespan(_timeSpan))

Thanks in advance for your help!

like image 532
Doghound Avatar asked Oct 14 '25 04:10

Doghound


1 Answers

The way to write the Where clause, taking into consideration the "Select All" options is as follows:

| where FilteredItem in (_multiselectParameter) or isempty(_multiselectParameter)
like image 77
Gabil Avatar answered Oct 16 '25 23:10

Gabil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!