Power BI miner app
TL;DR
Learn how to mine Power BI activity to generate usage and popularity metrics.
The Power BI miner app mines Power BI activity events to generate usage and
popularity metrics. Build it with the PowerbiMiner builder.
A miner does not create a connection or take a credential—it runs with an
existing Power BI connection and reuses that connection's own credential, so you
only supply the connection's qualifiedName.
Source extraction
- Python
Mine activity from Power BI
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.apps import PowerbiMiner
client = AtlanClient()
response = (
PowerbiMiner(client)
.connection( # (1)
qualified_name="default/powerbi/1700000000",
)
.start_date(1704067200) # (2)
.excluded_users("svc-account-1,svc-account-2") # (3)
.run(name="powerbi-prod-miner") # (4)
)
print(response.slug, response.run_id)
- Required. The exact
qualifiedNameof the existing Power BI connection to mine. Its credential is reused—no credential step is needed. - Optional. Earliest date from which to mine activity events. The Power BI API only retains the last 14 days; the default uses that full window.
- Optional. Comma-separated user IDs (typically service accounts) whose activity shouldn't count toward popularity.
- Always pass an explicit
namefor miners—a bare.run()defaults to the app id (powerbi-miner) and a second run collides.
Advanced config
- Python
Advanced miner configuration
(
PowerbiMiner(client)
.connection(qualified_name="default/powerbi/1700000000")
.advanced_config("...") # (1)
.run(name="powerbi-prod-miner")
)
- Set advanced configuration of the miner.