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
[](https://app.codecov.io/gh/ ?branch=master)
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. All the code below should be entered in command prompt or put in a batch script.
- Create a new folder to store all the files you'll need.
:: create a new folder
mkdir automatic_PBI_dashboards_example
:: move into the new folder
cd automatic_PBI_dashboards_example
- Clone the files from github.
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.
:: 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.
:: 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. Install the package from pypi.
py -m pip install PBI_dashboard_creator
- Create the example dashboard. Run an example script to generate an example dashboard.
py PBI_dashboard_creator/examples/create_example_dashboard.py
- Open the dashboard.
Open the dashboard to confirm everything worked.
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
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.73.tar.gz.
File metadata
- Download URL: pbi_dashboard_creator-1.0.73.tar.gz
- Upload date:
- Size: 543.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2bf01b775617f1f22367fb173ee089ece02cd804c738f1e4a7a44605efa881d
|
|
| MD5 |
fa8b40ea18e2040f83d846dc04a105e2
|
|
| BLAKE2b-256 |
7418b0c4f74de94a099d31f3b31268110c1436f4df2a623de547d44f8aca4140
|
Provenance
The following attestation bundles were made for pbi_dashboard_creator-1.0.73.tar.gz:
Publisher:
python-publish.yml on Russell-Shean/PBI-dashboard-creator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pbi_dashboard_creator-1.0.73.tar.gz -
Subject digest:
f2bf01b775617f1f22367fb173ee089ece02cd804c738f1e4a7a44605efa881d - Sigstore transparency entry: 168412544
- Sigstore integration time:
-
Permalink:
Russell-Shean/PBI-dashboard-creator@4c812c6ac44ce783262c7c06e463ff64e6dc6bde -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Russell-Shean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4c812c6ac44ce783262c7c06e463ff64e6dc6bde -
Trigger Event:
push
-
Statement type:
File details
Details for the file pbi_dashboard_creator-1.0.73-py3-none-any.whl.
File metadata
- Download URL: pbi_dashboard_creator-1.0.73-py3-none-any.whl
- Upload date:
- Size: 57.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97951cfa6c4b5556104428edbcedb2b092fdeaa5258829681457f5d4934758b3
|
|
| MD5 |
9bd84162659a6f2550b9932ac3c402a5
|
|
| BLAKE2b-256 |
72829b8421cd84aabdd660461d7a6f1b62799a7839775057493c67873597f2c3
|
Provenance
The following attestation bundles were made for pbi_dashboard_creator-1.0.73-py3-none-any.whl:
Publisher:
python-publish.yml on Russell-Shean/PBI-dashboard-creator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pbi_dashboard_creator-1.0.73-py3-none-any.whl -
Subject digest:
97951cfa6c4b5556104428edbcedb2b092fdeaa5258829681457f5d4934758b3 - Sigstore transparency entry: 168412545
- Sigstore integration time:
-
Permalink:
Russell-Shean/PBI-dashboard-creator@4c812c6ac44ce783262c7c06e463ff64e6dc6bde -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Russell-Shean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4c812c6ac44ce783262c7c06e463ff64e6dc6bde -
Trigger Event:
push
-
Statement type: