this is part of my master's thesis at Daimler Financial Services AG
NOTE: NPM is blocked by the firewall, as a workaround just use the guest WIFI.
- Git - Installation guide.
- Node.js - Download page.
- NPM - comes with node.
- OpenSSL
- Enable "Enable developer visual for testing" option in Power BI services (link. Follow this link for detailed steps.
Visual Studio Code OR Notepad++ to edit the code files
Clone to your working directory:
- Download
Win64 OpenSSL v1.1.1c Lightfrom Download - Add as Environment Variable
- In Windows Search, enter
Edit environment variables for your account - Select the
Pathvariable and clickedit - Add the path to the OpenSSL
bindirectory to the end of theVariable value. Make sure there is a semicolon before, e.g.;C:\OpenSSL-Win64\bin
- In Windows Search, enter
- Verify it works by running
opensslin your command prompt (cmd)
- Download
- Install
- Make sure it is installed by running
npm -vin command prompt (cmd)
For detailed guide, see the Microsoft documentation.
IMPORTANT: For the first two steps you need to be in guest wifi
- Run
npm install - Run
npm install powerbi-visuals-tools -g - Run
pbiviz --install-cert
- Create a new visual
pbiviz new {name} - Make sure to install all packages
$ npm install
To change the api endpoint, go to settings.ts and update the endpoint accordingly.
- Run
npm run startorpbiviz startto start live compiler to start a local server to which Power BI Services will connect - Open Power BI Services and open a Report that you can edit
- Select the development visual and drag it onto the canvas
- Refresh the visual to see your live development
- In case it does not work see Can't contact visual server below
Use package to import the custom visual into Power BI desktop.
- Run
pbiviz packageto start the package process. - If the process was successful the final package will be the
/distdirectory. - Import the custom visual into Power BI desktop.
- Run
pbiviz start - Open
https://localhost:8080/assets/statusin Google Chrome - Open Advanced
- Click
Proceed to localhost (unsafe) - Go back to the report with your debug visual
- Reload visual code