Quantcast
Channel: All Developer posts
Viewing all 49791 articles
Browse latest View live

need your expertise on Modifying custom visual

$
0
0

Hi-, All, 

 

Recently, I try to use card browser to visualize our data.  This custom visual can show images.  But I found it has maxium 4 image limit. Therefore, I want to modify it to let it show more images. 

I downloaded the custom visual project from github and try to edit it in visual studio code. This should only need to change a few setting .

My environment should work fine, because I just followed microsoft tutorial to create a simple custom visual and it works.

I switched to the project folder in powershell and  try to start the project with  pbiviz start.

but it ask to install api  and fail at the step. 

ps_start_error.PNG

I have tried diffrent command,  pbiviz install,  pbiviz update....          None of them works. 

My gut feeling is something simple, like a swich need to turn on, but I don't know it as a newbie. 

Do you have similar experience? how do you fix it?

I would like your input, thanks

 

Wenlei

 

 

 

 

 

 

 

 

 


Re: Apply Colors to selected range in matrix

$
0
0

Is there any way to summarize the values up by color (Total or Orange, Total of Green.. etc.)?, I have been trying to replicate the measure and trying to create a summarized table, unfortunately matrix is not allowing me to drop measure to rows or column.

Re: ADO.Net: Failed to find or load the registered .Net Framework Data Provider

$
0
0

Thank you - yes this works.  The only difference for me is that on my machine the source directory was C:\Users\[User]\AppData\Local\Microsoft\On-premises data gateway (personal mode)

 

You've save me a ton of time, thanks!!!

Reporting tool - Suggest any good ones, please

$
0
0

Hello Everyone

 

Need advice on Reporting Tool.

 

Currently, we are using the Power BI reporting tool only for Senior Management and key decision-makers, but want everyone to use different reporting tool.

 

In my company, we got SSRS, SSAS, and Microsoft Dynamics 2012. I'm new to SSRS & Dynamics.

 

Can anyone suggest whether we can create the report in these and share with organization members or any other reliable and opensource reporting tool available in the market which can be explored and do a better job as a reporting tool and easy to develop?

 

Many Thanks

Power BI Powershell cmdlets erroring

$
0
0

Since yesterday (06/04/2020) the Get-PowerBIReport, Get-PowerBIDataset and Get-PowerBIDashboard powershell cmdlets are failing with the below error example.  This has been happening everytime I run either of the 3 commands. I am authenticating as a Power BI Service admin. Anyone know why or how to fix?

 

Get-PowerBIReport : A task was canceled.
At line:1 char:1
+ Get-PowerBIReport -Scope Organization -WorkspaceId 7a2438ce-0da0-42d0 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...etPowerBIReport:GetPowerBIReport) [Get-PowerBIReport], TaskCanceledException
+ FullyQualifiedErrorId : A task was canceled.,Microsoft.PowerBI.Commands.Reports.GetPowerBIReport

Has a connector been added for the Kaseware application?

Re: Power BI Powershell cmdlets erroring

$
0
0
x-powerbi-error-info: GroupNotAccessible

Are you sure you use the workspace group ID rather than the app group ID ?

Re: Power BI Powershell cmdlets erroring


Re: Power BI Powershell cmdlets erroring

$
0
0

Not sure if it is capacity related. Works for me on a premium SKU using "Get Report In Group"

Personalize visual available for Embedded

$
0
0

Hi,

Do you have any idea when the Personalize Visual will be available in Power BI Embedded? 

Unable to generate Embed Token for Paginated Report with PowerShell

$
0
0

Hi all,

 

I have developed a paginated report using Power BI Report Builder and deployed it to our newly updated Workspace v2 with Power BI Premium dedicated capacity enabled. The capacity size is P1 and paginated reports is enabled. I want to test embedding the paginated report using the javascript demo site: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html# which required an Embed Token, Embed URL, and Report ID. I am attempting to generate an Embed Token for a paginated report using the PowerShell script below:

 

 

$url = "https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken" $body = "{ 'accessLevel': 'View' }" $response = Invoke-PowerBIRestMethod -Url $url -Body $body -Method Post $json = $response | ConvertFrom-Json $json.token

 

 

Which ends with an error message: 

 

 

Invoke-PowerBIRestMethod : One or more errors occurred. At line:24 char:13 + $Response = Invoke-PowerBIRestMethod -Url $URL -Body $Body -Method Ge ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], AggregateException + FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod VERBOSE: Request Uri: https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken VERBOSE: Status Code: NotFound (404)

 

 

When I replace {reportId} with a Power BI report (not paginated) in the same workspace, the script works and generates the token which I'm able to use in the demo site, but it does not work with a paginated report. Is there a different method for generating the embed token for paginated reports? 

Re: need your expertise on Modifying custom visual

$
0
0

Hi ,

If you will have gone through the tutorial, this will be using v3.1 of the visuals SDK (tools) and v2.6 of the API and will indeed work.

There are two things to consider when cloning other project repositories:

  • The dependencies in package.json - if these aren't installed, the project won't build, so if you've not run npm i, then do this first.
  • The version of the SDK it's using. Very few custom visuals projects are up to date with this

From your output, it looks like that project is using 1.11 of the SDK, which is quite old now (> 2 years). At that time, the SDK/API was combined, so you'll need to install that version:

 

npm i -g powerbi-visuals-tools@1.11

 

 Once that's installed, it's probably best to re-ensure that your project's dependencies are correct for this version, so run:

 

npm i

 

From the root folder of your project.

Because you've changed the version of the SDK, you'll need to regenerate your certificate and install it - this was 2 steps on older versions of the SDK:

 

pbiviz --create-cert And then... pbiviz --install-cert

 

You'll be prompted to install the certificate again as per the current tutorial.

At that point you should be able to run pbviz start as normal.

If you want to run that codebase on the latest SDK, you'll need to migrate the code from the older standards to the newer one, as the v3 tooling is much better but uses newer JavaScript standards. There are some instructions here for this, but it's not a small job. There used to be some documentation on this but looks like it was lost in the move to the newer doc site - you might be able to find a cache of it somewhere (I couldn't). For reference this was at https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/.

To minimise frustration in getting the code to build, I would suggest going down the path of sticking with the current version it's on and ensuring the tools/SDK matches (1.11).

One other thing to consider, is if you package that visual, because it already exists in the marketplace, you will need to change its guid in pbiviz.json to be different. Otherwise, Power BI will always load the published version from the marketplace when you import it. Here's some further reading on that (specifically the section titled Importing a Power BI visual from the AppSource marketplace).

Regards,

Daniel

Automatic Page refresh for published reports in PowerBI Service

$
0
0

Hi,

 

I am searching for a way to see automatic page refresh for a report in powerbi service.

I know that Powerbi Desktop has an option for APR, looking similar option in published report.

 

I have developed a report using a direct query connected with SQL server which I can see live numbers in report whenever the DB is updated, but every time the report page got refreshed only after clicking the refresh button, I want to have this as automatic refresh.

 

Pin Visuals to Dashboard and also using Push Dataset does not helped me since I want to use filters.

 

Also I have checked on "Pin Live Page" but again the data is getting refreshed only after refreshing the report manually. 

 

Is there a way to call report api to refresh the page using powershell? or any other workarround?

Re: Row Level Security with PowerBI Embedded

$
0
0

 

 

Hope your dataset contains user email ids & your RLS has configured using USERPRINCIPALNAME()

Refer to this blog, for Dynamic RLS configuration.

https://community.powerbi.com/t5/Community-Blog/Dynamic-Row-Level-Security-Dynamic-RLS/ba-p/787399

https://community.powerbi.com/t5/Service/Dynamic-Row-Level-Security-Single-Role-for-all-the-User/m-p/643064

 

I understand you are using a service principal account, But you have to pass the actual login user's email id in the below code segment. If you have multiple roles, then you have to switch the role name as well.

Example-

username: username@abc.com

role: roleA

var generateTokenRequestParameters = new GenerateTokenRequest("View", null, identities: new List<EffectiveIdentity> { new EffectiveIdentity(username: "username@abc.com", roles: new List<string> { "roleA"}, datasets: new List<string> { "datasetId" }) }); var tokenResponse = await client.Reports.GenerateTokenInGroupAsync("groupId", "reportId", generateTokenRequestParameters);



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂

 

Re: Automatic Page refresh for published reports in PowerBI Service


Re: Cannot find format entry in capabilities.json

$
0
0

Hi ,

These menus are foundational to core and custom visuals, irrespective of type. The changes resulting from properties in these menus are applied to the external visual host rather than the visual sandbox/container.

Because the sandbox is not allowed to access higher-order elements in the page DOM such as the host element, the resulting effects cannot be read or manipulated from the visual and as such are not supplied to it. Therefore it's not possible to modify or remove them from your visual's capabilities, or access them in the enumerateObjectInstances function.

Regards,

Daniel

Re: Has a connector been added for the Kaseware application?

Re: Power BI embedded: load report into web control in winforms application

$
0
0

Hi, I was wanting to try something similar. Was planning to pass credentials through an http request as put the response in the browsercontrol - could this work? If not, could you explain your method, eg what you use the JavaScript for? Many thanks 🙂

Re: Dynamic title when we drill

Re: Row Level Security with PowerBI Embedded

$
0
0

Hi, thanks for the reply! I think I'm starting to understand the problem.

 

These reports are being disseminated to users outside of our organisation, and therefore not in our active directory. They are users stored in a SQL database on one of our sites and not in any way tied to MS.

 

Our goal is to have an embedded report that changes its available data depending on the roles of the user logged into the site. An example of this would be siteUserA has roleA. The PowerBI report has some rows of data that only roleA users should see. When siteUserA reaches our embedded report page, it checks their site roles and then does -something- that tells PowerBI what roles they have within the given report.

 

Is this possible with rls? If not, is there an alternative?

 

We have explored creating multiple reports and fetching a different one depending on the role of the user hitting the report page, but this is hugely impractical as we'd need 20+ versions of a single report!

 

Thanks again,

Nick

Viewing all 49791 articles
Browse latest View live


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