Code Monkey home page Code Monkey logo

Comments (1)

gardnerjr avatar gardnerjr commented on May 22, 2024

when a multivalue param has no selected items, it has no rendered value (it is an empty string)

see https://github.com/microsoft/Application-Insights-Workbooks/blob/master/Documentation/Parameters/DropDown.md#special-casing-all

for some examples here, the normal case is to do something like this:

let selection = dynamic([{Selection}]);
SomeQuery 
| where array_length(selection) == 0  // handles no selection being treated as all
    or "*" in (selection)  // handles special case of all=* handled as all
    or  SomeField in (selection) // handles specific selected value matches

converting the selected value into a database array will work with no value there, it ends up being resolved as dynamic([]) which is a valid empty array.

if you're using ADX or Logs, you can do this directly , because they support let. If you're using ARG, where let isn't supported, you'd unfortunately have to possibly do that dynamic([{Selection}] multiple times inside the query text instead.

from application-insights-workbooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.