90le/microsoft-excel-bi-agent/mdx-cubevalue-extraction
Claude Code and agent skill by 90le/microsoft-excel-bi-agent
- community
Checking that the SKILL.md file is still in the repository.
Use when Excel work involves CUBEVALUE, CUBEMEMBER, CUBESET, MDX measures, dimensions, hierarchies, members, ThisWorkbookDataModel, or report-cell extraction.
Install
npx vskill@latest install 90le/microsoft-excel-bi-agent/mdx-cubevalue-extractionSKILL.md
The same SKILL.md was published earlier as 90le/microsoft-excel-bi-agent/mdx-cubevalue-extraction.
MDX CUBEVALUE Extraction
Core Rule
Treat Excel CUBE formulas as the report layer over a model. Confirm the measure and member paths before changing formulas.
Workflow
- Identify connection name, usually
ThisWorkbookDataModel. - Run
tools/inspect_excel_bi_workbook.py <workbook> --markdownfrom the plugin root when a workbook file is available. - If the workbook uses Power Pivot/Data Model measures, generate a model report with
tools/build_excel_bi_model_report.pyortools/invoke_excel_bi_com.sh model-reporton Windows Git Bash. - Generate a CUBE dependency report with
tools/build_cube_dependency_report.pywhen formulas must be traced by sheet, cell, measure, member, or helper cell. - Run
tools/analyze_measure_rename_impact.pybefore renaming or deleting model measures used by report-layer CUBE formulas. - Run
tools/build_measure_rename_rewrite_plan.pywhen a measure rename needs a reviewable list of report-layer[Measures].[...]replacements; for measure deletion, block direct and downstream helper-cell references for manual review. - Use
tools/create_cube_formula_fixture.pyonly for parser/report smoke tests when no safe workbook fixture is available; it does not contain a live model. - When a real ADOMD/MSOLAP endpoint connection string is available, use
tools/test_excel_adomd_query.ps1to validate MDX query behavior outside the worksheet formula layer. - Identify measure, dimension, hierarchy, and member references.
- Determine whether formulas should use direct MDX strings or helper
CUBEMEMBERcells. - Build formulas from stable cell references where the report is parameterized.
- Validate returned values,
#N/A, and#GETTING_DATAbehavior in Excel.
Reference Selection
Read:
references/cube-formulas.mdfor formula templates.references/cube-dependency-report.mdfor report-layer dependency tracing and diagnostic flags.references/mdx-member-paths.mdfor member path patterns.references/official-links.mdfor Microsoft references.
Common Issues
- Wrong hierarchy or member unique name.
- Measure exists in DAX but is referenced with the wrong MDX measure path.
- Report formula references stale helper cells.
- Data Model not refreshed.
#GETTING_DATApersists because the model/query has not completed.
Cross-Platform Boundary
CUBE formulas can be generated anywhere. Actual evaluation against ThisWorkbookDataModel requires Excel.
Scripts
tools/inspect_excel_bi_workbook.py <workbook> [--markdown] [--out-json <path>]
scans OpenXML workbook structure for CUBE formulas, workbook connections, pivot caches, tables, VBA parts, Power Pivot-like parts, and Power Query-like parts. Use this before changing report formulas.
tools/build_excel_bi_model_report.py --model-json <path> [--openxml-json <path>] [--out-md <path>] [--out-json <path>]
maps scanned CUBE formula measure references back to exported Data Model measures and flags missing or unused references.
tools/build_cube_dependency_report.py --openxml-json <path> [--model-json <path>] [--out-md <path>] [--out-json <path>] [--out-mermaid <path>]
builds a report-layer dependency graph by sheet, cell, measure, member reference, and helper cell reference. Measure/member parsing supports MDX escaped closing brackets such as ]] inside bracket identifiers.
tools/analyze_measure_rename_impact.py --model-json <path> --openxml-json <path> --rename "Old=New" [--delete <measure>] [--out-json <path>] [--out-md <path>]
reports which report-layer CUBE formulas and DAX measures reference a measure planned for rename or deletion, including escaped MDX measure names.
tools/build_measure_rename_rewrite_plan.py --model-json <path> --openxml-json <path> --rename "Old=New" [--delete <measure>] [--out-json <path>] [--out-md <path>] [--fail-on-manual-review]
builds a reviewable formula replacement plan for DAX dependencies and report-layer CUBE formulas, including escaped MDX measure identifiers. It keeps dynamic period/member helper references visible and marks CUBE formulas that depend on rewritten measure helper cells. It does not edit the workbook or evaluate formulas. Delete operations are manual-review only, including formulas that depend on a deleted-measure helper cell.
tools/create_cube_formula_fixture.py --workbook <path> [--model-json <path>]
creates a generic .xlsx containing structural CUBEMEMBER and CUBEVALUE formulas plus an optional known-measure JSON file for dependency-report smoke tests. This validates parsing and diagnostics only, not Excel calculation.
tools/test_excel_adomd_query.ps1 [-ProbeOnly] [-ConnectionString <text>] [-Mdx <text>|-MdxPath <path>] [-OutJson <path>]
validates ADOMD COM activation or runs an explicit endpoint MDX query. This is for MSOLAP/ADOMD endpoints, not for directly evaluating in-workbook CUBEVALUE formulas.
tools/invoke_excel_bi_com.sh model-report -w <workbook> [--include-columns] [--out-md <path>] [--out-json <path>]
runs the Windows Excel COM Data Model export plus CUBE formula scan from Git Bash/MSYS/Cygwin.
tools/invoke_excel_bi_com.sh cube-report -w <workbook> [--include-model] [--out-md <path>] [--out-json <path>] [--out-mermaid <path>]
runs OpenXML CUBE scanning plus optional Data Model measure export from Windows Git Bash/MSYS/Cygwin.
tools/invoke_excel_bi_com.sh adomd-query [--probe-only] [--connection-string <text>] [--mdx <text>|--mdx-file <path>] [--out-json <path>]
runs ADOMD probing or endpoint query validation from Windows Git Bash/MSYS/Cygwin.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mdx-cubevalue-extraction/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/90le/microsoft-excel-bi-agent/mdx-cubevalue-extraction)