powerbi-embedded

power bi access token api working fine in postman but not working in angular app

こ雲淡風輕ζ 提交于 2019-12-11 08:02:07
问题 I'm calling power bi API in postman which is working good and as an accepted result I'm getting. while that app I'm calling in the angular app it's not working. I'm getting response null. I have attached my code below, Please help me out I have been trying to solve this issue last few days. API: https://login.microsoftonline.com/common/oauth2/token Below is my angular code getAccessToken(param): Observable<any> { const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/x

PowerBI Embedded DMTS_DatasourceHasNoCredentialError

孤街浪徒 提交于 2019-12-10 23:59:38
问题 I have create a PBIX file in PowerBI Desktop using DirectQuery method on Azure SQL Server. After that I uploaded the file to workspace. Now when I am opening that report on my custom web app using MVC API, it is throwing me following error: Datasource has no credentials. Please try again later or contact support and provide the following details to help resolve your issue faster. Error CodeDMTS_DatasourceHasNoCredentialError Server someserver.database.windows.net Correlation ID3b3d08d7-21cd

Top N Customer Names as a slicer in power BI

柔情痞子 提交于 2019-12-10 22:46:52
问题 i am new to power BI, i have a requirement to create a report which will show the data for top N customer based on sales amount. once i have identify the top N customer i need other charts / table / graphs to show the data of these N customer. so eventually i need a slicer that will show me the top N customer based on sales. i have gone through various post, there they dynamic way of finding the top N (disconnected table) and then customer name as a measure is possible. when i combine this

PowerBi embed dashboard using JavaScript

◇◆丶佛笑我妖孽 提交于 2019-12-07 17:02:12
问题 I created a dashboard in PowerBi that I can load in a .cs page using the sample project but I like to try and use the JavaScript API. I tried using the project [GitHub Sample Project https://github.com/Microsoft/PowerBI-JavaScript] But I am getting error about the models is there a different function I would be using? I belive that I have all of the js library installed but the dashboard will not loaded in my html page <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title>

How to Pass a URL Filter to a Power BI Publish to Web Report

≡放荡痞女 提交于 2019-12-07 16:48:31
问题 I'm trying to pass a URL filter to a published report but am unable to get it to work. The report: https://app.powerbi.com/view?r=eyJrIjoiOGExYjhhYmMtZmU0OS00ZGJjLWE3YmUtNTM5MjM1OWIzZTA5IiwidCI6IjUyM... I've tried using the method here: Passing parameters to Power BI filter programmatically by adding &filter=Table1/ZipKey eq '00001' to the end of the URL but that doesn't work. It works for this link: https://app.powerbi.com/groups/me/reports/8d3cbf1e-3d89-46d3-ac1a-b24d0784b125/ReportSection

Download, Print option in PowerBI embedded report with Angular7

时光总嘲笑我的痴心妄想 提交于 2019-12-06 12:19:56
问题 I have created PowerBI report and It has been embedded to my angular7 client application by registering the application with Azure Active Directory(AAD). It embeds perfectly. I want to allow that embedded report to be downloaded, printed by the user of my client application. Following is my Angulr7 code to embed the PowerBI report. showReport() { // Report's Secured Token let accessToken = 'myAccessToken'; // Embed URL let embedUrl = 'embedUrl'; // Report ID let embedReportId = 'embedReportId

How do you get rid of the grey border with the report visuals with power bi embedded?

亡梦爱人 提交于 2019-12-06 03:12:36
When i render the power bi visuals, I notice that there is a grey border on the right and left side of the image. Is there a way to get rid of that? It's awkward that the grey border is not effecting the top or bottom of the iframe. Thanks, Derek Try something like this. (extracted from the powerbi-javascript sample). Pass the #reportContainer div as input to powerbi.embed and you should not see the inset borders <style> #reportContainer { width: 100%; height: 750px; background-color: white; padding: 0px; clear: both; } .desktop-view iframe, .mobile-view iframe { border: none; } </style> <h2

PowerBi embed dashboard using JavaScript

有些话、适合烂在心里 提交于 2019-12-06 03:07:11
I created a dashboard in PowerBi that I can load in a .cs page using the sample project but I like to try and use the JavaScript API. I tried using the project [GitHub Sample Project https://github.com/Microsoft/PowerBI-JavaScript] But I am getting error about the models is there a different function I would be using? I belive that I have all of the js library installed but the dashboard will not loaded in my html page <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.js"></script> <script src="http://ajax

How to Pass a URL Filter to a Power BI Publish to Web Report

别来无恙 提交于 2019-12-05 21:12:40
I'm trying to pass a URL filter to a published report but am unable to get it to work. The report: https://app.powerbi.com/view?r=eyJrIjoiOGExYjhhYmMtZmU0OS00ZGJjLWE3YmUtNTM5MjM1OWIzZTA5IiwidCI6IjUyM ... I've tried using the method here: Passing parameters to Power BI filter programmatically by adding &filter=Table1/ZipKey eq '00001' to the end of the URL but that doesn't work. It works for this link: https://app.powerbi.com/groups/me/reports/8d3cbf1e-3d89-46d3-ac1a-b24d0784b125/ReportSection?filter= ... Any ideas? Is this not possible? If not, the end goal is to be able to embed this within

How to generate PDF output of powerbi embedded report

北城以北 提交于 2019-12-05 08:32:17
I have a powerbi report embedded to my webpage. What I need is to add an "export" button to my page and export the report to the PDF when the button is clicked. How can I achieve this? People online advises using report.print() or window.print() , but both did not work for me. var reportContainer = document.getElementById('reportContainer'); var report = powerbi.embed(reportContainer, config); var report2 = powerbi.get(reportContainer); console.log(report); --returns the report console.log(report2); --also returns the report report.print(); --nothing happens report2.print(); --nothing happens