Showing posts with label Real-Time. Show all posts
Showing posts with label Real-Time. Show all posts

Tuesday, February 4, 2020

What is the different between Push and Stream dataset in Power BI

It’s important to understand the types of real-time datasets that are designed to display in tiles and dashboards, and how those datasets differ.

There are three types of real-time data sets

  • Push dataset

  • Stream dataset

  • PubNub dataset

Push dataset

With a push data set, data is pushed into Power BI service. When the dataset is created, the Power BI service automatically creates a new database in the service to store the data. Since there is an underlying database that continues to store the data as it comes in, reports can be created with the data. These reports and their visuals are just like any other report visuals, which means you can use all of Power BI’s report building features to create visuals, including Power BI visuals, data alerts, pinned dashboard tiles, and more.

On that dashboard, visuals update in real-time whenever the data is updated. Within the service, the database is triggering a tile refresh every time new data is received.

Streaming dataset

With a stream dataset, data is also pushed into the Power BI service, with an important difference: Power BI only stores the data into a temporary cache, which quickly expires. The temporary case is only used to display visuals, which have some transient sense of history, such a line chart has a time window of one hour.

With a stream dataset, there is no underlying database, so you cannot build report visuals using the data that flows in from the stream. As such, you cannot make use of report functionality such as filtering, Power BI visuals, and other report functions.

The only way to visualize a streaming dataset is to add a tile and use the streaming dataset as a custom streaming data source. The custom streaming tiles that are based on a streaming dataset are optimized for quickly real-time data.  There is little latency between when the data is pushed into the Power BI service and when the visual is updated, since there’s no need for the data to be entered into read from a database.

In practice, streaming datasets and their accompanying streaming visuals are best used in situations when it is critical to minimize the latency between when data is pushed and when it is visualized. In addition, it’s best practice to have the data pushed in a format that can be visualized as-is, without any additional aggregation. Examples of data that’s ready as-is include temperature, and pre-calculated averages.

PubNub streaming dataset

PubNub is a Realtime Communication Platform and realtime infrastructure-as-a-service (IaaS) company based in San Francisco, California. With a PubNub streaming dataset, the Power BI web client uses the PubNub SDK to read existing PubNeb data streams. 

Streaming dataset matrix

Pushing data to datasets

There are three primary ways you can push data into a dataset:

  • Using the Power BI REST APIs

  • Using the Streaming Dataset UI

  • Using Azure Stream Analytics

 

Choose API and define a dataset and define data value from stream. Historical data analysis can be enabled and disabled.

With Historical you can see Create report option is available, and the other one not


As I said previously Stream Data with Historical, allow you to create a report same as other source data.

 

Created a dashboard and add a tile

The add an existing Stream data source and choose visualization type 

Phone view

Further read:

https://docs.microsoft.com/en-us/power-bi/connect-data/service-real-time-streaming

Cheers
Uma

Wednesday, May 10, 2017

How to setup a Real-Time data analyze using Azure Stream Analytics and PowerBI

These days’ demand is high for Real-Time data analytics and can easily implement the system using cloud technologies. Real-time analytics is the use of, or the capacity to use, data and related resources as soon as the data enters the system.
Few well-known applications of real-time analytics:
  • Real-time credit card fraud detection  
  • CRM real-time analytics can provide up-to-the-minute information about an enterprise's customers and present it so that better and quicker business decisions.
  • Traffic detection
  • Wind speed
In this post, using a real-time feed from Twitter and Azure Cloud technologies.
You can find Azure Event Hub and Azure Stream Analytics under Internet Of Things marketplace category.
Step1: Create an Azure Event Hubs
Azure Event Hubs is a highly scalable publish-subscribe service that can invest millions of events per second and stream them into multiple applications. This lets you process and analyses the massive amounts of data produced by your connected devices and applications.
Use Event Hubs to:
  • Log millions of events per second in near real time.
  • Connect devices using flexible authorization and throttling.
  • Use time-based event buffering.
  • Get a managed service with elastic scale.
  • Reach a broad set of platforms using native client libraries.
  • Pluggable adapters for other cloud services.
Step2: Create Azure Stream Analytics
Azure Stream Analytics is a fully managed, cost-effective real-time event processing engine that helps to unlock deep insights from data. Stream Analytics makes it easy to set up real-time analytic computations on data streaming from devices, sensors, websites, social media, applications, infrastructure systems, and more.
With a few clicks in the Azure portal, you can author a Stream Analytics job specifying the input source of the streaming data, the output sink for the results of your job, and a data transformation expressed in a SQL-like language. You can monitor and adjust the scale/speed of your job in the Azure portal to scale from a few kilobytes to a gigabyte or more of events processed per second.
Stream Analytics leverages years of Microsoft Research work in developing highly tuned streaming engines for time-sensitive processing, as well as language integrations for intuitive specifications of such.
In this case Power BI used as stored data.

Used query:
SELECT Topic,count(*) AS Count, Avg(SentimentScore) AS AvgSentiment, System.Timestamp AS Insert_Time
FROM [tweets-input] TIMESTAMP BY CreatedAt
GROUP BY TumblingWindow(second,5), Topic
Step3: Feed real-time data to Event Hub
In this case, Twitter WPF Client used as real-time data feeder. To use this, you should create a twitter app and access token key for that.
You can create apps https://apps.twitter.com
Step4: Crete a Dashboard using real-time data
Once you start your Azure Stream Analytics, you will find data source will be available in Powerbi.com

Cheers!
Uma