Pbir Visual Creator
by cn-dataworks
Create Power BI PBIR visuals from templates. Use when users need to add visuals (cards, charts, tables, slicers, maps) to Power BI Enhanced Report Format projects. Handles template selection, placeholder substitution, measure/column binding, and visual.json generation.
Skill Details
Repository Files
1 file in this skill directory
name: pbir-visual-creator description: Create Power BI PBIR visuals from templates. Use when users need to add visuals (cards, charts, tables, slicers, maps) to Power BI Enhanced Report Format projects. Handles template selection, placeholder substitution, measure/column binding, and visual.json generation.
PBIR Visual Creator
Create Power BI visuals for PBIR (.Report folder) projects using validated templates.
When to Use This Skill
Use when the user wants to:
- Add a new visual to a Power BI report page
- Create a card, chart, table, matrix, slicer, or map visual
- Generate visual.json files for PBIR projects
- Bind measures or columns to visuals
Available Templates
Search visual-templates/ in this plugin for available templates:
| Template | Visual Type | Use Case |
|---|---|---|
card-single-measure.json |
Card | Single KPI display |
line-chart-category-y.json |
Line Chart | Trend over category |
line-chart-multi-y.json |
Line Chart | Multiple measures on Y |
line-chart-with-series.json |
Line Chart | Category + legend series |
bar-chart-category-y.json |
Bar Chart | Horizontal bars |
bar-chart-with-series.json |
Bar Chart | Grouped/stacked bars |
clustered-column-multi-measure.json |
Column Chart | Side-by-side columns |
table-basic.json |
Table | Columnar data |
matrix-basic.json |
Matrix | Pivot table |
pie-chart.json |
Pie Chart | Part-to-whole |
scatter-bubble-chart.json |
Scatter/Bubble | X-Y relationship |
azure-map-gradient.json |
Azure Map | Filled regions |
azure-map-bubble.json |
Azure Map | Bubble markers |
slicer-between-date.json |
Slicer | Date range filter |
slicer-dropdown.json |
Slicer | Dropdown selection |
slicer-list-multiselect.json |
Slicer | Multi-select list |
image-static.json |
Image | Static logo/image |
Workflow
Step 1: Gather Requirements
Ask the user:
- Visual type - What kind of visual? (card, bar chart, line chart, etc.)
- Data bindings - Which measures/columns?
- Position - Where on the page? (or use layout defaults)
- Title - Visual title text
- Target page - Which report page folder?
Step 2: Select Template
# Find matching template
Glob: visual-templates/*.json
# Read template
Read: visual-templates/[selected-template].json
Step 3: Substitute Placeholders
Replace {{PLACEHOLDER}} values:
Common:
{{VISUAL_NAME}}- Unique identifier (e.g.,TotalSalesCard){{X}},{{Y}}- Position coordinates{{WIDTH}},{{HEIGHT}}- Dimensions{{Z}}- Z-order (typically 2000+){{TAB_ORDER}}- Keyboard navigation order{{TITLE}}- Visual title text{{FILTER_GUID}}- Generate withsecrets.token_hex(10)
Data Bindings:
{{TABLE_NAME}},{{MEASURE_NAME}}- Primary measure{{CATEGORY_TABLE}},{{CATEGORY_COLUMN}}- X-axis dimension{{SERIES_TABLE}},{{SERIES_COLUMN}}- Legend/series
Step 4: Generate visual.json
Create folder structure:
.Report/definition/pages/[PageGUID]/visuals/[VisualGUID]/visual.json
Generate GUID: VisualContainer + 8 random hex digits
Step 5: Validate Output
Before writing, verify:
- JSON is well-formed
- All placeholders replaced
- Measure/column references are correct
- Position within canvas (1600x900)
Example: Create a Card Visual
User request: "Add a Total Sales card to the Dashboard page"
Process:
- Read
visual-templates/card-single-measure.json - Replace placeholders:
{{VISUAL_NAME}} → "TotalSalesCard" {{TABLE_NAME}} → "Fact_Sales" {{MEASURE_NAME}} → "Total Sales" {{TITLE}} → "Total Sales" {{X}} → "24" {{Y}} → "80" {{WIDTH}} → "300" {{HEIGHT}} → "180" {{Z}} → "2000" {{TAB_ORDER}} → "0" {{FILTER_GUID}} → "a1b2c3d4e5f6789012ab" {{FONT_SIZE}} → "32" {{DISPLAY_UNITS}} → "1" - Write to
.Report/definition/pages/ReportSection.../visuals/VisualContainerABCD1234/visual.json
Data Binding Patterns
Measure reference:
{
"field": {
"Measure": {
"Expression": { "SourceRef": { "Entity": "TableName" } },
"Property": "Measure Name"
}
},
"queryRef": "TableName.Measure Name",
"nativeQueryRef": "Measure Name"
}
Column reference:
{
"field": {
"Column": {
"Expression": { "SourceRef": { "Entity": "TableName" } },
"Property": "column_name"
}
},
"queryRef": "TableName.column_name",
"nativeQueryRef": "column_name",
"active": true
}
Schema Version
All templates use PBIR schema version 2.4.0:
https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.4.0/schema.json
Constraints
- Templates are read-only (don't modify originals)
- Always generate unique visual GUIDs
- Validate JSON before writing
- Use
queryState/projectionsstructure (not legacy config blobs)
Related Skills
Team Composition Analysis
This skill should be used when the user asks to "plan team structure", "determine hiring needs", "design org chart", "calculate compensation", "plan equity allocation", or requests organizational design and headcount planning for a startup.
Startup Financial Modeling
This skill should be used when the user asks to "create financial projections", "build a financial model", "forecast revenue", "calculate burn rate", "estimate runway", "model cash flow", or requests 3-5 year financial planning for a startup.
Startup Metrics Framework
This skill should be used when the user asks about "key startup metrics", "SaaS metrics", "CAC and LTV", "unit economics", "burn multiple", "rule of 40", "marketplace metrics", or requests guidance on tracking and optimizing business performance metrics.
Market Sizing Analysis
This skill should be used when the user asks to "calculate TAM", "determine SAM", "estimate SOM", "size the market", "calculate market opportunity", "what's the total addressable market", or requests market sizing analysis for a startup or business opportunity.
Anndata
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.
Geopandas
Python library for working with geospatial vector data including shapefiles, GeoJSON, and GeoPackage files. Use when working with geographic data for spatial analysis, geometric operations, coordinate transformations, spatial joins, overlay operations, choropleth mapping, or any task involving reading/writing/analyzing vector geographic data. Supports PostGIS databases, interactive maps, and integration with matplotlib/folium/cartopy. Use for tasks like buffer analysis, spatial joins between dat
Market Research Reports
Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter's Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.
Plotly
Interactive scientific and statistical data visualization library for Python. Use when creating charts, plots, or visualizations including scatter plots, line charts, bar charts, heatmaps, 3D plots, geographic maps, statistical distributions, financial charts, and dashboards. Supports both quick visualizations (Plotly Express) and fine-grained customization (graph objects). Outputs interactive HTML or static images (PNG, PDF, SVG).
Excel Analysis
Analyze Excel spreadsheets, create pivot tables, generate charts, and perform data analysis. Use when analyzing Excel files, spreadsheets, tabular data, or .xlsx files.
Neurokit2
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
