This post is about something new I have tried last week. The goal was to create simulated streaming data source, feed it into Power BI as a streaming dataset, create a report out of the streaming dataset, and then embed it to an web application. With proper directions provided by my teammates, I finished the implementation from end to end within 1.5 hours. I was super impressed by how awesome it is and how easy it is to implement so that I want to share those directions to you.
Main Step 1 Create simulated streaming data and push it to a Power BI as streaming dataset
- The basic steps include:
- Set up an Azure IOT hub to capture the data
- Use IOT Simulator https://www.azureiotsolutions.com/Accelerators#dashboard to simulate streaming data
- Create a Power BI App Workspace in PowerBI.com
- Set up Streaming Analytics Job to connect data coming from IOT hub to Power BI dataset
- There is a free tutorial course from EDX talks about the above steps in details. You do not have to finish all the tutorial and you can just go through the ones in green check marks as shown in below.
https://www.edx.org/course/iot-business-intelligence-for-iot-solutions
Main Step 2: Create a Power BI report using the streaming dataset
- Open Power BI Desktop
- Click on Get Data
- Choose ‘Power BI dataset’
- Choose the Power BI streaming dataset you just created from Main Step 1
- Once you connected to the streaming dataset, you can use it to create your graphs and charts.
- Lastly, click ‘Publish’ to save your PBIX file back to PowerBI.com.
Main Step 3 Embed your Power BI report to your application
- If you need to embed your report into your application, please follow this tutorial https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers
This tutorial introduced the following important topics which we have not done in the previous steps
- How to register an application in Azure Active Directory (Azure AD) which allows your application to interact with Power BI.
- It provides a sample application package from GitHub. You can just update webconfig file of the sample package on applicationID you just created, the workspaceid where your report locates, the reportid of your report, and your Power BI credential.
- Lastly, to set up automatic refresh of your streaming dataset on your application, please try the following blog
http://radacad.com/integrate-power-bi-into-your-application-part-4-refresh-data-set
Thank you,
Your friend, Annie