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

Power BI invoke in .Net


Custom Visuals Slow

$
0
0

 Import any custom visuals in Power bi is slow,

 I found that Power bi  is requesting an address: https://visuals.azureedge.net/prod/approvedResources.json,

This address cannot be accessed on the company intranet. I will get an error after accessing this address for 10 seconds.Is there any way for POWER BI not to request this address?

Image 1.jpg

 

How to retrieve the data when RLS is implemented at back end

$
0
0

We have a multi-tanent Azure web app (Asp.net MVC 5) connected to Azure SQL database, used by around 400 users and growing. I want to implement Power BI for data visualization. We've implemented RLS using SESSION_CONTEXT in SQL. I've gone through the article https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy and learnt that I can use either "Power BI workspace-based isolation" or "Row-level security-based isolation". It appears to me that RLS based isolation would be easier to manage and efficient (any expert's advice is always welcome). In order to retrieve the data, it is required to set a session context before running a query, as we have implemented RLS at database side. What should be the correct and efficient approach to retrieve the data in this scenario? 

slicer.setSlicerState not working and got "TypeError: slicer.setSlicerState is not a function"

$
0
0

I tried using the slicer.setSlicerState PowerBI JS function and got error "TypeError: slicer.setSlicerState is not a function".  I tried this in the in App Owns Data sample , which is a ASP.Net MVC .  The following is the function I used.  The slicer visual is found but slicer.setSlicerState will generate error.  I have no issues  on only applying page level filters by using  activePage.setFilters([filter]), in which filter is same.  Any suggestion? Thanks!

 


function ApplySlicer() {
const filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "Client_Market",
column: "Customer_Market_Name"
},
operator: "In",
values: ["Idaho Market"],
};

// Get a reference to the embedded report HTML element
var embedContainer = $('#reportContainer')[0];

// Get a reference to the embedded report.
var report = powerbi.get(embedContainer);

// Retrieve the page collection and get the visuals for the first page.
report.getPages()
.then(function (pages) {
// Retrieve active page.
var activePage = pages.filter(function (page) {
return page.isActive;
})[0];

activePage.getVisuals()
.then(function (visuals) {
// Retrieve the wanted visual.
var slicer = visuals.filter(function (visual) {
console.log("sliler is founcd")
return visual.type == "slicer" && visual.name == "c5003ae82a250a09e010";
})[0];

// Set the slicer state which contains the slicer filters.
slicer.setSlicerState({ filters: [filter] })
.then(function () {
console.log("Market slicer was set.");
})
.catch(function (errors) {
console.log(errors);
});
})
.catch(function (errors) {
console.log(errors);
});
})
.catch(function (errors) {
console.log(errors);
})

}

How to retrieve the data from table visual and send the data to an API

$
0
0

I have a table visual in my report as below.

 

HostnameTypeURL
lkptest2Extended ServerRemove
lkptest1PaasRemove

 

I have a requirement where my client wants to send the data in a particular row with the user who logged into the report, to an API when we click on the Remove URL in the table.

 

ex- when I click on the first row remove URL, need to send data in the first row to an API with logged in user.

 

{
    "hostname" : "lkptest1",
     "type" :"Extended server",
     "username": "xxxx@yyy.onmicrosoft.com"
}

 

 

 

 

Getting live Data from Excel into Power BI

$
0
0

Hi Guys,

 

Apologies if this has been asked a thousand times, is there a way to get a live dataset from out of Excel into Power BI? The fastest refresh I can get is hourly when I'm using a personal gateway, is there any method to making as real time as possible? 

 

I know that you can increase the number of schedule refreshes but unfortunately upgrading to premium is not an option due to the cost of it.

 

Any help/guidance will be much appreciated. 

Refresh frequency Embed

$
0
0

We have a scenario where customer brings his power bi which has a report connected to SQL using Direct query.

 

We are embedding this report in our application using his user token. How frequently can we call refresh on the report using javascript API report.refresh or are there any limitations on the same ?

 

Note: The customer is having power Bi Pro license. And we are embedding using User owns report model.

 

Report ID not found in the Workspace

$
0
0

I am trying to embed a Power BI Report to a Web App. I am using the Sample Web App provided in the Github and the sample report. I am following the steps mentioned in the link https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization#embed-your-co...

 

However, I am still getting an error on running the application when I try accessing with an account where the report is in the shared with me section.

 

 

pantallazo.png

 

 

Error: "Report with ID: '26209ae2-8cd8-4ae4-8760-41aa589449ec' not found in the workspace with ID: 'fa957a68-fd4d-463f-9cd6-20003c3fe153', Please check the report ID. "

 

If I access with the account where is the original workspace there is no problem but if the report has been shared with other account I can't access to the report with that account and it displays the error.

 

A temporary solution I found was add as a member the account  which has the report shared into the workspace and it works, but if the person log in into the power bi account the person can see all the reports in that workspace.

 

I appreciate your help.

 

 

 


Power BI Gateway is triggering REST URLs thrice for schedule refresh/on demand refresh

$
0
0

When we try to manually refresh a dataset from Power BI service having REST APIs(VSTS APIs), Enterprise Gateway is triggering each API thrice. This leads to outage of the REST API server. We want to hit the API only once when schedule refresh is triggered. It is working as expected from Power BI desktop.

 

Appreciate any help.

Chart Rendering issue while applying Edit Queries

$
0
0

When we enable 'Support Landing Page: true', and tried selecting any unused dimention in Edit query ,it shows error in the visual and again when we remove the selected queries in Edit Queries section and applied the changes, still the chart shows the same error and it didn't render properly instead the landing page is displayed.

Optimized way to load layout in power bi embedded

$
0
0

I'm currently developing an application using power bi embedded.

I want, according to some filter selections, to either show or hide some visuals from the page.

Therefore I have 2 alternatives:

- Put all the visuals in one page and then load the appropriate layout, and play with the visibility attribute in the configuration variable. ( and afterwards call report.updateSettings() )

- Duplicate pages with the appropriate visuals that will simulate a specific state of filters, and each time load the appropriate page.

 

My question is: In terms of performance and cost management, which alternative is better to use ? which one will cosume less RAM and CPU ?

 

Thank you,

Ad hoc reporting?

$
0
0

can Power BI be used by users to create/modify reports?  is it web based?  Can you customize groups/sorts etc? How easy is it to use?

 

Is there a demo?

Can not update datasource through API

$
0
0

Hello,

 

I have followed the documentation for updated a datasource in a spcefic group. https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup#datasource but i still get an error. My body is set up properly and I have checked the spelling of the database and server. All I want to do is change Azure SQL DBs.

 

{
	"updateDetails": [
    {
      "datasourceSelector": {
        "datasourceType": "Sql",
        "connectionDetails": {
          "server": "server1.database.windows.net",
          "database": "database1"
        }
      },
      "connectionDetails": {
        "server": "server2.database.windows.net",
        "database": "database2"
      }
    }
   ]
}

 

 

 

{
    "error": {
        "code": "InvalidRequest",
        "message": "Operation is not supported for selector #44"
    }
}

Report ID not found in the Workspace

$
0
0

I am trying to embed a Power BI Report to a Web App. I am using the Sample Web App provided in the Github and the sample report. I am following the steps mentioned in the link https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization#embed-your-co...

 

However, I am still getting an error on running the application when I try accessing with an account where the report is in the shared with me section.

 

 

pantallazo.png

 

Error: "Report with ID: '26209ae2-8cd8-4ae4-8760-41aa589449ec' not found in the workspace with ID: 'fa957a68-fd4d-463f-9cd6-20003c3fe153', Please check the report ID. "

 

If I access with the account where is the original workspace there is no problem but if the report has been shared with other account I can't access to the report with that account and it displays the error.

 

A temporary solution I found was add as a member the account  which has the report shared into the workspace and it works, but if the person log in into the power bi account the person can see all the reports in that workspace.

 

I appreciate your help.

Automate publishing reports process creating an azureDevOps pipeline???

$
0
0

Hi everyone, I am quite new using powerBi and quite new to Azure DevOps as well, does anyone know whether is possible to automate the report's publishing process, more specific, is it possible to create a pipeline task in azure devops that takes the pbix file from our repo located in azure devops, publish it to powerbi web and email a list of people?? I read about this extension called Power Bi Actions, but I haven't found really much info about the usage of this extensions and there is little to no examples of how to use it. sorry if this is the wrong topic.

 

Thanks in advance


Custom Data Connector

$
0
0

Hi.

 

I am looking for a Developer's help to

 

  1. Develop a connector between a Laboratory Information Management System with Power BI, and
  2. Set-Up the dashboard on my client's Intranet and/or SharePoint

 

Thanks for contacting me if you have the skills, the reference and the bandwidth to support me on this project.

 

JM

Error importing custom visual to Power BI Service

$
0
0

Hi!

 

I have developed a custom visual and when I use Power BI Desktop to import the custom visual it works, when I upload the report file (with the custom visual embedded) to Power BI Service it all works ok also.

However, when I use the Power BI Service to import the custom visual to a report from a file it occurs an import error "An error occurred while attempting to import visual in this report."

I see two errors in the browser dev tools (Edge or Chrome) 

SEC7120 [CORS] error in 'https://wabi-brazil-south-redirect.analysis.windows.net/powerbi/content/visual'.

HTTP413 PAYLOAD TOO LARGE

The pbiviz file has a size of about 2.9MB. Is that too much?

 

I don't know how to fix those problems as they appear to be restrictions from the server.

Can you shine some light on this, please?

Thanks.

How to get the existing embed tokens?

$
0
0

Hi,

I have been working on an integration of Power BI reports to a website, and generated embed tokens according to https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/reports_generatetokeningroup

I have created a big number of tokens during development, and now I have depleted all the quota, resulting to an error message:

You have exceeded the amount of embed token that can be generated on a shared capacity. You need to purchase Azure capacities to generate embed tokens. See...

 

The problem is that I haven't saved the tokens locally. Is there any way to get the existing tokens and reuse them? I looked through the API but could not find anything relevant, or maybe I missed something?

Thank you

URL Filter to Publish to Web Report

Power BI API Error getting filter Relative Date Filtering

$
0
0

Hi,

 

If the report has the filter "Relative Date Filtering" and I try to get the filter using the PowerBI API JS I get the error "invoke filter serialization function with no filter".

 

Filter.png

Is this a bug or a limitation of the PowerBI API ?

 

 

Viewing all 17937 articles
Browse latest View live


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