Skip to main content
100%

Gist ed5d1681970062ebe8088ea3fdbb896f

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

This example shows a live query log for a Power BI or Analysis Services session by displaying the most recent command timestamps and command texts. It starts with an empty table, loads prior log rows, then queries the current session’s last command data using the `MetaQuery` and `SELECT` statements against the `$SYSTEM.DISCOVER_SESSIONS` schema. The code filters out its own log entries, compares timestamps to keep only new rows since the last refresh, and appends them to the existing log. The rendering relies on Power Query’s table operations (`Table.FromRows`, `Table.SelectRows`, `Table.Combine`) rather than a visual JavaScript library.

AI-generated description

Similar vizzes