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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
khush19
Resolver I
Resolver I

what is difference between using API and pushing the json data in powerBI or registering through app

Hi,

 

I am new to powerBI.I need to implement Real time reports in PowerBI.

In the initial Analysis,I came across there are many ways to do it.but in our organization we want to implement via writing .net application and  I am confused between below mentioned items.

  1. We can register our app and then write code to push the data in PowerBi using Power Bi  Rest API ,something like mentioned in he link https://thstechbit.blogspot.com/2018/01/sample-app-to-push-data-to-power-bi.html .As in Push dataset we can have multiple tables,how we can do modelling in this ,as this is happening at powerBI service where we dnt have Modelling tab?
  2. We can also create dataset using 'real time streaming in Power BI'where we have 
    API option in PowerBi and create Json structure  and then create console application which will populate the data.Something like https://www.sqlshack.com/real-time-streaming-in-power-bi/  Can we use Rest API for this?

So what is the difference between both?

 

Thanks in advance

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @khush19 

 

1. If you'd like to model the dataset in the service, please use the desktop to connect : Get Data>Power Bi dataset, then publish it after modelling.

 

2. You may refer to:http://www.microsofttrends.com/2015/02/17/pushing-data-into-power-bi-preview-using-the-new-rest-api-...

 

3. When Historic data analysis is disabled (it is disabled by default) using the Streaming Dataset UI (that is the second method you indicated above), you'll create a streaming dataset . When Historic data analysis is enabled, the dataset created becomes both a streaming dataset and a push dataset. This is equivalent to using the Power BI REST APIs to create a dataset with its defaultMode set to pushStreaming. All requests to REST APIs are secured using Azure AD OAuth. For streaming datasets created using the Power BI service UI, as described in the previous paragraph, Azure AD authentication is not required.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @khush19 

 

1. If you'd like to model the dataset in the service, please use the desktop to connect : Get Data>Power Bi dataset, then publish it after modelling.

 

2. You may refer to:http://www.microsofttrends.com/2015/02/17/pushing-data-into-power-bi-preview-using-the-new-rest-api-...

 

3. When Historic data analysis is disabled (it is disabled by default) using the Streaming Dataset UI (that is the second method you indicated above), you'll create a streaming dataset . When Historic data analysis is enabled, the dataset created becomes both a streaming dataset and a push dataset. This is equivalent to using the Power BI REST APIs to create a dataset with its defaultMode set to pushStreaming. All requests to REST APIs are secured using Azure AD OAuth. For streaming datasets created using the Power BI service UI, as described in the previous paragraph, Azure AD authentication is not required.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Thanks diye,

 

Correct me if I am wrong ,to use  Power BI REST APIs we need to register through app and get secured via Azure AD authentication.So for streaming dataset created through Power BI service,we cann't use Power BI REST APIs if we are writing any console application?

 

Thanks in advance

Hi @khush19 ,

 

If you want to get the power bi embeded token, you need to register an app and then get secured via Azure AD authentication, but you just wanna use the rest API in service, just get Azure AD authentication token is enough. 

we can use the Rest API for streaming dataset.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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