agentleFS
wardawgmalviciouswardawgmalvicious/agent-config/skills/powerbi/pbir-pages/SKILL.md

pbir-pages

Skill1 starsChanged 57 days agoMITView on GitHub

Use when authoring or editing page.json / pages.json inside a Power BI PBIR report's definition/pages/ folder. Covers top-level page properties (name hex GUID vs displayName, displayOption as STRING not integer, width/height, type Default vs Tooltip, visibility AlwaysVisible vs HiddenInViewMode, verticalAlignment/horizontalAlignment), pages.json pageOrder + activePageName, canvas background vs outspace wallpaper distinction, visualInteractions NoFilter/Filter/Highlight overrides, page-level filterConfig, tooltip pages (section references the NAME guid not displayName), drillthrough pages with Column-typed filter, page folder renaming rules (folder freely renamable; page.json filename and internal name stay fixed), literal value encoding (D/L suffixes).

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add a back-button visual (actionButton) so users can return

    line 227
  2. Distinctive:

    All formatting property values are wrapped in expression literals:

    line 252

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PBIR Page JSON Reference

Page-level JSON for reports in PBIR format. Each page lives in definition/pages/<PageName>/page.json. Page order and the active page are tracked in definition/pages/pages.json.

Schema: https://developer.microsoft.com/json-schemas/fabric/item/report/definition/page/2.0.0/schema.json

Top-Level Properties

PropertyTypeNotes
namestringPage GUID identifier. Referenced from pages.json and visualTooltip.section. Do NOT change after creation
displayNamestringUser-visible name shown in page tab
displayOptionstring"FitToPage", "FitToWidth", or "ActualSize" — MUST be string, NOT integer
widthnumberPage width in pixels
heightnumberPage height in pixels
typestring"Default" or "Tooltip"
visibilitystring"AlwaysVisible" or "HiddenInViewMode"
verticalAlignmentstring"Top", "Middle" (default), "Bottom"
horizontalAlignmentstring"Left", "Center" (default), "Right"
filterConfigobjectPage-level filters (also used for drillthrough binding)
visualInteractionsarrayCross-visual interaction overrides
pageBindingobjectQ&A parameter bindings
objectsobjectPage-level formatting (background, outspace, displayArea, etc.)

Minimal Page

{
  "$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/page/2.0.0/schema.json",
  "name": "77e770be04c64c0c6938",
  "displayName": "Overview",
  "displayOption": "FitToPage",
  "width": 1280,
  "height": 720
}

Common Page Sizes

TypeWidth x Height
Default 16:9 (Fluent 2 base theme — the default for new reports)1920 x 1080
Default 16:9 (Classic 2018 / Classic 2026 base theme)1280 x 720
Large 16:91920 x 1080
Letter portrait816 x 1056
Tooltip320 x 240

The Fluent 2 base theme is GA and is the default for new reports in Desktop and the service; it bumps the new-page default to 1920x1080. Initial page in a report stays 1280x720; existing reports and existing pages don't auto-resize when switching base themes. The Theme pane (View ribbon) also surfaces aspect-ratio presets for common page sizes. See pbir-themes for base-theme switching.

pages.json

Page order and active page:

{
  "$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/pagesMetadata/1.0.0/schema.json",
  "pageOrder": ["77e770be04c64c0c6938", "da2e63ebeb2179a994f1"],
  "activePageName": "77e770be04c64c0c6938"
}

Canvas Alignment

verticalAlignment and horizontalAlignment control canvas position when the viewport differs from the canvas size. Most relevant with displayOption: "ActualSize".

Background (Canvas)

The canvas is the area where visuals sit. It is NOT the wallpaper behind it (that is outspace).

Visual hierarchy (bottom to top): outspace (wallpaper) -> background (canvas) -> visuals.

"objects": {
  "background": [{
    "properties": {
      "color":        { "solid": { "color": { "expr": { "Literal": { "Value": "'#FFFFFF'" } } } } },
      "transparency": { "expr": { "Literal": { "Value": "0D" } } }
    }
  }]
}

Transparency values: "0D" opaque, "50D" semi, "100D" fully transparent (shows wallpaper).

Wallpaper (outspace)

The area behind and around the canvas.

"objects": {
  "outspace": [{
    "properties": {
      "color": { "solid": { "color": { "expr": { "Literal": { "Value": "'#2B579A'" } } } } }
    }
  }]
}

outspacePane (Filter Pane) — NOT on page.json

outspacePane is report-level, never page-level. Do not place it in page.json. Responsibility is split:

  • Visibility and expansion state (visible, expanded) live in report.json → objects.outspacePane — see pbir-filters.
  • Styling (colors, text, backgrounds, input colors, width) lives in the custom theme at visualStyles["*"]["*"].outspacePane — see pbir-themes.

Visual Interactions

Override default cross-filtering between visuals on a page. Set on page.json:

"visualInteractions": [
  { "source": "slicer_region", "target": "chart_trend", "type": "NoFilter" }
]
typeEffect
"NoFilter"Disable cross-filter from source to target
"Filter"Filter target when source selected
"Highlight"Highlight selection (default for charts)

source and target are the name values from each visual's visual.json.

Page-Level Filters

"filterConfig": {
  "filters": [{
    "name": "filter-guid",
    "field": {
      "Column": {
        "Expression": { "SourceRef": { "Entity": "Products" } },
        "Property":   "Category"
      }
    },
    "type": "Categorical",
    "howCreated": "User"
  }]
}

Same structure as report-level filters in report.json. Slicer visuals are NOT filters — they are regular visuals bound to categorical data.

Tooltip Pages

Small hidden pages shown as rich tooltips when a visual is hovered.

Setup on page.json:

{
  "name": "tooltip_revenue_id",
  "displayName": "RevenueTooltip",
  "displayOption": "ActualSize",
  "width": 320,
  "height": 240,
  "type": "Tooltip",
  "visibility": "HiddenInViewMode"
}
  • type: "Tooltip" — marks the page
  • visibility: "HiddenInViewMode" — hides from page tabs
  • displayOption: "ActualSize" — tooltip pages don't scale
  • Common sizes: 320x240 (default), 400x120 (wide/compact)

Opt-in from a visual (in the visual's visualContainerObjects):

"visualContainerObjects": {
  "visualTooltip": [{
    "properties": {
      "show":    { "expr": { "Literal": { "Value": "true" } } },
      "type":    { "expr": { "Literal": { "Value": "'ReportPage'" } } },
      "section": { "expr": { "Literal": { "Value": "'tooltip_revenue_id'" } } }
    }
  }]
}
  • type values: "'ReportPage'" (use tooltip page), "'Default'" (auto default tooltip)
  • section — the name GUID from the tooltip page's page.json, NOT its displayName
  • Disable tooltips per visual: "show" set to "false"

visualHeaderTooltip styles the tooltip over header icons (separate from the hover tooltip) — same pattern, slightly different properties.

Drillthrough Pages

A regular page (type: "Default") with a drillthrough filter in filterConfig. Users right-click a value on another page and navigate in with the filter applied.

{
  "name": "drillthrough_customer_id",
  "displayName": "CustomerDetails",
  "displayOption": "FitToPage",
  "width": 1920,
  "height": 1080,
  "filterConfig": {
    "filters": [{
      "name": "drillthrough_filter_id",
      "field": {
        "Column": {
          "Expression": { "SourceRef": { "Entity": "Customers" } },
          "Property":   "Customer Name"
        }
      },
      "type": "Categorical",
      "howCreated": "User"
    }]
  }
}
  • Any field can be a drillthrough target. Hidden the page from tabs via visibility: "HiddenInViewMode" if it is drillthrough-only
  • Add a back-button visual (actionButton) so users can return

Page Formatting Objects

ObjectPurpose
backgroundCanvas background (color, transparency, image)
outspaceWallpaper behind the canvas
outspacePaneFilter pane state — set on report.json only (see cross-ref above)
displayAreaFormat the display area
filterCardIndividual filter card styling within filter pane
pageInformationPage metadata for export
pageRefreshPage-level automatic refresh
pageSizePage size overrides
personalizeVisualPersonalization settings

Page Folder Naming

  • PBI Desktop generates folder names as 20-char hex (e.g. 0c32c81bce347402001e/)
  • Rename freely to PascalCase (e.g. Overview/) for better diffs and readability
  • Desktop-generated folders may contain spaces — prefer letters, digits, underscores, hyphens in human-authored names
  • page.json filename and the internal name property MUST remain unchanged

Literal Value Encoding

All formatting property values are wrapped in expression literals:

TypeEncoding
StringSingle quotes inside double quotes: "'#FF0000'"
NumberInteger/decimal with D suffix: "0D", "50D", "12D"
Boolean"true" or "false"

Gotchas

IssueCauseFix
displayOption: 1 rejectedMust be a stringUse "FitToPage" / "FitToWidth" / "ActualSize"
Tooltip page not appearing on hoversection used displayName not name GUIDUse the name value from tooltip page's page.json
Background color not applyingMissing "D" suffix on transparency"0D" not "0"
Wallpaper change affects canvas insteadUsed background objectWallpaper is outspace, canvas is background
Filter pane settings ignored on pageoutspacePane placed on page.jsonMove visibility/expanded to report.json; move styling to theme
Drillthrough not offered on right-clickPage missing filter in filterConfigAdd Column-typed filter with drillthrough field
Page renamed but visual tooltips brokenFolder renamed AND name property changedOnly rename the folder — keep name GUID
Visual interactions don't matchsource/target used displayNameUse visual name (file-internal ID)
Tooltip page appears in page tabsMissing visibility: "HiddenInViewMode"Add visibility property
Canvas background image not showingImage not registered in resourcesRegister via StaticResources/RegisteredResources/

Reference

See also

  • pbip-project-structure — project file layout
  • pbir-cli — pbir pages / pbir visuals commands
  • pbir-report-workflow — layout math and workflow
  • pbir-filters — outspacePane visibility/expansion on report.json
  • pbir-themes — outspacePane theme styling

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.