Skip to main content

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 pypi Version PyPi downloads [![Codecov test coverage](https://codecov.io/gh/ /branch/master/graph/badge.svg)](https://app.codecov.io/gh/ ?branch=master)

prerequisites

  1. python and pip installed and on path
  2. git installed and on path
  3. 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.

  1. 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
  1. Clone the files from github.
git clone https://github.com/Russell-Shean/PBI_dashboard_creator
  1. 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
  1. 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
  1. Install the package. Install the package from pypi.
py -m pip install PBI_dashboard_creator
  1. Create the example dashboard. Run an example script to generate an example dashboard.
py PBI_dashboard_creator/examples/create_example_dashboard.py
  1. Open the dashboard.
    Open the dashboard to confirm everything worked.
start test_dashboard/test_dashboard.pbip
  1. 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.74.tar.gz (543.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pbi_dashboard_creator-1.0.74-py3-none-any.whl (57.3 kB view details)

Uploaded Python 3

File details

Details for the file pbi_dashboard_creator-1.0.74.tar.gz.

File metadata

  • Download URL: pbi_dashboard_creator-1.0.74.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

Hashes for pbi_dashboard_creator-1.0.74.tar.gz
Algorithm Hash digest
SHA256 96fae24e011c6b2ed72f60d6c4d06e00adde5ce0212f6f707d1171cad8f2ad98
MD5 4917a3a02e53805320020e610ba9830b
BLAKE2b-256 ec9d5be6d5652d3f50444fbd9bfb3a05b627589a63f6a114a7ba917a22fe1ddf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbi_dashboard_creator-1.0.74.tar.gz:

Publisher: python-publish.yml on Russell-Shean/PBI-dashboard-creator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pbi_dashboard_creator-1.0.74-py3-none-any.whl.

File metadata

File hashes

Hashes for pbi_dashboard_creator-1.0.74-py3-none-any.whl
Algorithm Hash digest
SHA256 747f3bcf9f52025cacfc5d0a26a323aa7e1710ab28dc3042a86fc5b7346d32ee
MD5 ccabd74ebea2f1198893eddc004cc44e
BLAKE2b-256 345c8aa5d227673a9e934b54bb7c0801b922a366fcd02c597ca374045e8de251

See more details on using hashes here.

Provenance

The following attestation bundles were made for pbi_dashboard_creator-1.0.74-py3-none-any.whl:

Publisher: python-publish.yml on Russell-Shean/PBI-dashboard-creator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page