Name: PowerBiEmbeddedScratchpad
Owner: Critical Path Training
Description: A sample application for developer's learning about Power BI Embedding
Created: 2018-04-16 17:00:20.0
Updated: 2018-05-24 05:03:44.0
Pushed: 2018-05-24 05:03:43.0
Homepage: null
Size: 8854
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
PowerBiEmbeddedScratchpad is a Visual Studio project for a C# console application which demonstrates techniques for embedding Power BI reports and dashboards on a web page using the Power BI JavaScript API. You can download the PowerBiEmbeddedScratchpad project from this reposity and then open it up using Visual Studio 2017. There are instructions below which explain the steps to set up this sample application which involve creating an app workspace with reports and dashboards and then configuring the project's app.config file with the GUID-based IDs for the app workspace, dataset, report and dashboard in your Power BI environment.
PowerBiEmbeddedScratchpad is a proof of concept (POC) application that abstracts away server-side implementation details (e.g. using ASP.NET MVC vs Node.JS) so you can just examine, test and edit simple HTML pages with JavaScript code required to use specific techniques with Power BI Embedding. The reason I wrote this ample application is to teach developers how to write the JavaScript code required in specific embedding scenarios such as navigating between pages, applying bookmarks, applying custom filtering and embedding the Power BI QnA experience.
Download the project from its GitHub repo and copy the top folder to your local hard drive: https://github.com/CriticalPathTraining/PowerBiEmbeddedScratchpad/archive/master.zip
Open the PowerBiEmbeddedScratchpad sample application in Visual Studio 2017
Open app.config.
Enter the values for ID settings using the UIDs you copied into Notepad.
Open program.cs. The first method should be uncommented
Run project by pressing {F5}.
You should see a page that embeds a simple report.
Experiment by uncommenting other methods in progam.cs and examinng the JavaScript programming used to acheive various techniques.
The DailyReporterPro sample application demonstrates an application you would create for real customers. It demonstrates how to embed Power BI reports and dashboards in an ASP.NET MVC application using 3rd party embedding (ie. App Owns Data) and shows how to take advantage of advanced Power BI embedding features such as allowing users to edit existing reports and to create new reports using an existing dataset.