Quantcast
Channel: Developer topics
Viewing all 17925 articles
Browse latest View live

Power BI REST API connecting too

$
0
0

Hi Experts

 

Can we use a Rest API to consume data using a direct Query in POwer BI by connecting to a 3rd Party API. Any hints and tips and information that is availble online and the steps we need cover and video's etc..

 


Deleting Data Sources from Cloud Gateway

Create API Direct Query datasource

$
0
0
Hi,

I have got a requirement to build reports by using Optic API as a datasource.
So how can I create an API dAtasource as a direct query option.

Any inputs much appreciated.
Thank you

Need help with Angular and AppOwnsData model

$
0
0

Hello, I was tasked with embedding power bi reports in an Angular 8 web app that is being developed by my company, however, I'm having trouble making sense of what I'll actually need to acomplish my task.

 

I managed to connect our app to power bi's API using msal.js library and the userOwnsData model, but what I really need is to use a service principal to acomplish the same thing to avoid logins since future users of this app shouldn't be expected to have a power bi account. Should I use msal.js on my app to authenticate it on AAD? The sample code for service principal is totally different from msal.js and it is all written in c# which im not familiar with, besides not being familiar with it im also fairly new with angular itself so I don't even know if I should "translate" the sample code to typeScript or if I can use the sample code directly in my app.

https://api.powerbi.com/v1.0/myorg/dashboards return 403 forbidden

$
0
0
I have created an app through app-registrations (tried both Nativ/web app).
I am using v2-oauth2-client-creds-grant-flow to get the access-token for the app that I have created. 
I am able to get a valid token, but when I am trying invoke the API call to get the List of Dashboards postman is returning HTTP Error 403: Forbidden.
In Azure AD, I enabled the delegated permissions and application permissions as shown below also performed the grant-consent through admin. 
 
But when I am referring to the API https://docs.microsoft.com/en-us/rest/api/power-bi/dashboards/getdashboards, where in we will get the try-it option and there it is asking for my credentials and using that access-token I am able to get the list of dashboards working without any issues.

 

Here's what I've validated/tried:

  • The AD User we've created the app under is not the global admin as recommended.
  • The user is a power bi pro user (trial).
  • The required permissions (Windows Azure Active Directory/Power BI Service) have been granted (we've checked off all to ensure we're not missing anything).
  • We've validated/confirmed the client ID, secret key and group id many times.

Thank you in advance!

Question about using [Power BI Embedded] with [PowerApps Portal]

$
0
0

Hello Guys,

 

currently im trying to create a Portal with liquidbi. But it only shows a empty white page.

test.PNG

 

This is the Code im using for my template

{% powerbiauthentication_type:"powerbiembedded" path:"https://app.powerbi.com/groups/2b234cfe-816f-1534-9b1f-ad68fff642a3/reports/d32423b-c4c8-4d99-adb0-7c420ab3hd69/ReportSection" roles:"TestRole" %} (I changed the ID´s for this code preview) 
 
I already changed the settings in the admin centers. (with this guide)
In PowerBI Desktop I created the role TestRole and added our user.mails to this role. PowerBI -> Datasets -> Security.

How do I setup the permissions correctly for my power bi embedded?

$
0
0

I got my Portal finally working with my embedded bi report but I got a new problem.

Every anon user can read my report.

 

{% powerbi authentication_type:"powerbiembedded"" path:"https://app.powerbi.com/groups/[ID]/reports/[ID]/ReportSection" roles:"TestRole" %}

 

So why can they still see it? only people with a registered account in TestRole should be able to read it.

Not able to see the PowerBi emebed, by the ServicePrinciple token

$
0
0

Not able to use access token provided by the ServicePrincipal for the powerBi.

This is our rest call for powerBI token generetation by Azure AD
{
"client_id": "***********",
"resource ": "https://analysis.windows.net/powerbi/api",
"grant_type": "client_credentials",
"client_secret": "**********",

}

Now we got the access_token, we can use the token to do all sort of stuff from PowerBI api, we are also generating the Powerbi embed token by this, which is not working, to display the embedded powerBI

Error is

Refused to display 'https://app.powerbi.com/groups/02%%%%%%%%6569ceb38597/reports/9bc00%%%%%%b74e3cc2d60?uid=92qgw' in a frame because it set 'X-Frame-Options' to 'deny'.


How to get data from power BI using rest API?

$
0
0

Hi,

I'm trying to get data from the Power BI uring rest API, and I have read like there is no way to get the data from the Power BI service using rest API.

Please see the attached video, he is getting data from the Power BI using the rest API.

Any Idea?

 

Thanks in advance

Hosting import query gateway on a service instead of a personal computer, is it possible?

$
0
0

Hi,

 

We need to connect to Amazon RDS MySQL intances. https://docs.microsoft.com/nl-nl/power-bi/power-bi-data-sources According to this schema we cannot use direct/live query for this. Which leaves us with Import query.

 

We do not want to have to host a gateway on a personal computer 24/7 for the datarefresh we plan to do every 30 minutes. Is it possible to install the gateway on some kind of service that runs 24/7? (e.g. amazon instances or azure)

 

Kind regards

 

 

Hide graph when no data is selected

$
0
0

I have a table of data containing site locations, and a related line graph showing environmental times series data belonging to that site. When I select a row in the table, the line graph shows the related data. (perfect!)

However when no site is highlighted the graph aggregates the data and shows the sum. This is misleading and incorrect.

How do I show a blank graph when nothing is selected in the table?

Dataset {dataset_id} is not Push API dataset

$
0
0

Hello,

I'm trying to retrieve records from within a dataset/table and i'm receiving the following response:

 

{
    "error": {
        "code": "ItemNotFound",
        "message": "Dataset {dataset_id} is not Push API dataset."
    }
}

This is the GET url i'm using is:

https://api.powerbi.com/v1.0/myorg/groups/{group_id}/datasets/{dataset_id}/tables

The dataset that i'm looking to connect to is an existing dataset.  What exactly is an "Push API dataset"?  Is this a setting from within the dataset itself? I'm fariely inexperieinced in the Power BI API thus far and am looking for a bit of guidance on this prticular issue.  Any help would be greatly apprecaited. 

Custom Visual - SelectionIdBuilder Method - WithMatrixnode

$
0
0

Hi, 

 

I am working on a custom visual and using the DataViewMappings - Matrix. I am struggling to get the selectionIDs to work. 

 

My dataviewmapping is below. I am not using columns but just rows

 

"dataViewMappings": [ { "matrix": { "rows": { "for": { "in": "category" } }, "values": { "select": [ { "for": { "in": "measure" } } ] } } } ]

 

I have successfully generated the selectionId

 

var selectionId: ISelectionId = host.createSelectionIdBuilder() .withMatrixNode(child, rows.levels) .createSelectionId();

 

The data looks like this

Capture1.PNG

 

 

 

 

 

 

 

 

 

 

Now when I select the first "Carretra" in country "Germany", in my visual, the other visuals don't filter just on the "Carretera" for "Germany" but for all "Carretera"

Capture.PNG

What I would ideally like is for the following selection i.e. just "Carretera" for "Germany"

Capture2.PNG

 

 

 

 

 

 

 

When I check the selectionIDs, I get unique selectionIDs for each datapoint

 

screenshot below showing 6 datapoints, (3 countries by 2 product)

Capture3.PNG

 

 

 

Any help is much appreciated

 

Thanks

Nishant

 

 

Export Table data using Power Bi Rest API

$
0
0

Hi, I will like to know if I can only export the raw data from a visualization table using the Power Bi Rest API?

 

I have tried with different examples from this link but unfortunately I can´t get the raw data from a table https://docs.microsoft.com/en-us/rest/api/power-bi/ 

 

Any help will be more than apreciated!!!

 

how to fetch all Datasources for all Datasets

$
0
0

Hello, i am trying with the PowerShell apis but to no avail. i am looking for a way to retreive all the datasets and their underlying data sources for the whole organization. so i do not want to have to enter the DatasetID ot PowerBIDatasouce api.

 

anyhelp would be well appreciated

 

 


Report Server Custom Visual API version

$
0
0

We are limited to Power BI Report Server (on premise), and are currently on September 2019. What is the latest Custom Visuals API version that will work with this version of Report Server? Where is the best place to find the appropriate API version in the future?

 

Thanks!

Power BI Embedded Dashboard Move Tiles Around

$
0
0

Hi,

 

I dont think this is possible but thought I would ask just in case.

 

I'm trying to embed a power bi dashboard into a website and have users be able to move the visuals around as you can in the service, however it appears the only access level for dashboards you can embed with is "view", whereas the "create" and "edit" access levels seem to be reserved for power bi reports.

 

Can anyone confirm if this is the case? Ideally I would like end users to be able to move the tiles around and remove any they dont want to see, saving a separate version for themselves.

 

Thanks

is cross-filtering / cross highlighting counts as a page render in Power BI Embedded?

$
0
0

Hello,

 

I'm planning embed a power bi report into a website using Power BI Embedded solution. Our report page contains Slicers & allows Cross-filtering & Cross-highlighting to the user. I wanted to know other than the Page load & refresh,  does cross-filtering / cross highlighting also count as a page render in Power BI Embedded?

 

Thanks,

Apoorv

Power BI Embedded - getting report parameter info

$
0
0

The REST API allows parameters to be retrieved for a report which returns a MashupParameter type with the following fields:

 

  • currentValue - string - The parameter current value
  • isRequired - boolean - Is dataset parameter required
  • name - string - The parameter name
  • type - string - The parameter type

I would also like to get other information programatically. For example on a paginated report the available values, default values, whether multiple values are allowed. Could anyone please advise if this is possible?

pbiviz doesn't work

$
0
0

Hi everyone.

 

I have a pbiviz version of 2.3 installed, and recently, I got following problem. When I type "pbiviz" or any other pbiviz command in command line, I get following message:

Node Commands Syntax: node {operator} [options] [arguments] Parameters: /? or /help - Display this help message. list - List nodes or node history or the cluster listcores - List cores on the cluster view - View properties of a node online - Set nodes or node to online state offline - Set one or more nodes to the offline state For more information about HPC command-line tools, see http://go.microsoft.com/fwlink/?LinkId=120724.

 

I tried reinstalling pbiviz, different version and starting command prompt as admin, still get same error. What can be source of error?

Regards,

Yerkhan

Viewing all 17925 articles
Browse latest View live


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