Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rayd_250592
Regular Visitor

Streaming Dataset with Historical Analysis

Hi,

 

I have a streaming dataset with historical data turned on which I understands creates a streaming dataset and push dataset.

 

How can I access this Push dataset via the REST API?

 

Thank you!

10 REPLIES 10
lbendlin
Super User
Super User

access it to do what?  Push data in, or pull data out for historical analysis?

 

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

Pull the most recent item out was the plan but the streaming API doesn't match the format https://api.powerbi.com/v1.0/myorg/datasets/%7bdatasetId%7d/tables/%7btableName%7d/rows mentioned in the docs.

You can't do historical analysis with pure streaming datasets - they simply have no history.  Your streaming dataset needs to be a hybrid (push) version .

 

Why would you need to pull the most recent item out?  You just pushed it in so you should know what it is?

Based on https://community.powerbi.com/t5/Service/History-Data-Analysis-option-in-Streaming-dataset/td-p/1569..., by enabling historical data analysis, does it not become a push data set?

 

I'm pushing a value from an App to the API which works fine. The idea is to pull the mist recent value down to another instance of the app.

In Power BI Desktop you can connect to your dataset (Data source Power BI Datasets).

 

But be aware that this is extremely inefficient as you are looking at a year's worth of data just to filter that down to the latest timestamp for information that you already have.

 

Push your value from the app to the other instance of the app directly.

How can I connect to the data set via the Push REST API? I've no problems connecting via the power BI App.

 

By enabling historical data analysis, it should be a push dataset accessible via https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets but its not.

The push REST API does just that - push.

For data retrieval you need to use an XMLA client.

You are correct.  I am able to see my data tables with that API call. 

 

Is your streaming dataset in your personal workspace or in a regular workspace?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.