Analyzing fresh ADX data from Excel pivot table
Using Power Query (Known in Excel as Get & Transform), you can connect to Kusto and import data into Excel.
Data can be imported into the data model or into a table or a pivot cache.
In any case the keyword is import, which means that to see new data, you need to refresh and wait for all the data to be imported again. Typically, data in Kusto is counted in Billions of rows and cannot be brought fully into Excel memory.
In many cases you also want to see fresh data as soon as it arrives to Kusto.
In a previous article Direct Query from Excel to Azure Data Explorer (microsoft.com) I described a way to mimic Direct Query access ala Power BI in Excel.
The method used in this article that allows the user to filter the imported data using values entered into cells in the grid.
In this article I would like to describe a way to really query Kusto data in real time without importing any data and without any volume limitations.
Starting in Excel 2000, Excel had the option to connect to OLAP cubes in AS and use them as a source for Pivot tables and later also to Cube functions.
Trying to search for the earliest mention of Excel and OLAP, I saw a reference for a book
Originally these cubes were really cubes on an on-premise machine, but since these origins many other creatures have been presented to Excel as an OLAP cube.
Among these non-OLAP things who present themselves as OLAP are AS tabular models, Power Pivot models within Excel and (Spoiler alert) Power BI datasets.
They all have in common the ability to process MDX queries, which is the language Excel uses, although the native language of these sources is DAX.
Here is the proof that Excel is (almost) oblivious to the fact that these are not really cubes. While running a query , you’ll see this message in the status line.
The answer is Power BI datasets.
We can build a PBI model using DQ to Kusto, publish to the PBI service and connect Excel to the published dataset.
MDX queries generated by the Pivot code, will find their way to the Kusto backend as KQL statements that will aggregate the data as needed by the pivot and brought back to Excel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.