Agent skill · Audited from source
Refresh Semantic Model
skill · data-goblin/power-bi-agentic-developmentGPL-3.0 licenceAudited 13 Oct 2026 · source b8d9b0f3c97a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit b8d9b0f3c97a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Automatically invoke this skill whenever the user asks to refresh a semantic model or a dataset. Can also be used to manage, optimize, troubleshoot, or configure a refresh or a refresh schedule.
Cite
Cite this page
ModelsAtlas. “Refresh Semantic Model (data-goblin/power-bi-agentic-development)”. Retrieved 13 Oct 2026. https://modelsatlas.com/skills/data-goblin/refresh-semantic-model
Trust audit
Audit 0.4.1 · source read 13 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha b8d9b0f3c97a · 13 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherdata-goblin GitHub userOwner of the repository this skill is read from
- Source folderdata-goblin/power-bi-agentic-development/plugins/semantic-models/skills/refresh-semantic-modelThe exact folder we audited
- LicenceGPL-3.0As the repository states it
- Commit pinned for this verdictb8d9b0f3c97aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Automatically invoke this skill whenever the user asks to refresh a semantic model or a dataset. Can also be used to manage, optimize, troubleshoot, or configure a refresh or a refresh schedule.
---
name: refresh-semantic-model
description: Automatically invoke this skill whenever the user asks to refresh a semantic model or a dataset. Can also be used to manage, optimize, troubleshoot, or configure a refresh or a refresh schedule.
---
# Refreshing Semantic Models
Trigger, monitor, validate, and troubleshoot semantic model refreshes via the Power BI Enhanced Refresh REST API and Fabric CLI.
## Core Concepts
A semantic model refresh reloads data from upstream sources and/or recalculates dependent objects (calculated columns, calculated tables, measures). The scope can be the entire model, specific tables, or individual partitions.
Six refresh types are available via the REST API; a seventh (`add`) is TMSL-only:
| Type | Reloads Data | Recalculates | Primary Use Case | API |
|---------------|:------------:|:------------:|--------------------------------------|:----:|
| `full` | Yes | Yes | Complete reload from scratch | REST |
| `automatic` | Conditional | Conditional | Smart refresh; process only if needed| REST |
| `dataOnly` | Yes | No* | Reload data; clear dependents | REST |
| `calculate` | No | Yes | Recalculate without reloading data | REST |
| `clearValues` | No | No | Empty data from objects | REST |
| `defragment` | No | No | Clean up column dictionaries | REST |
| `add` | Append | Yes | Append rows to a partition | TMSL |
*`dataOnly` clears dependent objects (calculated columns, calculated tables) but does not recalculate them. Follow with a `calculate` refresh to restore them.
For detailed descriptions, behavior with incremental refresh policies, commit modes, and parallelism options, consult **`references/refresh-types.md`**.
## Refresh Workflow
### Step 1: Resolve IDs
Extract the workspace and model GUIDs needed for API calls:
```bash
WS_ID=$(fab get "WorkspaceName.Workspace" -q "id" | tr -d '"')
MODEL_ID=$(fab get "WorkspaceName.Workspace/ModelName.SemanticModel" -q "id" | tr -d '"')
```
### Step 2: Query Baseline Data (Pre-Refresh Validation)
Before triggering the refresh, capture a baseline snapshot to later verify that data actually changed. Execute a DAX query against the model to get current row counts or max dates:
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/executeQueries" \
-X post -i '{
"queries": [{"query": "EVALUATE ROW(\"RowCount\", COUNTROWS(FactSales), \"MaxDate\", MAX(FactSales[OrderDate]))"}],
"serializerSettings": {"includeNulls": true}
}'
```
Record the output. This baseline is compared after refresh to confirm new data arrived.
### Step 3: Trigger the Refresh
**Full model refresh (simplest):**
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes" \
-X post -i '{"type":"full"}'
```
**Refresh specific tables:**
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes" \
-X post -i '{
"type": "full",
"objects": [{"table": "FactSales"}, {"table": "DimProduct"}]
}'
```
**Refresh specific partitions:**
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes" \
-X post -i '{
"type": "full",
"objects": [
{"table": "FactSales", "partition": "FactSales_2024"},
{"table": "FactSales", "partition": "FactSales_2023"}
]
}'
```
**Data-only refresh (skip recalculation):**
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes" \
-X post -i '{"type":"dataOnly","objects":[{"table":"FactSales"}]}'
```
**Calculate only (no data reload):**
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes" \
-X post -i '{"type":"calculate"}'
```
**Clear values from a table:**
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes" \
-X post -i '{"type":"clearValues","objects":[{"table":"StagingTable"}]}'
```
For the script-based approach with CLI arguments, use **`scripts/refresh_model.py`**.
### Step 4: Monitor Status
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes?\$top=1"
```
Status values: `Unknown`, `InProgress`, `Completed`, `Failed`, `Disabled`, `Cancelled`
### Step 5: Post-Refresh Validation
After the refresh completes, re-run the same DAX query from Step 2 and compare:
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/executeQueries" \
-X post -i '{
"queries": [{"query": "EVALUATE ROW(\"RowCount\", COUNTROWS(FactSales), \"MaxDate\", MAX(FactSales[OrderDate]))"}],
"serializerSettings": {"includeNulls": true}
}'
```
**If data has not changed** after a successful refresh:
- The upstream data source has not been updated
- The ETL pipeline (Fabric pipeline, notebook, Data Factory, or other orchestration) needs to run first
- Check the lakehouse/warehouse/SQL database to verify fresh data exists
- For Fabric lakehouses: run `fab run "Workspace.Workspace/Pipeline.DataPipeline"` or trigger the notebook
- The refresh only pulls what the source provides; if the source is stale, the refresh will succeed but show no new data
### Step 6: Cancel (if needed)
To cancel an in-progress enhanced refresh, first retrieve the `requestId` from the refresh history:
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes?\$top=1"
```
The response includes a `requestId` field. Use it to cancel:
```bash
fab api -A powerbi "groups/$WS_ID/datasets/$MODEL_ID/refreshes/<requestId>" \
-X delete
```
Only works for refreshes triggered via the Enhanced API (not scheduled or portal refreshes).
## Using the Refresh Script
The **`scripts/refresh_model.py`** script wraps the Enhanced Refresh API with CLI arguments:
```bash
# Full refresh
uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID
# Refresh specific tables
uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID --tables Sales,Calendar
# Refresh specific partitionsExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit b8d9b0f
uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID --tables Sales,Calendar uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID --partitions Sales:Sales_2024 uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID -t dataOnly --tables FactSales uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID -t calculate uv run scripts/refresh_model.py -w $WS_ID -m $MODEL_ID --commit partialBatch --parallelism 4
git clone https://github.com/data-goblin/power-bi-agentic-development git -C power-bi-agentic-development checkout b8d9b0f3c97a
Commands as the repository documents them: shown, never run by us. Our verdict covers commit b8d9b0f3c97a only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
b8d9b0f3c97a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/data-goblin/refresh-semantic-model/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All data & analysis skills →data-goblin/power-bi-agentic-development
Automatically invoke this skill whenever the user asks about Fabric tenant settings or Power BI tenant settings or auditing tenant settings. You can use this skill if the user mentions "Fabric administration".
data-goblin/power-bi-agentic-development
Interactive BPA rule generation for Power BI semantic models; guided discovery, model investigation, and expert rule authoring. Automatically invoke when the user mentions "BPA rule", "Best Practice Analyzer", or asks…
data-goblin/power-bi-agentic-development
Writing and executing C# scripts and macros against Power BI semantic models using Tabular Editor 2/3. Automatically invoke when the user mentions "C# script", "Tabular Editor script", "TOM scripting",…
data-goblin/power-bi-agentic-development
TOM and ADOMD.NET guidance via PowerShell for connecting to Power BI Desktop's local Analysis Services instance. Covers model enumeration, DAX queries, metadata modification, annotations, calendar definitions, field…
data-goblin/power-bi-agentic-development
Step-by-step workflow for creating complete Power BI reports from scratch using pbir CLI. Covers model discovery, report creation, page layout, theme setup, visual placement, field binding, filtering, formatting,…
data-goblin/power-bi-agentic-development
DAX performance optimization for semantic models. Automatically invoke when the user asks to "optimize DAX", "fix slow DAX", "DAX performance", "tune a measure", "debug a measure", "DAX anti-patterns", or mentions slow…
Add this badge to your README
[](https://modelsatlas.com/skills/data-goblin/refresh-semantic-model/)
<a href="https://modelsatlas.com/skills/data-goblin/refresh-semantic-model/"><img src="https://modelsatlas.com/skills/data-goblin/refresh-semantic-model/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Refresh Semantic Model
What does the Refresh Semantic Model skill do?
Is Refresh Semantic Model safe to install?
What can Refresh Semantic Model access on my machine?
How current is this page?
Sources
- github.com/data-goblin/power-bi-agentic-development/tree/main/pl — the audited source at commit b8d9b0f3c97a and every finding aboveObserved · 13 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Refresh Semantic Model skill do?
- Is Refresh Semantic Model safe to install?
- What can Refresh Semantic Model access on my machine?