Quantcast
Channel: All Developer posts
Viewing all 49189 articles
Browse latest View live

Power BI Embedded changing Report

$
0
0

Hi!

We have an App which is expected to show complete reports or visuals on it. We want to avoid extra logins, so we are betting for Power BI Embedded with token authentication, but we have some doubts regarding the functionality that we want to bring.

We have a DB per customer as a source, so we are thinking of creating a workspace per each of our customers and then upload the same set of reports to each of the Workspaces but each of them pointing to his database.

Basically, what we expect is that having a Report called ReportA (the same in all workspaces) if Customer 1 opens the APP the Report A that he sees is the one that is in the Customer1 Workspace, but if the one opening the APP is Customer 2, he should see the ReportA that is the Customer 2 Workspace.

We guess it's as easy as changing the URL or the report ID on the embedding code of the APP depending on the Customer that is login but maybe there are other limitations we're not considering.

Thank you soo much for all your comments in advance!


AADSTS500011: The resource principal named http://analysis.windows.net/powerbi/api/ not found

$
0
0

Hi,

 

I have probably missed something when trying to get my acccess token. It is a server side application and I would like to use a service principal.

I tried to follow the example here, it seems easy https://community.powerbi.com/t5/Developer/How-To-Get-embed-token-using-Get-Post-only/m-p/294475#M8672 and if I construct a curl command out of it it I get my resource principal error.

curl -v -X POST --url 'https://login.microsoftonline.com/common/oauth2/token' -H "Content-Type:application/x-from-urlencoded" -d 'grant_type=password&scope=openid&client_id=[client id]&client_secret=[client secret]&resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi%2F&username=[ pbi user]&password=[password]'

The answer from the server is cryptic to me.

{"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named https://analysis.windows.net/powerbi/api/ was not found in the tenant named [tenante name]. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.\r\nTrace ID: 111949e2-4379-42e0-a703-7bed59b82800\r\nCorrelation ID: 689604f3-573c-4329-8a88-5957e1a39397\r\nTimestamp: 2020-09-02 14:09:29Z","error_codes":[500011],"timestamp":"2020-09-02 14:09:29Z","trace_id":"111949e2-4379-42e0-a703-7bed59b82800","correlation_id":"689604f3-573c-4329-8a88-5957e1a39397","error_uri":"https://login.microsoftonline.com/error?code=500011"}

 

What can be wrong and how can it be corrected?

Re: Creating new SQL Datasource for Gateway with Powershell.

$
0
0

Was this issue ever solved? I am getting a 400 bad request. 

Re: Automating Power BI Gateway administration by using Powershell

$
0
0

 Thanks for the C# code. As I understand, this is from Power BI .net SDK from here.

What is the PowerShell equivalent? How can we create a data source in Power BI gateway(s) through PowerShell? 

Thanks
Kaz 

Edit/create with app owns data

$
0
0

If we are going to use Apps owns data way to implement Power BI Embedded, it will be possible for , say, 100 customers to access the reports without any authentication.

 

Moreover it is possible not only to show the report in view mode, but also in edit mode or even to allow to create a new one. 

 

So if the edit mode is allowed and one of the customer changes and saves this report, where the report will be stored?

Will the report be overwritten and all other 99 customers will see the changed version?

 

I dont really understand the way, how the edit and create modes should be used in case of Apps owns data implementation...

Re: APP registration - API permissions

$
0
0

Hi ,

#1, Nope, I don't think these users can view all contents. If they not have admin permission, they can only view the public and the contents they get permission to access. (for personal workspace contents, admin also not has permission to view)

Power BI REST APIs 

#2, AFAIK, these operations are work on the azure side and mapping with user credentials. If users want to operate on power bi content, they will also verify the AAD credentials and power bi permissions.

Get an authentication access token 
In addition, you can also check the audit log function which will log the activity of different users. (these operations are based on his credentials, so they will also record into audit logs)

Track user activities in Power BI 

Regards,

Xiaoxin Sheng

Change color of formatting option input field on validation

$
0
0

Hi,

 

When a user enters a range (start and end values) in the formatting options for an axis, I want to be able to indicate an input error by changing the border color of the input fields. For instance: if the start value is greater than the end value, I want the end value input field to change its border color to red.

 

How can I do this is custom visuals?

Re: Change color of formatting option input field on validation

$
0
0

Dear    , 
can you please show some desired output using excel so that i can help

Regards ,
Sujit


PowerBI Report Export in csv format via Rest API

$
0
0

Hi,

PowerBI provided CSV format export API for Paginated Reports alone, not for normal reports which support only pbix, ppt, png formats.

Reference: https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile

Is there any API to export PowerBI reports in CSV format?

If not, is there any API to get the exact data present in a particular report?

Can you please help me with a solution/clarity on this since am looking for it for a long time.

Re: PowerBI Report Export in csv format via Rest API

$
0
0

 - That is only supported for paginated reports, I do not know of any way to get a CSV of a report. 

Re: PowerBI Report Export in csv format via Rest API

$
0
0

Thank you  

In that case, is there any api to retrieve direct data from a powerbi report or from a powerbi dataset ?

Not the metadata, the actual data which we have mapped to be shown in the report.

Re: PowerBI Report Export in csv format via Rest API

$
0
0

 - I was looking at the REST API and I couldn't find anything 😞

Power bi visual api, refreshHostData not working after packaging

$
0
0

Hi all,

 

Im trying to use the IVisualHost function refreshHostData.

 

In development it's working fine and dose as expected and updates my data.

 

But when i packege the visual nothing happens when refreshHostData is called.

 

Dose anyone know if there is something blocking the function from execution, if it's a bug or if there is some other way to refresh the data without refreshing the page?

 

Thanks in advands for the answers.

 

Jimmy

 

 

Re: Change color of formatting option input field on validation

$
0
0

Screen Shot 2020-09-03 at 14.45.23.png

Hello  ,

I'm not sure I can show you in Excel, but I've included a picture of the desired effect. What you are looking at are the formatting options for a custom visual. The "End" value here is lower than the "Start" value and the "End" field's border is colored red. How can I achieve this in my own visual?

MAX VALUE/MEASURE ISSUE

$
0
0

I currently have a dataset that has rows similar to the below.

1/1/2020     5

1/1/2020     5

1/2/2020     8

1/2/2020     10

 

My matrix table sums those values together as displayed below:

1/1/2020     10

1/2/2020     18

 

I have to calculate the range for what is in the matrix not the dataset.  From what I am gathering I cannot successfully tell PowerBI to find the MAX or MIN of a measure.  I need something to find the MAX and MIN within the matrix not the dataset.  If I use the below formula it will return a value of 5 not 10.  Can anyone help with this?

 

This formula will give me the first number pulling the Highest value in the actual dataset.  Is there anyway to tweak this to get the 10 that I need?

 

Measure = calculate(MAX(NUMBER),ALL(TABLE))

Re: Custom connector data refresh without gateway?

$
0
0

  Does this mean the Gateway/Power BI Service Refresh resources will be utilized for the Custom Connector Refresh? Or does the custom connector need a Gateway only for the initial handshake? We are trying to use live refresh as we get for Online data sources and would not want the data to come from our cloud source to On-Premise and then back again to the Service. Please advise.

Power BI with React using an existing workspace

$
0
0

We have successfully pulled in some Power BI dashboards via React into a simple page. We were able to do this by registering an app with Azure that we tied to a new workspace that we created. What we're trying to do now is use an existing workspace for this same purpose. The problem is we can't find any mention of the workspace id in the azure app. Is there a way to tie an azure app to an existing workspace in Power BI?

Re: Custom connector data refresh without gateway?

$
0
0

 - I can't talk specifics on that, I suggest you track down the folks at Microsoft responsible for third-party connectors, there used to be a program for it that you could enroll in.

Re: Power BI Embedded changing Report

$
0
0

Hi ,

>>Basically, what we expect is that having a Report called ReportA (the same in all workspaces) if Customer 1 opens the APP the Report A that he sees is the one that is in the Customer1 Workspace, but if the one opening the APP is Customer 2, he should see the ReportA that is the Customer 2 Workspace.

Perhaps you can take a look at RLS based on username, it can dynamically filter on the report to display corresponding contents.

RLS with UserName() 

Row-level security with Power BI Embedded 

Regards,

Xiaoxin Sheng

,Re: Power BI Embedded changing Report

$
0
0

Hi,

 

Already thought about that, but given that the data of each customer it's in a different database, each dataset will have a different connection string. The possibility of fo mixing all customer's data in an intermediate layer and using RLS is discarded for the moment.

 

Thanks for your ideas anyway!!

Viewing all 49189 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>