Automatically create PowerBI dashboards using the .pbir file type
Project description
PBI-dashboard-creator
This is a python module that can be used to automatically create PowerBI dashboards using the .pbir file type
prerequisites
- python and pip installed and on path
- git installed and on path
- Power BI Desktop (You can create the dashboards without this, but not view them).
Run the example
This example assumes you are on windows.
- Create a new folder to store all the files you'll need.
In command prompt enter the following:
:: create a new folder
mkdir automatic_PBI_dashboards_example
:: move into the new folder
cd automatic_PBI_dashboards_example
- Clone the files from github.
In command prompt enter the following:
git clone https://github.com/Russell-Shean/PBI_dashboard_creator
- Activate venv.
The following is taken from this tutorial. We'll use venv to install the python package in an isolated environemnt.
In command prompt enter the following:
:: create a virtual environment
py -m venv .venv
:: activate the virtual environment
.venv\Scripts\activate
:: For extra credit, verify that venv is working
where python
- Make sure pip is installed and up-to-date.
Pip is the tool we'll use to install the package. In command prompt run the following:
:: install and/or upgrade pip
py -m pip install --upgrade pip
:: check version number (and confirm it's working)
py -m pip --version
- Install the package.
We'll install from a wheel stored in the package we cloned from github in step 2. In command prompt run the following:
py -m pip install PBI_dashboard_creator/dist/pbi_dashboard_creator-1.0.64-py3-none-any.whl
- Create the example dashboard.
We'll run an example script to generate an example dashboard. In command prompt run the following:
py PBI_dashboard_creator/examples/create_example_dashboard.py
- Open the dashboard.
Let's open the dashboard to confirm everything worked. In command prompt enter the following:
start test_dashboard/test_dashboard.pbip
- Refresh data models
After Power BI opens, you'll see a banner that looks like this:
Click Refresh now
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pbi_dashboard_creator-1.0.64.tar.gz
(473.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pbi_dashboard_creator-1.0.64.tar.gz.
File metadata
- Download URL: pbi_dashboard_creator-1.0.64.tar.gz
- Upload date:
- Size: 473.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4489c113aed9866b983b6ad505d5c8efcfe9fead1fc7a3c1b0b36de0fa879c
|
|
| MD5 |
772bfaf5647dfc3cf6d7a4371350a6b0
|
|
| BLAKE2b-256 |
2b4fe5113d0700d242b6b393d310528e7c8f311101604d95235109b1b76f1fd0
|
File details
Details for the file pbi_dashboard_creator-1.0.64-py3-none-any.whl.
File metadata
- Download URL: pbi_dashboard_creator-1.0.64-py3-none-any.whl
- Upload date:
- Size: 57.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
665702165e746c40dfe2d1e30ac530695d29b102fd751a65cfb414ab748c89e8
|
|
| MD5 |
1ff186bca9a194c27a93d017fba6d067
|
|
| BLAKE2b-256 |
53a07e5cc3d355dc91f31655daac16532d9a2678d7dd088bae3977d458db6503
|