Skip to main content
100%

Gist 1ebcc44e40d3ea92b4063ad981cac31f

✓ Published0🌍 Public
HHugoberry
Last edited Mar 24, 2017
Created on Mar 24, 2017

This example shows how to extract and prepare query log data from a local Power BI Tabular model for further analysis. It demonstrates reading the most recent `msmdsrv.port.txt` file from the Power BI Desktop Analysis Services workspace folder to obtain the active port number. The code then uses the `AnalysisServices.Database` function to connect to that port, retrieves the database catalog name, and evaluates the `QueryLog` table. Finally, it renames two columns—`SESSION_LAST_COMMAND_START_TIME` and `SESSION_LAST_COMMAND`—to clean the schema for downstream use in Power Query.

AI-generated description

Similar vizzes