PowerBINotAuthorizedException when using flow in workspace other than my personal workspace
Re: Custom visual selection: values in the selector are reset
As discussed privately, I haven't got much experience in this area, but I have had a quick look, and if you're using this tutorial, then I think that it's a case of enabling multiSelect on your select call.
You can see the specification for the select method in ISelectionManager here. Notice that there is an optional multiSelect property.
I've checked out the sample repo and can't get it to compile to verify, unfortunately, but I presume that your code would need to look as follows (based on the tutorial; change higlighted in red):
let selectionManager = this.selectionManager; //This must be an anonymous function instead of a lambda because //d3 uses 'this' as the reference to the element that was clicked. bars.on('click', function(d) { selectionManager.select(d.selectionId, true).then((ids: ISelectionId[]) => { bars.attr({ 'fill-opacity': ids.length > 0 ? BarChart.Config.transparentOpacity : BarChart.Config.solidOpacity }); d3.select(this).attr({ 'fill-opacity': BarChart.Config.solidOpacity }); }); (<Event>d3.event).stopPropagation(); });
There's also a great series on YouTube that works through a similar tutorial. It's for an older version of the SDK but a lot of the concepts still work. Here's a timestamped-link to where the above is illustrated, but the whole video is worth watching IMHO as it includes functionality such as dimming unselected data points.
Hopefully this should give you some options to explore. Good luck!
Daniel
Re: Real time Charts
Hi
I've recently provided this answer, which might fill you in on where to get started with exploring this. Hopefully you'll find the linked documentation in there useful.
Good luck!
Daniel
circle card tutorial
I was able to successfully create the circle card from the Microsoft tutorial but then it stopped working for some reason. I tried several times to go thru the tutorial again and recreate it and it just won't work. Is the documentation outdated? Can anybody help me understand which parts needs to be tweaked to get it to work? Please advise. https://docs.microsoft.com/en-us/power-bi/developer/custom-visual-develop-tutorial
Re: circle card tutorial
Hi
Yes the documentation is very out of date for the latest SDK, unfortunately
You can make this work though - before you create the visual, you'll need to make sure the SDK is "downgraded" to work with the version in the tutorial. In this section, modify step 2 as from:
npm i -g powerbi-visuals-tools
to:
npm i -g powerbi-visuals-tools@2.5
You should then be able to continue the tutorial as normal.
Note that the latest SDK changes a lot of how visuals are built (which is the error you're probably seeing - there have been quite a few posts on this subject recently... hopefully MS will update the doc soon...), but the code concepts are pretty much the same, even though you're using an older version.
Good luck!
Daniel
Re: circle card tutorial
It looks like the tutorial but when I test it online it says it can't connect to the visual server. Is there a fix for this too?
Re: circle card tutorial
sorry I had to create a brand new certificate to get it to work. It's all good now. It's crazy that the tutorial on the website would steer you so wrong! thanks for the help!
Re: circle card tutorial
No probs! In fairness, the tutorial was correct... once
But yes, I forgot to mention that a certificate regeneration is required - sorry about that. This needs to happen any time you update the tools BTW.
circle card tutorial formatting number
I finally got the circle card custom visual working but the numbers within the card don't include commas? I tried formatting the data model and the query but that doesn't seem to work. What am I missing?
Re: circle card tutorial formatting number
Hi
You'll need to install powerbi-visuals-utils-formattingutils, and manage in your code to pull the format string from your field and apply it.
If you want specifics, I have a repo with a tutorial very similar to the circle card which covers formatting a measure, if you want to have a look. I did this in a presentation earlier this year, and also contains a PDF copy of the presentation with steps and provides details of each commit, which will help you see changes between steps. Hopefully you can find this useful.
Regards,
Daniel
Embedding reports with viewer permission
Hi,
I am trying to embed reports in a custom web system I've created. It is a python + js project, and I am using the following parameters to generate the token:
Python:
data = { "accessLevel": "View", "allowSaveAs": "false" }
generate_token_url = 'https://api.powerbi.com/v1.0/myorg/groups/%s/reports/%s/GenerateToken'
Javascript
var config= { type: 'report', tokenType: models.TokenType.Embed, accessToken: access_token, embedUrl: embed_url, id: report_id, permissions: models.Permissions.View, pageView: "fitToPage", settings: { filterPaneEnabled: false, navContentPaneEnabled: true } };
All users have Viewer permissions in the workspace, and viewer access to the report. The problem is that all of this does not work, and I receive the message below when I try the GenerateToken API :
{code: "InvalidRequest", message: "Only folder user with reshare permissions can generate embed token"}
If I give some user a higher privilege access, such as workspace member, it works. What does that mean? It is not possible to give only viewer permissions to embedded reports? I can't let users bypass the access control I built in my web system by accessing the reports directly on powerbi.com.
P.S. I already tested by giving share permission to the user (report and dataset) and the same problem occurs
Re: Embedding reports with viewer permission
Hi
Sorry I can't replicate your issue , it's out of our workscope. I've moved this post to Power bi develop forum. I would suggest you create a support ticket on Power BI Support page for better assistance:
White space above/below report in embedded iFrame - is there any fix?
Hi,
I built a report which looks perfect when I open the direct link (screenshot) but when I embed the iFrame (screenshot), a huge white space is added above and beneath the frame. I saw a couple of others with this issue, but none successfully resolved.
Any thoughts? Seems like there could/should be a very simple fix for this.
Many thanks in advance for any guidance.
Josh.
Embedded adding two semi colons to report container iframe
I am developing an app using power bi embedded, everything was working perfectly but yesterday two semicolons started appearing in the top left of the report container. I haven't edited my code at all and they weren't there a few days ago.
If I change the background colour to default they disappear, but when I use transparent they appear.
I am using this to reference the client library:
Python visuals strange sporadic behavior
Hi,
I have a question regarding Python visuals integration in Power BI.
I wanted to test Python visuals behavior and performance in Power BI Embedded so I decided to first create a very simple sample to start with using matplotlib.pyplot and test what I could come up with. Nothing too fancy as shown below.
I then published the new Power BI Desktop report on a testing Workspace I had previously created on Power BI Online
So far so good... Both Python visuals appeared on reportsreen exactly as expected.
I then pushed testing a bit furtherusty and created a new dashboard on which I could integrate both Python visuals
in combination with a "native" Column Chart visuals and see what I could come up with...
The Python visuals would appear for a second in a glimpse...
but it soon totally vanished from screen and was replaced by blank content and only a Power BI logo...
Now if I try to run the newly created dashboardin Power BI Embedded, the "native"Column Chart visual tile is displayed on top left, though none of the Python visual tiles are displayed. Only Power BI logos .
For the sake of testing, I added a piece of client code sending captured information in similar alert popups
in response to dashboardtileClicked event.
This action redirects straight to right report... So I assume both Python visual tiles are there allright!
Now if I click back on "Main Dashboard" navigation button on top left toolbar, the action will bring me back to main dashboard...
Well what do you know!!!? there you are...
I may repeat the same actions a second time... but this time, I would end up with another display result as shown below...
Hummmm... Bizarre! I understand the Python visuals option is still in Beta version, still I'm pretty curious what may cause this kind of sporadic behavior...
Any help on how to deal with this (from someone who experienced the same kind of scenario) would be greatly appreciated.
Thank you for your patience
Re: Embedded adding two semi colons to report container iframe
Here too!
However, we do not use javascript but Json.
Re: Embedded adding two semi colons to report container iframe
Same here !
We have a number of PBI embedded deployments, it's showing up everywhere, and is clearly in the MS code.
It's been like this for a few days now......not good.
I really hope they are working on this.
See records not saving changes
Hi all
When editing the see records section within Power BI Desktop the changes are not being saved.
I have tried to add columns in which are not text, this hasn't worked - I have worked around by converting the column to varchar within the query.
I have then tried to move and rename this newly added column within the 'see records' section however the changes are not saved - again, I have worked around this by editing the query and renaming fields and reorganising them how I want them to appear within the 'see records' section.
These workarounds do solve the issue, however, I am left baffled why there is a whole section within Power BI Desktop which allows you to 'edit' the layout/ordering/include additional fields and not save them.
Has anyone else had this issue and can provide a solution?
Cheers,
Wayne
Re: Embedded adding two semi colons to report container iframe
I'm having the same two semicolins in the topleft of my report container as well.
Re: Embedded adding two semi colons to report container iframe
I'm also getting the same issue, across all embedded reports with transparent background.