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

Importing two datasets with different sizes in a custom visual

$
0
0

I'd like to have a small table (i.e a ten rows by three columns in size) in addition to my main dataset which is hundreds of rows. The plan is to show some objects based on the small table on the main chart which comes from the large table.

 

Any idea how to code dataViewMappings section in capabilities.json for this scenario?  I've tried a lot of cases but none of them worked.


Determine which conditions are met in capabilities.json and read values by datarole name

$
0
0

Hi,

 

Assume I have the following two conditions specified in capabilities.json below.

  1. What is the proper way to determine which of the two conditions is satisfied (or none)?
  2. Is there a way to retrieve the values of a field (from options.dataView) by its data role name rather than by an index?
"conditions": [
	{
		"ltd": {
			"min": 1,
			"max": 1
		},
		"lng": {
			"min": 1,
			"max": 1
		},
		"zip": {
			"max":0
		}
	}
]

and

"conditions": [
	{
		"ltd": {
			"max": 0
		},
		"lng": {
			"max": 0
		},
		"zip": {
			"min": 1,
			"max": 1
		}
	}
]

Thanks,

Martijn

 

 

 

 

Automate the Export of Dataset from Power BI Service to OneDrive

$
0
0

Hi all

 

I need to export a dataset as a csv or xlsx file to One Drive upon a scheduled refresh from Power BI Service. I have made an R code which allows me to do this on Power BI Desktop but I am having a lot of issues doing the same thing on Power BI Server.

 

This is the R code I have used:

require(gdata)

write.csv(trim(dataset), file = "filepath/dataset.csv", row.names = F)

plot(dataset)

 

This is the error message I am getting from Power BI Service:

In file(file, ifelse(append, "a", "w")) : cannot open the connection. In addition: Warning message: In file(file, ifelse(append, "a", "w")) : cannot open file "filepath/dataset.csv": Permission denied

 

I was thinking that I need to change the filepath to a path that can find One Drive online rather than on my local disk ie. 

 

But it is still errors for both Power BI Desktop and Service with the following error message:

can only open URLs for readingError in file(file, ifelse(append, "a", "w")) : cannot open the connection Calls: write.table -> file Execution halted

 

Any ideas on how to solve this? Thank you

streaming dataset with API how to filter by user id/row level security

$
0
0

I created a flow with MS Flow that gets the data from MS Forms, put them in SharePoint list and finally charges the data on Power BI Service as streaming dataset through an API. I built a report and published on an App to share with my organization. The report is based on the answers of the survey on MS Forms of the users in my organization but right now, if I share that report, everybody can see all the results...I mean a user can see the results of the survey of other users. So my question is: is there any way to filter that report by User ID, so that a User can see just his survey results? I know that "normally" on Power BI desktop I could set the Row level security, but by using a streaming dataset with an API I don't know how to do.

Thanks

Fetch data from blob using Shared Access Signature in Power BI

$
0
0

Hi,

 

I have been trying to fetch data from a .csv file stored in a blob container via SAS URL. I found a related solution on SAS in Power BI.

I was able to implement this partially till the BinaryFiles column step.

1.PNG

But while extracting the data from file, it is giving me an error - Access to the resource is forbidden.

2.PNG

When asked for credentials, I select Windows authentication method to connect to the blob container.

 

Can you please guide me here?

Thanks!

Need to retrieve selected date fro slicer and pass as parameter to new page with new graphs.

$
0
0

Hi,

 

I have powerbi Embedded graphs. The user loads up an HTML (asp.net) page from the menu and the graph is visible and they can interact. They might then select a different page from the HTML menu and a new page with new embedded graphs shows.

 

The issue that I am having is that the user selects a date range in the first page, then loads a second page from the HTML menu. The date slicer in that graph then defaults to what the powerbi was published with and they have to reselect the pages they are wanting (which is just very user unfriendly).

 

Is there a way to "extract" the dates selected in the one graph and then when they move to a new page, pass this date range as a parameter? The new graph on the new page can then default to this date range?

 

Much appreciated.

Modify Matrix visual

$
0
0

Hi,

Are visuals provided with Power BI open source? When creating a custom visual, can an existing out of box visual such as matrix be customized or enahnced?

Unable to Post/Upload excel file using Post Import Rest API

$
0
0

Hello

 

I am attempting to upload a excel file to my group using the Post Import rest api from the C# SDK as well as the raw POST method - but both of them result in the "Bad Request" error. 

 

https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup

 

It works fine with a .pbix file - but is failing with a excel file. I have made sure that the excel file has data formatted as table. Why is the POST IMPORT in Group API failing with excel file upload?

 

Thanks

Aj


Powerbi on Website passing User/password

$
0
0

Hi, I want to know if it's possible to add a custom page on a Website where it show some reports but passing the user/password that is stored in the WebPage Database. 

I think it's an API may be, but don't know well. 

 

Can anyone help me?

 

 

Thank you very much.

 

 

REST API App only token getting 401 unauthorised errors

$
0
0

I need to deploy a pbix file to power I online, inside a workspace, but I cannot use a username and password. Only an app clientID and secret. I’m trying to create an unattending PowerShell script.

 

There is a delegation role for power I that is Tenant.ReadWrite.All, which by the sounds of things should allow you to do anything within powerBI.

 

Unfortunately, any attempts at a connection, I can get a bearer token, but any REST API calls after that always returns with a 401 unauthorised status message.

 

I can share my code tomorrow (when I’m on my work pc), but is it actually possible to do what I’m attempting. Any examples or prebuilt PowerShell powerBI modules always needs a username and password for authentication.

Service Principal with Embedded 'BadRequest' on connecting to Azure SQL

$
0
0

I have a PowerBI Embedded ASP.NET Core App running locally. I have gone through all of the setup to use a Service Principal based on https://docs.microsoft.com/en-us/power-bi/developer/embed-service-principal#get-started-with-a-service-principal

 

I uploaded  on of the MS Sample Business PBIX it my Workspace and set the correct Service Principal as Admin. Running my Embed Page locally it runs fine. That means all of the authentication and tokens are working prooerly. However, when I try and use one of my PBIX files that connects to my Azure SQL Database, it fails with BadRequest. This PBIX works fine in my PowerBI.com account so I know that there isn't anything wrong with that. I can't figure out what is wrong with my setup.

 

HttpOperationException: Operation returned an invalid status code 'BadRequest'

  • Microsoft.PowerBI.Api.V2.Reports.GenerateTokenInGroupWithHttpMessagesAsync(string groupId, string reportKey, GenerateTokenRequest requestParameters, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken)

  • Microsoft.PowerBI.Api.V2.ReportsExtensions.GenerateTokenInGroupAsync(IReports operations, string groupId, string reportKey, GenerateTokenRequest requestParameters, CancellationToken cancellationToken)

  • OE_Tenant.Analytics.ReportEmbedService.GetReportEmbedData() in ReportEmbedService.cs

    +
    1. string embedToken =
  • Abp.Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinallyAndGetResult<T>(Task<T> actualReturnValue, Func<Task> postAction, Action<Exception> finalAction)

  • Abp.Threading.InternalAsyncHelper.AwaitTaskWithFinallyAndGetResult<T>(Task<T> actualReturnValue, Action<Exception, Task> finalAction)

  • OE_Tenant.Web.Areas.Incidents.Controllers.AnalyticsController.Index() in AnalyticsController.cs

    +
    1. var reportEmbedData = await _reportEmbedService.GetReportEmbedData();

Microsoft Dynamics Visuals

$
0
0

Hi,

  There are visuals in microsoft dynamics which gives following design. I want to implement the same in power bi with simliar visual. Can we have following in power bi custom visuals ? Whats the custom visual we need to use:

 

dynamics2.PNG

 

Thanks

Vivek

 

PowerBI SSO integration with Forgerock

$
0
0

Hi,

 

In my organization we are implementing PowerBI service (SaaS) to view reports. My company has SSO authentication enabled through Forgerock. Users would be authenticating through Forgerock and later redirected to PowerBI service.

I am struggling to integrate SSO with PowerBI service and Forgerock. Any inputs / comments would be appreciated.

 

Thanks

Open HTML file generated using R

$
0
0

Hi everyone! I've generated a html file using R, which basically displays a shapefile and a raster with the zooom option (leaflet package).

I want to plot this HTML file in R, is it possible? 
How should I proceed?


+/- icons property (pivotTable/rowHeaders) in json theme

$
0
0

I'm trying to set a default value for +/- icons property (pivotTable/rowHeaders) in my json theme file for Power BI. Unfortunately I'm not able to find the proper name for that property.

Do you know what is the right name for it? Or maybe how to find it?

 

Thanks a lot

Ula


Color theme generates different values than other Office applications

$
0
0

I have created a custom Report Theme with hex codes in a JSON file, the 8 data colors show accurately but the other 5 palette values (3 tints + 2 shades per hex provided) are different from the values in other Microsoft Office applications (PPT, Word, etc). Is this a bug or deliberate? Seems like we'd all want the two to be consistent so PBI reports could match other corporate themed materials... I was also hoping to use PPT regularly for quick mockups of graphs before building them out in PBI...

 

Tints start a step darker in PBI compared to Office

Shades are not as vibrant, very muted in PBI compared to Office

WoSLMIs

 

change Embedd report in sharepoint online dynamically

$
0
0

Hi,

 

     I am able to embedd report in sharepoint online with webpart. Now the tricky part is I want it more dynamic. So A user have side navigation bar which contains many links/buttons, when a user clicks the navigation bar, it should change the report link in the power bi webpart. This will reduce huge effort like designing multiple pages with differnt report and link them to button actions. 

 

Basically I want to change the report link in web part programmitically from another webpart using web part communication. 

 

Thanks

FairlyCoding

Power BI REST API - Get Dataset

$
0
0

Hi

 

Is it possible to get the content of dataset usinng powerbi rest api?

I dont wish to get it through Get Data connector as I want to be able to put these datasets back to SQL or process it using different method of ETL...

 

Thank you

 

connect to redshift using port forwarding

$
0
0

I'm trying to connect  to redhsift , but the current redshift is configured in port 3389 , which is blocked by the company , so we've enabled a port forwarding process to connect to redshift as a temparory solution , 

when I tried to connect to redhsift after logging into bastion host instance , it still gives same error . But I can use SQL Workbench client tool to connect to . Please let me know if any thing has to be configured further .

Bi-Di Relationship Impact on Model Memory Usage

$
0
0

Good Day Everyone:

 

I have a model where I have abused the hell out of Bi-Di relationships and now that I can visually filter slicers / etc by a measure (as recently illustrated by "The Italians"   ), I will begin to unwind this mess.

But, in the meantime, I would really like to know how Bi-Di relationships affect model memory size / footprint / utilization and performance in general. My model is a true star-schema and is not large by any reasonable measurement, but it takes a long time to process and I recently bumped into the dreaded insufficient memory in the allocated (and I think it's probably as a result of my bi-di abuses) and I had to bump up my AAS instance to the next S level as a result.

I'm very resourceful and have searched exhaustively for this information or someone to comment definitively on this and have found nothing. Can someone please help?

 

Thank you for your attention and consideration.

 

With Gratitude,

 

SQLArchitect

 

P S 

 

Yes. obviously I have failed to head the advice of Marco and Alberto to eschew bi-di relationships to this point, and the reason why I have done so is I'm trying to build a BIaaS model for my employer that would allow clients to leverage the model in such a way as to not need much DAX expertise to develop rich visualizations with little to no DAX. I realize this design goal may be unattainable at this point.


Viewing all 17970 articles
Browse latest View live


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