This repository was created to address the need for updated custom visuals in Power BI. Microsoft's current selection of custom visuals seems to be outdated, and the services used in these visuals do not match with the current version of Power BI services. In addition, the official Power BI documentation is not always detailed, which can make developing your own custom visuals challenging.
One specific issue encountered was that creating formatting groups is not possible with the formatting model utils, despite this being the recommended approach by Microsoft. To address this, I integrated a solution from this pull request into my custom visual. Thanks to liprec, it is now possible to use the formatting model utils with groups as intended. You can find more information on this here.
05.09.2023
- Added Field so that vertical lines based on Input can be drawn
- Added Custom Settings to adjust coloring, width and linestyle of the vertical line
- Also Added show label options (JSON and true to all or false to all)
- Crossfiltering
- Various formatting options to style the chart to your needs
- Multilanguage support (English, German, French, Spanish, Italian)
To evaluate the capabilities of this custom visual, check out the video file at /demo/demo.mp4
.
demo.mp4
Version 1.0 - Initial Commit
Enable Drillthrough
- Download the
PowerBI_Histogram_{version}.pbiviz
file. - Open Power BI Desktop.
- In the Home tab, look for the Visualizations pane. At the bottom, you will find an ellipsis (...) button.
- Click the ellipsis (...) button to open the menu.
- Select the Import from file option.
- Browse to the location where your
.pbiviz
file is saved. - Click the
.pbiviz
file you want to import and select Open. - A prompt will appear asking to import the file. Click Import.
- After the visualization is successfully imported, it will appear in the Visualizations pane and you can use it like any other visualization.
To see how the visual can be used, check out the video file at /demo/usage.mp4
.
usage.mp4
- Install
pbiviz
by runningnpm install -g powerbi-visuals-tools
. - Start a development server by running
npm run start
. - Go to Power BI service (app.powerbi.com).
- Navigate to your report (you might need to create a new one or edit an existing one).
- In the Visualizations pane, you will find an icon for the Developer visual. It's the icon with the "< >" symbol. If you don't see it, you might need to enable it in the settings. You can do this by going to File > Options and settings > Options > Preview features and then enable the Developer visual for testing option.
- Add the Developer visual to your report.
- If your visual project is running (you've started it with
pbiviz start
), your visual will render in the Developer visual placeholder.
This project depends on several libraries, such as d3
, powerbi-models
, powerbi-visuals-api
, and powerbi-visuals-utils-formattingutils
, as well as the great work of liprec in this pull request. All dependencies are listed in the package.json
file.
For support, please open an issue on GitHub. Thank you.
Contributions are welcomed in the form of pull requests or translations into different languages.
For more details about the implementation of this custom visual, refer to the pbiviz.json
and package.json
files.