Well, I think you would have to test that, probably by compiling the example pbiviz project. Or perhaps you can get one somewhere. Perhaps someone else has done this but I have not. Best I can offer is that I feel like they should work, but Microsoft may not allow things to run in the Service/Embedded that haven't at least been through the initial certification process of adding them to the gallery. But somehow I doubt that is the case. Would be interested to know the outcome though.
Re: Uncertified custom visual in embedded?
Re: custom visual enumeration issues
thanks
finally I'm create dynamic color picker as much as fields values selected, and strore in dataview using selector metadata.
How to rename a dataset using the powerbi rest api's? Is this even possible?
I need the ability to rename a dataset using the powerbi rest api's. I realize you can rename a dataset manually thru the web interface (app.powerbi.com), but I am not seeing this functionality thru the api. The powerbi rest api has no patch or update command for this. I am referencing the documents at https://docs.microsoft.com/en-us/rest/api/power-bi/datasets
Does anyone know if this is possible? Thanks.
GenerateTokenInGroupAsync method returned Operation returned an invalid status code 'BadRequest'
We are using the PowerBI embed feature to embed PowerBI reports in our MVC .Net application. It works for all kind of reports excepts for Paginated reports. For paginated reports when we try to generate a token using GenerateTokenInGroupAsync method, it returns Operation returned an invalid status code 'BadRequest' error.
We are using the following piece of code to generate token, are we missing anything here for Paginated reports?
---------------------------------------------------------------------------------------------------------------------------
GenerateTokenRequest generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");
var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(WorkspaceID, report.Id, generateTokenRequestParameters);
-----------------------------------------------------------------------------------------------------------------------------
GenerateTokenRequest returns Operation returned an invalid status code 'BadRequest' error
We are using the PowerBI embed feature to embed PowerBI reports in our MVC .Net application. It works for all kind of reports excepts for Paginated reports. For paginated reports when we try to generate a token using GenerateTokenInGroupAsync method, it returns Operation returned an invalid status code 'BadRequest' error.
We are using the following piece of code to generate token, are we missing anything here for Paginated reports?
---------------------------------------------------------------------------------------------------------------------------
GenerateTokenRequest generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");
var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(WorkspaceID, report.Id, generateTokenRequestParameters);
Azure Aanalysis tabular model better or PowerBI Data model?
Hello All,
It would be really helpful if any of you could share your experience or information in building tabular model in Azure Analysis Services and consuming it in PowerBI reports, is better option or building entire model in PowerBI and consuming it in PowerBI reports ?
We are currently facing this dilemma and exploring the advantages and disadvantage in both the approach and which path to proceed. As business requirement we need to develop quit a few reports by creating common data semantic model either in PowerBI or Azure Analysis services which is consumed by all the reports in PowerBI.
1) We would like to give Business users with most of the PowerBI features like Q&A features and feature, correct me me if i'm wrong, what i understand is Q&A feature is not possible in direct query mode to (Azure analysis services) is it Correct?
2) If we build the model in PowerBI our datamodels are quite big greater than 1GB, so we might have to advanced pro user say (A3) to handle big data, can PowerBI handle big data sets same as tabular model (Azure Analysis Service) and is it advantages/economical over building model in Azure Analysis Services ?
appreciated your help,
Thank you,
Abhishek
Business Intelligence Developer
Procom, Canada
Re: secure embed power BI report
Hi
Yes , you are correct this issue is already reported to microsoft.
https://community.powerbi.com/t5/Issues/iFrame-Embed-Issue/idi-p/763366
As microsoft have some issues with this.
For now use the first embed url and paste in the iframe. (Don't use the IFRAME URL)
Connecting to web api
Hi
I am very new to using Power bi, so this might be a very basic question, but hope someone can help me.
Until now I have only created dashboards based on data from our local server. However now I would like to connect to data from one of our online services.
They have provided the following:
https://speca.io/SimonOnlinePOS/external-api-v2?key=41502b8375f30e56b210877ef797b7e4
How would I easiest set a connect up? I have look though the many connects in Power bi, but only got more confused. So maybe someone, could guide me on where to start 😊
Cheers
Jesper Miles
Defining custom style between group/category name and corresponding colour
Hi,
I was wondering if it possible to define a custom colouring style between group/category name and corresponding colour. For example, if I am working with geographic data, I would like the graphs to be always coloured in the same way: US - red, Europe - blue, Africa - green. Is this possible in Power BI?
Thank you,
Re: R Custom Visual - Setting colours for each value in a field/column
There doesn't appear to be a way to pass dynamic/data driven properties through to R according to the PBI visuals team. Their recommendation was to implement the visual in TypeScript.
Re: Connecting to web api
Hi
You can use the Web Connector
let Source = Json.Document(Web.Contents("http://https://speca.io/SimonOnlinePOS/external-api-v2")) in Source
https://stackoverflow.com/questions/36685463/how-to-connect-my-web-api-wtih-power-bi-reports
Re: get data from sharepoint folder/link using python script
Thanks but that doesn't work, 403 error message. That actually does not work for many people.
New Column Bar as a total as new bar
HI,
I have the below dataset and when I create a stacked bar chart it gives all the color in a separate bar, but what I need at end of all the charts I need one more bar set which tells each color total as total Color.
Is this possible?
Color | Sales Amount |
Black | 18563966 |
RED | 31108904 |
YELLOW | 30885835 |
SILVER | 46818587 |
BLUE | 19694768 |
WHITE | 14703152 |
Black | 26452311 |
RED | 11629379 |
YELLOW | 7666825 |
SILVER | 18734177 |
BLUE | 23245343 |
WHITE | 40660899 |
Black | 37838457 |
RED | 49901421 |
YELLOW | 40292169 |
SILVER | 35518979 |
BLUE | 49505754 |
WHITE | 8300381 |
Using Rest API to change a Report/Dataset to use a different On-Prem Enterprise Gateway
I have a developed a PowerBI report in Powerbi desktop, which is sourcing it's data from an on-prem Analysis Server.
In the PowerBi service I have created a workspace, I have then installed a on-prem ( enterprise ) gateway, with a datasource which points to the same Analysis server,
when I publish my report from powerbi desktop it publishes into the workspace and automatically it is wired up to the gateway and all works good and well.
NOW!
Using the PowerBI Restful API what I would like to do is take that same report (pbix file ) and push it into a different workspace for which has a different on-prem gateway and datasource which points to our production Analysis Server, however I don't seem to be able to do this.
I have tired the following:
Uploading the Pbix to the production workspace using the powerbi powershell commandlet: New-PowerBIReport
This goes fine of course it's not wired up to anything which is expected.
I then trying to switch the gateway on the dataset for the report using this rest API call
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/bindtogatewayingroup
Specifying the GatewayID I want it to bind to and the Datasource Id of the production analysis server.
Which then comes back with a error saying: DMTS_CanNotFindMatchingDatasourceInGatewayError
Which kind of makes sense because the report will be looking at the dev analysis server and that won't be configured on the prod gateway.
So I thought I wonder if I could change that on the report using the API, and I can by using:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup
So using this I'm able to change the database name and server from development to Production, and verify the service has picked up this change.
Then I thought I could then call the bindtogatewayingroup and specify my production gateway and production datasource but it still fails with the same message.
After hours of research I'm coming to the conclusion that it's not possible to change a report from one gateway to another, unless the exact same data source exists on both gateways, which seems a bit pointless.
Is this a limitation of the API or am I doing something wrong???
Data Refresh failing with multiple python scripts
Hi ,
I am currently running 5 different python scripts that call an API to get data. When I refresh my tables individually on the report creation page, everything loads find and I do not get any errors. When I try to refresh all data at once I get the following error:
Error when Refreshing all tables in report creation page
If I try to refresh the data inside the query editor, I get the same error as well. Error when refreshing in query editor
My question is, why is this happening? They refresh without issues when doing it individually, so I am confused as to why this is happening?
JSON parameter for pivotTable --> "stylePreset"
Hi all,
I am trying to build a corporative theme in JSON file.
I need to set the style preset for the matrix visual as "Alternating rows", so I tried possible combinations on the following instruction:
"pivotTable": {
"*": {
"stylePreset":[{
"name":"Alternating rows"
}],
But it turns to "Default" on PBI desktop.
If the style preset is defined with only one word (for example: None, Minimal, Condensed, etc.) there is no problem and it works.
Which is the parameter I should use?
Many thanks in advance.
Josep.
Re: Connecting to web api
Thansk Jayendran!
I have been provieded with a token form the web service, where does that fit in ?
If you open the link, then i though i shoul build a Url like this:
Web.Contents("https://api.onlinepos.dk/api/getCardsList/{debtor}/{type}/{offset}")
Single PowerBI Embedded API to call separate reports based on condition
Hi Folks,
We have an existing Power BI Rest API being used by a third party to call a Power BI Report. There is a new requirement from the same third party vendor to call a different Power BI report based on a set of criteria for a separate user group. My question is, can we modify the existing PowerBI Embedded Rest API to switch the report based on additional criteria passed by third party (Example: If a field called Group with value "A" is passed instead of "B", then show report A, otherwise show report B). Or, do we need to create separate Power BI Rest APIs for each power BI report and write the logic to view the report based on respective groups on the third party solution file.
Thanks,
Rob
Re: Phased Embedding API with Preload error
I'm getting the same issues as everyone else. One thing I noticed in your code is that you use the baseUrl at "https://embedded.... not https://api as the docs suggest. Can you explain this? However even when I altered my url to "embedded" it still didn't work.
Web incorporation code doesn't work now . Can you help me?
Web incorporation code doesn't work now.
the asterisks I listed them to hide
now link
<iframe width="680" height="510" src="https://app.blob.core.windows.net/embed/snapshotEmbedHost.html?embedId=*******************=&pageName=ReportSection" frameborder="0" allowFullScreen="true"></iframe>
before
<iframe width="480" height="310" src="https://app.powerbi.com/reportEmbed?reportId=*******************************************&autoAuth=true&ctid=375e80c6-2bc0-4d50-90b9-4ac46108948d" frameborder="0" allowFullScreen="true"></iframe>
error: