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

PowerBI embedded dashboard greyed out in model driven PowerApp

$
0
0

This is quite possibly a PowerBI newbie question. My embedded PowerBI dashboard shows completely greyed out in my PowerApp (though looks fine when viewed on app.powerbi.com in the same browser instance as the same user). If I embed just the underlying PowerBI report in my PowerApp, it renders fine. I have a PowerBI pro trial license and am running the latest stable Chrome as of today (Version 89.0.4389.128 (Official Build) (64-bit)). When I look in the developer console in Chrome I see the following stack trace (can't say if it is relevant or not as there are other 404s and 401s). I saw one other post/support query in the community with an inconclusive answer (i.e file a support ticket 😉 ).

Has anybody seen anything like this? 

 

ERROR Error: Uncaught (in promise): TypeError: e.headers is not a function
TypeError: e.headers is not a function
at e.handleUserDoesNotBelongToCurrentCluster (dashboardEmbed.min.c74ea9429332a1008265.js:1)
at dashboardEmbed.min.c74ea9429332a1008265.js:1
at t.invoke (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)
at Object.onInvoke (dashboardEmbed.min.c74ea9429332a1008265.js:1)
at t.invoke (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)

..........

 

ERROR Error: Uncaught (in promise): [object Undefined]
at _ (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)
at _ (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)
at powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5
at t.invokeTask (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)
at Object.onInvokeTask (dashboardEmbed.min.c74ea9429332a1008265.js:1)
at t.invokeTask (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)
at e.runTask (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)
at m (powerbiportal.dependencies.externals.bundle.min.dc17c7ce5bd0a6cd082e.js:5)

......


Chaining multi tier UI

$
0
0

Hello,

 

I'm developing a Power BI connector which queries some api endpoints. The api endpoints are defined in multiple json files. The first input parameter shall take a url to a json file. In the next step a second input parameter is populated based on the first selection as a dropdown. To do so, I'd like to create two UI popups before calculating and showing the results in Power BI.

 

With this documentation https://docs.microsoft.com/en-us/power-query/handlingdocumentation it's a piece of cake to create a UI. However I fail miserably trying to chain both UIs together. I'm able to pass the values from the first UI to the second, however I only see the first UI. The second function isn't invoked and is only shown as a function info. It's still working but as the documentation suggests it's a better user experience showing a UI popup. I also prefer using a multiline multiselect UI in order to query multiple endpoints at once.

 

Is there any way to achieve my idea? It looks like it's support in Power Query given the fact, that querying a SQL Server also chains UI input fields together (first step: select database, second step: select table in database).

 

Here is my code:

 

 

[DataSource.Kind="Connector", Publish="Connector.Publish"] shared Connector.Contents = Value.ReplaceType(FirstImpl, FirstType); FirstType = type function( url as (type text meta [ Documentation.Name = "text", Documentation.FieldCaption = "Enter json schema url", Documentation.FieldDescription = "Please enter a url to a json schema file.", Documentation.SampleValues = {"https://path.to.json.url.com/swagger/v1/swagger.json"} ])) as text; FirstImpl = (url as text) => let urls = // Create urls... result = Value.ReplaceType(SecondImpl, SecondType(urls)) in result; SecondType = (uris as list) => type function( url as (type text meta [ Documentation.Name = "text", Documentation.FieldCaption = "Choose url", Documentation.FieldDescription = "Please choose a url from the list below to query.", Documentation.SampleValues = {"https://path.to.api.com/api/"}, Documentation.AllowedValues = uris, Formatting.IsMultiLine = true ])) as table; ConnectorImpl = (url as text) => let result = // Query and parse API passed as url in result as table;

 

 

 

Using DAX with live data

$
0
0

Hi Everyone,

 

My business would need to display live sales data (eg. refreshing every 30 seconds). My understanding is that:

 

1. PowerBI pro allows 8 refreshes (so no live data)

2. PowerBI Premium per user allows 48 refreshes (so definitely better but no live data yet)

3. DIrect Queries allows live data but then we cannot use more complex time intelligence DAX expressions

 

So my question is:

Is there any way to show live data whilst also being able to use complex DAX expressions?Anything to do with Azure maybe?live datasets?Live connections?or what else?

 

Thanks,

Marco

Great data analysis tool for your SaaS company

$
0
0

Need to make important business decisions for your SaaS company but you don’t have a good data analysis tool?

 

Try Power BI. If you use Microsoft Office, you already have access to Power BI and it’s a very powerful application.

 

It makes it easy for you to analyze your business’s data so you can make crucial decisions.

 

The problem with Power BI is that it can be tricky to learn so we’ve created a free course for SaaS companies.

 

It will give you all tools you need to get started with Power BI.

 

Click the link below to get access to our free Power BI course:

 

https://enterprisedna.co/corporate-saas-dashboard-analysis-in-power-bi/

Connection issue with embeded reports

$
0
0

Hello, 

We are using embedded PBI report to our website.
Usually it works fine, but for a new dataset and report we are gettting a connection error.
In PBI Service the report looks fine, but the embeded report is showing an error with the connction.

I hope you can point me to a solution 

Zugrunde liegender FehlerPowerBI service client received error HTTP response. HttpStatus: 503. PowerBI
ErrorCode: OpenConnectionError

OpenConnectionErrorFailed to open the MSOLAP connection.

Korrelations-ID a29793ff-62bb-7bdd-c9eb-d2ec81cad6ed

Aktivitäts-ID fbcf484d-a307-4a5d-8a67-694e72f7c4bf

Anforderungs-ID 5c220b91-a33c-43ee-9cdc-d1255316f78f

 

Getting aggregation value in matrix data mapping

$
0
0

Hi all ! 

By using the matrix data mapping with the capabilities as below : 

 

 

"dataRoles": [ { "name": "Category", "displayName": "Category", "displayNameKey": "Visual_Category", "kind": "Grouping" }, { "name": "Dimension", "displayName": "Dimension", "displayNameKey": "Visual_Dimension", "kind": "Grouping" }, { "name": "Measure", "displayName": "Measure", "displayNameKey": "Visual_Values", "kind": "Measure" } ], ... "dataViewMappings": [ { "matrix": { "rows": { "for": { "in": "Category" }, "root": { "children": [ { "level": 0, "value": "Year", "children": [ { "level": 1, "value": "Quarter", "children": [ { "level": 2, "value": "Month", "values": { "0": { "value": "Month" } }, "children": [ { "level": 3, "value": "Day", "values": { "0": { "value": "Day" } } } ] } ] } ] } ] } }, "columns": { "for": { "in": "Dimension" }, "root": { "children": [ { "level": 0, "value": "Dimension" } ] } }, "values": { "select": [ { "for": { "in": "Measure" } } ] } } } ]

 

 

I am getting the values just for the leaves of my hierarchy as below : 

turgayseop_0-1618421879125.png

But, I need to get the aggregation values for the parent members of the hierarchy (Month/Quarter/Year) .

 

Any comments & helps to figure it out is welcome  !

 

Thanks in advance ! 

Power BI Embedded with Service Principal Throws PowerBINotLicensedException

$
0
0

We are working on setting up Power BI Embedded reports in a .net core web application. Following the examples provided by the online documentation, we were successful in setting up the Paginated Power BI (.rdl files) reports using a Service Principal.

 

However, when attempting to load Power BI Analytic (.pbix) reports we receive a 401 error on a call to https://wabi-us-east2-redirect.analysis.windows.net/explore/reports/..../modelsAndExploration?preferReadOnlySession=true url. Further investigation using Fiddler we were able to find the response from the site which included the message PowerBINotLicensedException.

 

We have Power BI Pro/Premium users and have setup the Workspace as Premium as well. 

 

Any help on why a Paginated report works and an Analytic one does not? Also, does anyone have thoughts on how to get passed the licensed exception when using a Service Principal?

 

Thanks -Brent Morgan

 

 

Chaining multi tier UIs

$
0
0

Hello,

 

I'm developing a Power BI connector which queries some api endpoints. The api endpoints are defined in multiple json files. The first input parameter shall take a url to a json file. In the next step a second input parameter is populated based on the first selection as a dropdown. To do so, I'd like to create two UI popups before calculating and showing the results in Power BI.

 

With this documentation https://docs.microsoft.com/en-us/power-query/handlingdocumentation it's a piece of cake to create a UI. However I fail miserably trying to chain both UIs together. I'm able to pass the values from the first UI to the second, however I only see the first UI. The second function isn't invoked and is only shown as a function info. It's still working but as the documentation suggests it's a better user experience showing a UI popup. I also prefer using a multiline multiselect UI in order to query multiple endpoints at once.

 

Is there any way to achieve my idea? It looks like it's support in Power Query given the fact, that querying a SQL Server also chains UI input fields together (first step: select database, second step: select table in database).

 

Here is my code:

 

 

 

 

[DataSource.Kind="Connector", Publish="Connector.Publish"] shared Connector.Contents = Value.ReplaceType(FirstImpl, FirstType); FirstType = type function( url as (type text meta [ Documentation.Name = "text", Documentation.FieldCaption = "Enter json schema url", Documentation.FieldDescription = "Please enter a url to a json schema file.", Documentation.SampleValues = {"https://path.to.json.url.com/swagger/v1/swagger.json"} ])) as text; FirstImpl = (url as text) => let urls = // Create urls... result = Value.ReplaceType(SecondImpl, SecondType(urls)) in result; SecondType = (uris as list) => type function( url as (type text meta [ Documentation.Name = "text", Documentation.FieldCaption = "Choose url", Documentation.FieldDescription = "Please choose a url from the list below to query.", Documentation.SampleValues = {"https://path.to.api.com/api/"}, Documentation.AllowedValues = uris, Formatting.IsMultiLine = true ])) as table; SecondImpl = (url as text) => let result = // Query and parse API passed as url in result as table;

 

 

 

 

 


Power BI Embed Not Render All Reports from Workspace

$
0
0

My team is developing a Web App (Backend: Django - Frontend: React) to consumes reports of Power BI Service. We are using the AppOwnData Embed in specific the "Get embed params for multiple reports for a single workspace" services. (https://github.com/microsoft/PowerBI-Developer-Samples/blame/f78ad3006861a82b13276d8ecba1c5e6688c6e0e/Python/Embed%20for%20your%20customers/AppOwnsData/services/pbiembedservice.py#L45

But only the last report that requests the token is rendering, the others report are only showing the title and the following error message. 

 

Failed to load resource: the server responded with a status of 403
POST https://wabi-paas-1-scus-redirect.analysis.windows.net/explore/conceptualschema 403

We already follow all the steps to set up the AAD (https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal) so there isn't any problem. 

 

We wonder what could be missing or what it could be wrong. We need that all the reports requesting the token can render successfully 

Convert latitude and longitude to full address in Power Query / with DAX

$
0
0

Hi folks, 

I have a dataset with latitude and longitude, but the original address column is not quite correct as it involve manual input. 

I want to create a new column in my dataset to find the precise address with its latitude and longitude. 

Anyone knows how to do it in Power Query / with DAX?

 

I've tried with Python script, but it doesn't work as fine as it did in Jupyter notebook.

That's why I'm looking for solution inside PowerBI environment.

 

Thanks in advance.

 

Where is regionally powerbi workspace dataset data located?

$
0
0

Hello.

 
I made a few tests with powerbi embedded and capacities. And it works not how I expect it (even after call with support)
 
My steps:
1. Create workspace.
2. Attach workspace to capacity in EU region.
3. Create dataset at created workspace.
4. Push data to created dataset.
5. Create report for created dataset.
6. View report - data exist and it's correct.
Now i expect that all data is located at EU region.
 
7. Change workspace capacity to another from US region.
8. View report - data still exists.
 
I expect that:
- report is empty cause workspace is attached to fresh new US capacity (support said - "in case if you change capacity for workspace then all data will be lost")
- data from eu capacity must be deleted (cause workspace is not attached anymore to EU capacity).
 
Can you explain please:
1) why data in report is still available after changing capacity?
2) where regionally data is located?
3) is there any way to get information/check workspace/dataset data region?

Free server sql database

$
0
0

Hello everyone

I'm having some issues here accessing an sql database of a client. I'm trying to find out the reason why my pbi is so slow accessing it. It used to be faster. I know it could be several reasons and i believe most of them i've excluded.
What i would like is to try to access an sql database to try to do some reports in power bi. Is there any free server and database to access?
I don't need any software, just a place to access any kind of data through an sql database connection
Thanks a lot
Pedro

Schedule a meeting

$
0
0

Hi, this is not a typical question but I am hoping someone can help me:

 

I wish to schedule a video meeting/call with a Power BI consultant/support staff, and was wondering how I should go about this? Who should I contact in order to do this? 

 

We are in quite serious need of being able digitally and vocally speak to such a support staff member, and I would be very grateful for any help or guidance I could get on this. 

 

 

Embedded The request was blocked by DoSP

$
0
0

Hi, I'm getting the error below when embedding a report:

"{"message":"Fail to load - Could not retrieve models and explorations.","detailedMessage":"The request was blocked by DoSP <ClientEndpoint=XXX.XXX.XXX.XXX:XXXX>","errorCode":"429","level":"6","technicalDetails":{"requestId":"f1da1f89-b99d-6589-f57f-a872aab3d819"}}"

 

Any thoughts? Seems this error startet since feb/21.

Thanks,

Moving a Gantt Chart from Tableau

$
0
0

I can't seem to replicate a Gantt Chart that I have in tableau that looks as follow:

Gantt Chart TableauGantt Chart Tableau

What I am struggling with is to have multiple task in one row. What Power BI does is to pick the earliest of my Start Date, I want to have all of them in one time line. Here is as close I have:

Gant Chart Power BIGant Chart Power BI

For refenrence I am using the Gantt Chart by MAQ Software.

 

Is it even possible to do what I need in Power BI? I can change to a different gantt chart or whatever it takes.


Asesoramiento para implementar informes en un portal Web

$
0
0

Buenas tardes, 

Necesitaria si alguien me puede asesorar sobre las herramientas necesarias  para poder incoporar Informes de Power BI a un Portal web que utilizan diariamente nuestros clientes.

Cada cliente accede a nuestro portal mediante un usuario que se le fue asignado y necesitamos que solo visualicen su respectiva información dentro de los informes

Estos clientes NO poseen usuarios registrados en Power BI.

Actualmente con servidores Windows Server 2012 R2 + BD en SQL 2012 Std Edition + Power BI (Licencia de Office 365).

Hemos conseguido incorporar informes mediante el uso de "Publicar en la Web", pero este opción no nos permite discriminar la información para cada cliente.

 

Agradezco me puedan brindar cualquier tipo de ayuda.

 

----------------------------

 

Good afternoon,

I would need if someone can advise me on the necessary tools to be able to incorporate Power BI Reports to a Web Portal that our clients use daily.
Each client accesses our portal through a user assigned to them and we only need them to view their respective information within the reports.
These clients do NOT have registered Power BI users.

Currently with Windows Server 2012 R2 + BD servers in SQL 2012 Std Edition + Power BI (Office 365 License).
We have managed to incorporate reports by using "Publish to the Web", but this option does not allow us to discriminate the information for each client.

 

I appreciate they can give me any kind of help.

 

Powe bi embedded Mobile Layout Not working

$
0
0

I'm using the javascript API to embed a report into my site, and I worked fine. However, I would like the report to display in mobile layout. I've already created a mobile layout in Power Bi Desktop and published the report. Below is some of my code:

 

letreportLoadConfigMobile = {
type:"report",
tokenType:models.TokenType.Embed,
accessToken:embedData.accessToken,
id: reportId,
embedUrl:embedData.embedUrl[0].embedUrl,
pageView:"oneColumn",
// Enable this setting to remove gray shoulders from embedded report
settings: {
layoutType:models.LayoutType.MobilePortrait
}
};
 
letreport = powerbi.embed(reportContainer, reportLoadConfigMobile);
 
My report displays, but not in the mobile layout. 
 
I know that the mobile layout was published okay because I am able to view the report in mobile view using the PowerBI App.
 
Is there something I'm missing?

Using Power BI's APIs in powershell scripts - 400 status error

$
0
0

Sapphire_0-1618593941596.png

 

Hello, I am new to powershell and was working on using Power BI REST APIs. I have no problems with the ones using read permissions, but when it comes to the ones to write (POST), i am getting the following error:

 

Exception : System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod.<InvokeRestMethod>d__35.MoveNext()   (the error is on the image on top!)

 

In this case i was using the following for the "update parameter" API:

 

Invoke-PowerBIRestMethod -Url $url -Method POST -Body (ConvertTo-Json #body_request)

 

$body_request = @'
{
"updateDetails":
{
"name": "ServerName",
"newValue": "qa-clean"
}

}
'@

 

I may be wrong, but I read documentation before which told that administrators can use the Power BI APIs without needing to register an app in azure. Is this fact true?

 

Thank you for reading:)

Deploy reports in a angular app

$
0
0

Hello everyone,

 

I am looking to deploy my reports in an angular application. I have found several methods and I want to know which one  is the most secure method when it's for company to secure informations.

 

Thank you

PowerBI Paginated Embedded Not Feasible

$
0
0

Hi All,

 

Something is very strange about embedding paginated reports.

 

Apparently you must use a Service Principal as a prerequisite. But when you look at the export limitations it says "Exporting a paginated report that has a Power BI dataset as its data source, is not supported for service principals."

 

Is exporting Paginated Reports from PowerBI datasets feasible at all?

 

Thanks,

Viewing all 18058 articles
Browse latest View live


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