KQL Query for selecting data from different table based on selection in ADX UI dashboard

Sangeetha Priya S 210 Reputation points
2023-11-22T06:45:23.24+00:00

Hi

I have data explorer dashboard which has n number of tables and each table have data from different location, but all table's schemas are same.

I am trying to create one query for charts which should fetch data from different tables based on location selection.

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
501 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wilko van de Velde 2,226 Reputation points
    2023-11-22T07:16:23.9766667+00:00

    Hi @Sangeetha Priya S ,

    This is possible by using parameters in your dashboard. I created a setup for demonstration. First, I create a parameter _tablename with all the table names that are available. In my case I added fixed values but it is also possible add the values by query.

    User's image

    The next thing to do is to add a visual with a query which uses the _tablename parameter. You need to use table() to query a dynamic table.

    table(_tablename)
    | take 20
    

    If you now hit Run there should be a result.

    Kind Regards,

    Wilko


    Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members. If you have extra questions about this answer, please click "Comment".


0 additional answers

Sort by: Most helpful