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

PBI Embedded - Dedicated resource - auto page refresh message

$
0
0

Hi All,

 

I am new to PBI embedded,

Just running through the User Owns Data tutorial & linking to an existing report I have.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers

 

After setting up the dedicated capacity using Azure Power BI Embedded & a PBI Pro (trial) account,

 

I am now seeing a strange message above my embedded report when running locally.

 

Capture.PNGerror

I cant seem to find any settings in the azure capacity related to this (i am the admin) and tbh i dont think i want this feature.

 

My report does include DirectQueries but i am happy for them to just refresh on user load.

 

How do i remove this message and stop it showing? by either enabling the setting or turning something off?

 

Thanks,

A

 


Invisible Filter Pane visible in Power BI Embedded

$
0
0

Hi All,

 

I am having an issue with  Power BI Embedded Report and the Filter Pane. In the past I remember (memory can be funny though) that the Filter pane, when marked invisible on the desktop file, would be invisible in the embedded reports even when filterPaneEnabled: true was set in the JS.

 

However, now i cannot get the filter pane to disappear regardless of the way the PBI file is set up.

 

I have the Over all Filter Pane marked Invisible in the Power BI Desktop File

image.png

When I publish the Premium Capacity Workspace and view the Report in the Power BI Service ,the Filter Pane is indeed Invisible

 

However, when i view the Embedded report in our company website the Filter pane is visible. The individual page/report/visual level filters that i have marked as invisible are thankfully invisible as well, but the overall Filter pane is still visible

 

I have also tried this with the new Filter experience by Disabling the Filter pane in the Power BI Desktop file with the same results.

image.png

 

 

The JS for the embedded code does have the filterPaneEnabled:true marked since we need the workspace to show the filter pane on some of our embedded reports. Does that override in general for the whole workspace? Or is this a new/known issue.

 

Thanks

New Look Workspace Reports in Embedded capacity?

$
0
0

I am trying to get the new look reports into my embedded capacity. Right now, on our webpage, the reports render with the report tabs across the bottom, similar to how this report is in this screenshot along the very bottom (couldn't copy in my own screenshots):

https://powerbicdn.azureedge.net/mediahandler/blog/legacymedia/6518.report1.PNG

 

I am trying to get the reports to look like this (items #3 in screenshot), with the tabs/reports along the left side (similar to how they look in my Workspace):

https://docs.microsoft.com/en-us/power-bi/consumer/media/service-new-look/power-bi-new-look-changes.png

 

I have all my workspaces set to "New Look On", however I know this a user by user setting, so not sure how it effects embedded. Will this not happen till the new look is generally availible? Is this something I can set in embedded? 

 

Custom visual matrix dataview sorting behavior

$
0
0

I have a custom visual that uses a matrix dataview. I have sorting set to ascending on a numeric column, but I am seeing odd behavior in the "sorted" dataset. The data is hierarchical, but the column being sorted on does not roll up to all levels of the hierarchy, as it is only applicable to the lowest level. 

In this case, I am sorting on the right-most column, StageOldAge.

odd_sorting.png

I would expect Jurassic to be above Triassic in this case becuse Tithonian (152.10) is less than Ladinian (242.0).

Not sure if this is because the StageOldAge column does not roll up in the hierarchy, and these values are blank. Sorting is respected at the lowest level of the hierarchy, but the order at the higher levels seems undefined.

Is this expected behavior? In this case I'm disabling user sorting and defining custom sorting in the visual.

Best way to connect to own cloud with Rest Api?

$
0
0

Hello,

we have a cloud solution where data is available through a Rest Api.

We tried to develop a custom connector for this, and it worked well from within Power BI Desktop. But it fell short on the limit that custom connectors cannot be set up for automatic refresh in Power BI services. And we'd rather not need to use a Gateway, as we have several different customers in our cloud solution - and we'd need one Gateway for each if I understand it correctly.

 

So I wonder: what would be the best way to set up a connection to create reports from this Api, that would support automatic refresh?

We would ideally like our tables to be selectable in full after the connection is made (i.e. we don't want one connection per table).

 

Do we need to support full OAuth for this?

Could using the OData connector help?

 

Thanks for any response.

Power BI Generate Token API Failure

$
0
0
Hi
We have created a MVC web API with embedded Power BI reports. We have also commissioned a Power BI dedicated capacity on Azure.  The app was being used successfully for the last 4 months - however we now have an API Failing - https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken
The flow of the Power BI API is as follows. 
https://login.microsoftonline.com/common/oauth2/token - Request an access token - POST Successful
https://api.powerbi.com/v1.0/myorg/groups - Get groups - GET Successful
https://api.powerbi.com/v1.0/myorg/groups/{group-Id}/reports - Get reports in a group - GET Successful
https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken - Generate Token for POWER BI Embed control - GET Fails.
The body passed for the GenerateToken function is
{
 "accessLevel": "View"
}
However the response is
{
    "error": {
        "code""Unauthorized",
        "message""User is not authorized"
    }
}
This was working for almost 3 months and we haevnt changed any permissions on the user. Infact we have as part of our testing/trouble shooting  efforts allocated all Power BI permissions in Azure Application setup.
I cant figure out what could have changed. Any directions as to where we should be looking/trouble shooting? Appreciate any help
Regards
Sid

Installing powerbi-visuals-tools runs into errors with deprecated

$
0
0

iHello,

I've installed nodejs, then trying to do the instruction

npm i -g powerbi-visuals-tools

But I'm getting some of these errors ...   Any suggestions ?

npm : npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 At line:1 char:1 + npm i -g powerbi-visuals-tools + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (npm WARN deprec...est/issues/3142:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError npm WARN deprecated core-js@2.3.0: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm

 

Powerbi on premises and OOS, filter url parameters

$
0
0

I have an installation with power bi on-premises and office online server also on-premises, both with the latest version. I have uploaded to power bi an excel workbook that includes a pivotable with two slicers and all working good. I have the below request and i need some help with this

"When a user sees the excel workbook from power bi server and office online a parameter value should be passed to filter the slicer inside workbook, the parameter value changes based on the user that sees the workbook. My problem is that i can't find a way to pass the parameter value inside excel. I know that with sharepoint and web parts is working, but in my case is not an option to install sharepoint, also i have tried to use power bi syntax for filter ?filter=table/column eq 'some value' but doesn't work either. 


Query for SQL Tables

$
0
0

Hi,

 

For a dashboard for my dbo.audit table I have State_ID.  State_ID is also in my dbo.states table.  I'm looking to pull State_Name from my dbo.states.

 

What's the best way to perform this?

 

Thanks!

Update credentials using API after PostImportWithFileInGroup

$
0
0

Hi!
I am attempting to copy a PowerBI report & datasource that successfully connects to Azure Table & Blob data sources.

After retrieving the file with ExportReportInGroupWithHttpMessagesAsync() and posting back with PostImportWithFileInGroup(), I can see the file in the workspace.

Programatically calling RefreshDatasetInGroupAsync() fails however because the credentials for the datasources have not been copied as well? Is there a way to do this using the SDK and without resulting to manually calling the REST APIs?

 

I see threads like this https://community.powerbi.com/t5/Developer/Unable-to-update-dataset-credentials-after-uploading-a-pbix/td-p/235393 indicating the solution is to use the REST APIs but that's three years old.

Custom Visual Web Page

$
0
0

Hello,

 

I would like to create a Visual that just displays a web-page. The Url would be data driven.

As I'm a complkete TypeScript newbie I would first like to inform if this would be possible ?

 

Kind regards, Harry

Is Power BI Report Builder generates logs?

$
0
0

Hi,

 

I am creating a Paginated report using Power BI Report Builder. While running report I am getting some errors so I was just want to know if the Report builder generates run time logs or not. I searched the installed folder but I am not able to find anything there. 

Please, someone, help me with this.

 

 

Remove spikes from data

$
0
0

 

Hello everyone!

 

To be honest I am not sure what I am asking is even possible in Power BI but I thought I would ask. So I have the graph shown below with some avg runtime data. But you can see that before and after the two main runs (which hopefully you can identify) there are some random spikes that in order to get some valid min/max information, they would have to be removed.

What I thought is, creating some sort of script in Python that removes those spikes or replaces them with 0s but I don't know if thats possible inside Power BI. At the moment, it would be really hard to manipulate the data externally so if you have any ideas, it would be much appreciated. Thank you!

 

graph.png

 
 
 

How to make filter work in embed report in CRM using text type column

$
0
0

We have embedded a report in CRM using secured embed code. We need to filter a customer in a report based on the selected customer is CRM. This worked fine, when we first had a customer column in Power BI as numeric type. But when column type was changed to text, filtering doesn't work anymore. How should we change the filter definition to make it work with text type column? Filter is added using json.

{"Filter": "[{\"$schema\":\"basic\",\"target\":{\"table\":\"VIEW_D_CUSTOMER\",\"column\":\"CUSTOMER_ID\"},\"operator\":\"In\",\"values\":[$a],\"filterType\":1}]","Alias": {"$a": "accountnumber"}}




New filter experience: filter pane will not hide

$
0
0

Several Power BI reports embedded in an iframe on my organisation's website have the filter pane visible. These reports do not have the filter pane visible in the published versions on the service, and the filter pane is hidden in the desktop versions. Is there a setting to enable the filter pane to hide following the May 2020 update?


Remove only one filter while calculating a measure

$
0
0

Hi All,

I am facing an issue with the measure that needs to be calculated at group level (grouping as in SQL).

I have a measure called [Total Number of visits for Serving Unit with both WS and WS MH] which needs to be calculated depending upon below conditions :

1. Within the Group of Proportion Class and Serving Unit, if the Funding Purpose is equal to WS MH then :

[Total Number of visits for Serving Unit with both WS and WS MH] = Number of Attended Appointments[against that Prop.Class, Serving Unit, Funding Purpose = 'WS' + Number of Attended Appointments[against that Prop.Class, Serving Unit, Funding Purpose = 'WS MH'

Number of Attended Appointments is another measure that is calculated as :

Number of Attended Appointments := CALCULATE ( DISTINCTCOUNT(Tbl1[VisitKey],'Attendance Status'[Attendance Status Code] IN { "5", "6", "9", "VPCP", "VPCPC", "13" })

Serving Unit comes from Tbl2 that is related to Tbl1
Funding Type comes from Tbl3, that is related to Tbl1

2. Wherever the Proportion Class, Serving Unit group does not have a funding type of WS MH then [Total Number of visits for Serving Unit with both WS and WS MH] can be blank or equal to Number of Attended Appointments[against that Prop.Class, Serving Unit, Funding Purpose].

I am not concerned about the second scenario but how to get the values for first scenario ?

How to return a single SUMMED up value for particular grouping at Proportion Class, Serving Unit level.

I am attaching the excel snapshot showing how this needs to be calculated for clarity. Would much appreciate help on this.ProblemScenario and DesiredResult_01June2020.PNG

Wrong Total

$
0
0

Good morning,

 

I am trying to get the Net pay on my bi report but it shows 64500.01 as my total netpay instead of 8826.7, I am not sure why this may be happening...please help.  Thank you!

 

Capture.PNG

Export-PowerBIReport giving error “Export-PowerBIReport : Operation returned an invalid status code

$
0
0

When I am trying to access Export-PowerBIReport to export .pbix report file I am getting error "Export-PowerBIReport : Operation returned an invalid status code 'NotFound'".

I have PowerBI PRO account. I have install all power BI modules.Below is the code I have used . Please suggest.

Connect-PowerBIServiceAccount$wrkSpace =Get-PowerBIWorkspace-Name'xxxx'$rep1 =Get-PowerBIReport-Name"Report Test1"-WorkspaceId $wrkSpace.id 
$rep1
$rep1ID =[guid]$rep1.Id$wrkSpace.id 
$temp_path ='C:\test\test1.pbix'Export-PowerBIReport-Id $rep1ID  -WorkspaceId $wrkSpace.id -OutFile $temp_path

 

Combine table A with diferent columns

$
0
0

I have two tables:

Table A

ID.CUSTOMER//PRODUCT//DISCOUNT

1 // P1 // 1,2%

1 // P2 // 12,3%

 

Table B

ID.CUSTOMER//PRODUCT//SALES

1 // P1 // 100

1 // P2 // 200

1 // P3 // 300

 

How can I display a Power bi result with this info:

ID.CUSTOMER//PRODUCT//DISCOUNT//SALES

1 // P1 // 1,2%//100

1 // P2 // 12,3%//200

1 // P3 // ____//300

 

The main problem for me is because of P3 is not included i Table A.

 

Best Regards

 

Rest API Export Report to PDF that uses Azure Analysis Service as a data set

$
0
0

Hi;

I'm using the Rest API Call : POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/ExportTo.

 

I can successfully export a pdf report if the data is stored in PowerBI.

 

When I try to export a report to PDF that uses Analysis Service as it's Data Source
I then get the following Error : Export report requires effective identity to be provided for the report's data set.

 

What I have set up :
1. Premier Workspace where the PowerBI report is published
2. Followed the instructions to create a service principal and add it to power bi : https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal
3. The Service Principal has been added to the Azure Analysis Service Server as an Administrator
4. The Service Principal has been added to the Azure Analysis Service Database to a Role that has admin rights
5. Generate a Oauth Token :

grant_type:client_credentials
client_id: {My Client ID Generated in step 1}
client_secret:{Client Secret Generated in Step 1}
scope:openid
resource:https://analysis.windows.net/powerbi/api

6. Use the token received to call the Rest API Post Action : https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/ExportTo


Is there something else that needs to be done in order to allow the generation of the pdf when the data set is from a analysis service database ?

 

Thanks in Advance

Viewing all 18111 articles
Browse latest View live


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