Visualizing Real-Time Process Data in Power BI Using OPC Router’s REST Plug-in

8 min read

Aug 27, 2025 2:36:30 PM

Are you looking for a simple way to bring live process data into Power BI for dashboards and visualization? OPC Router’s REST plug-in provides a flexible and secure way to push data from your industrial systems to Power BI using its Streaming Dataset API.

In this blog, we’ll walk you through the steps of setting up a live connection between OPC Router and Power BI using the REST interface, so you can transform your raw data into real-time insights for your team.

While this blog is geared towards existing Router users, Even if you’re new to OPC Router, this walk through can show you what’s possible when combining live industrial data with Power BI. If you’d like to explore OPC Router further, check out our getting started videos—they’ll give you the foundation you need to begin building your own real-time dashboards.

Why Connect OPC Router to Power BI?

OPC Router is a powerful data integration platform designed for automation environments. With its wide variety of plug-ins, including OPC UA, MQTT, databases, SAP, REST, and more, it enables seamless communication between OT and IT systems.

By using the REST plug-in to send data to Power BI, you unlock:

  • Real-time visibility of your process KPIs
  • Centralized dashboards for operators, engineers, and management
  • Easy integration with your existing cloud reporting infrastructure
  • Custom alerting and decision-making support based on live data

Step 1: Set Up the Streaming Dataset in Power BI

  1. Log in to Power BI at https://app.powerbi.com.
  2. From the sidebar, select “My workspace” at the bottom.
  3. Log in to Power BI at https://app.powerbi.com. From the sidebar, select “My workspace” at the bottom.Click on “New item” and search/choose “Streaming dataset”. Click on “New item” and search/choose “Streaming dataset”
  4. Select “API” as the data source and click “Next”.Select “API” as the data source and click “Next”.
  5. Name your dataset, then define your desired data fields and types (e.g., temperature, pressure, timestamp, etc.).
  6. Enable “Historic data analysis” to allow visualization of trends over time.Enable “Historic data analysis” to allow visualization of trends over time
  7. Click "Done" to create your Streaming dataset.
    Click "Done" to create your Streaming dataset.

You’ll be presented with a Push URL and example JSON schema. Copy both — you’ll need them to configure the OPC Router.

Example Push URL: https://api.powerbi.com/beta/{workspace_id}/datasets/{dataset_id}/rows?experience=power-bi&key={your_key} 

Step 2: Prepare the Push URL for OPC Router

You’ll break the URL into components for configuration in OPC Router:

  • Base URL: https://api.powerbi.com/beta/{workspace_id}/datasets/{dataset_id}
  • Endpoint: /rows
  • Query Parameters:
    • experience = power-bi
    • key = {your_key}Query Parameters: experience = power-bi key = {your_key}

Important: The key must be URL-decoded before entering it in OPC Router. Use a free tool like urldecoder.org to decode the string.

Example decoded key:

Y7FiThHsLEM+7vbni6BSDRdgnVcdBYz9b2gTjDSnswFZkBk+ybnTiSr6Wp7wZzZf64KI4ZnxLsh48Aq2KDUwrg==

Step 3: Create the REST Connection in OPC Router

  1. Open OPC Router.
  2. Navigate to Plug-ins and select REST Client.
  3. Click the blue plus (+) icon to create a new connection.
  4. Give the connection a descriptive name.
  5. Paste the Base URL (Push URL excluding the Endpoint and Query Parameters) into the Host-URL field.
  6. Click OK to save. Paste the Base URL (Push URL excluding the Endpoint and Query Parameters) into the Host-URL field. Click OK to save.

Step 4: Build the REST Transfer Object

  1. Navigate to Transfer Objects in the right sidebar.
  2. Drag a REST Client Transfer Object from the right onto a new Connection workspace.
  3. Double-click it to open the configuration.

In the configuration:

  • URL Endpoint: /rows
  • Parameters:
    • experience = power-bi
    • key = (your decoded key)
    • Set parameter type to QueryString
  • Method: POST URL Endpoint: /rows Parameters: experience = power-bi key = (your decoded key) Set parameter type to QueryString Method: POST

Step 5: Configure the JSON Write Transfer Object

  1. Create a JSON Write Transfer Object.
  2. Double-click it to open.
  3. Select Edit on the Right and Paste the JSON schema copied from Power BI. Create a JSON Write Transfer Object. Double-click it to open. Select Edit on the Right and Paste the JSON schema copied from Power BI.
  4. Click Edit and define the structure by creating fields (e.g., temperature, timestamp).  Click the “fx” button on each value to create the fields. Click Edit and define the structure by creating fields (e.g., temperature, timestamp).  Click the “fx” button on each value to create the fields.
  5. Click OK when complete. Click OK when complete.

Step 6: Connect Data Flow in the OPC Router Workspace

Now connect your components together:

  • Connect the JSON output of the JSON Write object to the Body (Text) input of the REST object.
  • Because OPC Router is trigger-based, you’ll need to add a trigger that matches how often you want your dashboard to update. In this example, I’ve used a time trigger with a one-second interval.
  • Finally, connect any data source as input to the JSON Write object to populate your fields. Here, I’m using OPC UA tags as the data source.
    Connect the JSON output of the JSON Write object to the Body (Text) input of the REST object. Connect data sources (like OPC tags) to the JSON Write object to populate your fields.

Activate the connection by clicking the Publish icon (second from the bottom in the sidebar). Activate the connection by clicking the Publish icon (second from the bottom in the sidebar).

Step 7: Visualize Real-Time Data in Power BI

With the connection active, Power BI will begin receiving data in real time. You can now:

  • Create custom dashboards using the streaming dataset
  • Combine with historical sources for hybrid views
  • Monitor production, energy use, or machine status live

Here’s an example of a real-time dashboard built using this method: Here’s an example of a real-time dashboard built using this method:

Final Thoughts: Power BI + OPC Router for Smarter Insights 

Connecting OPC Router to Power BI using the REST plug-in is a powerful way to create real-time dashboards from your process data — without needing complex middleware or IT support. Whether you’re pulling values from OPC UA servers, databases, or MQTT devices, OPC Router gives you the tools to format and transmit data to the cloud with confidence.

Want to learn more about OPC Router and its other integration possibilities? Visit our OPC Router product page.  

Need help designing your connection or evaluating if OPC Router is a good fit? Contact our team today.

Kyle Persyn
Written by Kyle Persyn

Software Toolbox Technical Blog

We're engineers like you, so this blog focuses on "How to" appnotes, videos, tech team tips, product update announcements, user case studies, and other technical updates.  Subscribe to updates below. Your feedback is always welcomed

Subscribe to our Blog

Recent Posts

Posts by Topic

See all