Technical Lead - Business Intelligence • Microsoft Certified PL-300 • Data Analyst • Power BI Youtube
Power BI developers can create custom visuals for charts and interactions that standard visuals do not cover, then package them as PBIVIZ files for import into reports. This approach is for developers building specialized visuals for personal, organizational, or embedded reporting. Injae Park’s YouTube Short raises the task of creating a PBIVIZ; the development workflow below explains the project and packaging steps.
A PBIVIZ file is a packaged Power BI visual containing rendering code, metadata, and resources. Its metadata identifies the visual, including its name, unique ID, version, and author details. Once imported, the visual can be used in a report like other visuals.
The visual receives data through Power BI’s data view and renders it in its own interface. Its capabilities describe data mappings and options, while its TypeScript logic handles rendering and updates. Developers can create visuals for specialized charts, indicators, maps, diagrams, or other reporting needs.
This workflow suits developers who need a visual beyond Power BI’s standard charts, as well as teams creating a reusable visual for organizational reports. The development environment described uses Visual Studio Code, Node.js and npm, TypeScript, and the Power BI visuals tools. D3.js is an optional library.
Power BI Desktop or the Power BI service can be used to test the visual. The tools generate a project structure, and its capabilities and metadata must be configured as development proceeds. An administrator’s tenant policies may affect whether custom visuals can be imported or used in an organization.
Custom visuals are executable code and can create security or privacy risks. Use visuals only from developers and sources you trust, and check organizational policies before importing one into a report.
Before distributing a visual, review its metadata, including its name, GUID, version, description, support URL, and author details. The version uses a four-part format. When updating an existing visual, retain its GUID and increase its version number.
It is a packaged Power BI visual containing the code, metadata, and resources needed to render the visual. Import the file into Power BI to use the visual in a report.
The described setup uses Visual Studio Code, Node.js, npm, TypeScript, and the Power BI visuals tools. D3.js is optional.
Run `pbiviz package` in the project to create a PBIVIZ file, then import that file into Power BI.
Custom visuals are executable code, so use only trusted developers and sources. Organizational tenant policies may also affect whether custom visuals can be imported or used.