power-bi-visuals

Featured

Add, configure, bind data to, and bulk-manage visuals on Power BI PBIR report pages using pbi-cli. Invoke this skill whenever the user mentions "add a chart", "bar chart", "line chart", "card", "KPI", "gauge", "scatter", "table visual", "matrix", "slicer", "combo chart", "bind data", "visual type", "visual layout", "resize visuals", "bulk update visuals", "bulk delete", "visual calculations", or wants to place, move, bind, or remove any visual on a report page. Also invoke when the user asks what visual types are supported or how to connect a visual to their data model.

AI & Automation 453 stars 114 forks Updated today MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Power BI Visuals Skill Create and manage visuals on PBIR report pages. No Power BI Desktop connection is needed -- these commands operate directly on JSON files. ## Adding Visuals ```bash # Add by alias (pbi-cli resolves to the PBIR type) pbi visual add --page page_abc123 --type bar pbi visual add --page page_abc123 --type card --name "Revenue Card" # Custom position and size (pixels) pbi visual add --page page_abc123 --type scatter \ --x 50 --y 400 --width 600 --height 350 # Named visual for easy reference pbi visual add --page page_abc123 --type combo --name sales_combo ``` Each visual is created as a folder with a `visual.json` file inside the page's `visuals/` directory. The template includes the correct schema URL and queryState roles for the chosen type. ## Prerequisite: Measures Must Exist in the Semantic Model `visual bind` writes field references into the visual JSON. It does **not** create measures — it only records that a measure should exist. If the measure is missing from the TMDL, every visual bound to it will show an error in Desktop. **Before binding any visual to a measure, verify the measure exists:** ```bash # Option A: create it via pbi-cli (requires pbi connect) pbi connect pbi measure create "Total Revenue" -e "SUM(Fact_Sales[Total_Revenue])" -t Fact_Sales # Option B: check existing measures in the TMDL file directly # Look for `measure '...' =` lines in SemanticModel/definition/tables/*.tmdl ``` **After adding measures directly to a TM...

Details

Author
MinaSaad1
Repository
MinaSaad1/pbi-cli
Created
5 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category