Power BI - change existing visuals - powerbi

I would like to modify the existing table visual to add a text instead of the whole URL when showing a column as a URL.
I modified it to my needs in Visual Studio, it works, but how would I export it to pbwiz, in order to use it in Power BI ?

Translating our built-in visual into a visual you can use through our developer tools will require you to trace many dependencies and integrate those into a single .ts file. I think it would be better to share your repo and approach with us by filing an issue in the Microsoft/PowerBI-visuals repo and we'd figure out if the change you're making is generic enough to include in the base repo.

Related

Rename columns in dataset without breaking existing reports

We have come to the situation of wanting to rename some columns in our PowerBI reports for clarity reasons and also replace some raw numbers with measures, so we can add logic to them. However renaming fields breaks the visuals in reports in the PowerBI service that have been created based on the dataset.
Fixing all the visuals by hand is absolutly not feasible for us, as we have hundereds of reports with dozens of visuals each, over multiple datasets. Is there any way to solve this, maybe edit the deployed reports programmatically somehow or are we just stuck with the field naming and layout we chose?
Thanks for any help!
We found a solution to this, while it might not be a straightforward process, it allows to programmatically alter reports and fix them in JSON format. The command line toolset pbi-tools allows to decompile and recompile reports like
pbi-tools extract reportfile.pbix
pbi-tools compile reportfolder
and create a series of editable JSON files. In our tests it was even possible to substitute a data model with this approach. Also this is useful for version control of reports.
Credit to AlexisOlson on the PowerBI forum.
Fixing all the visuals by hand is absolutly not feasible for us, as we have hundereds of reports with dozens of visuals each, over multiple datasets.
The only general solution to breaking changes in a shared Dataset is to introduce a new version, and keep both for a period of time.
For this specific change, you could introduce a new Perspective in the model (using Tabular Editor) which new reports could choose.
Another option if the Dataset is large, and you don't introduce any structural changes, is to have one model reference the other model using DirectQuery, which is currently a preview feature.

Add custom javascript snippet/file to handle dynamic translations - load in Power BI Service

I've read multiple sources about including javascript in Power BI and how this is done. What I've found so far is, that this can be achieved through the Power BI Javascript API or through a Custom Visual (I'm rather new to Power BI so please correct me if I'm wrong).
However, I haven't found any source stating whether it's possible to alter other visuals using javascript implemented this way?
The goal is being able to dynamically translating headers of tables (no native way in Power BI of doing that yet except of duplicating data as far as I know; which we'd rather avoid).
So in short the questions is:
Is it possible to have any javascript implemented through either a Custom Visual or the Javascript API that can alter and translate the headers of a table on a given page in the report?
Your custom visual would not be able to affect other visuals in the way you're hoping for.
While it's not dynamic, you can always alias any fields or measures added to a PBI visual by double clicking the item in the field well and typing over the default name.

Upgrade existing visual

I would like to take existing visual in PowerBI (table) and add a new (simple) feature. Can this be done?
I can create new visual in PowerBI devtools but in this I can not use existing visual. If I take it from github, it is not just one ts file, but many related.
Or can I create visual which will extend (like in OOP) current visual? Which would call current update and do something else.

Power BI how to create and add new visualization to PowerBIVisualsPlayground?

I'm trying to learn how to create a new power bi visualization. I've cloned the GitHub repository and looked to the code but did not manage to fully understand the architecture. I've added a testVisualization.ts in visuals folder and testVisualization.capabilities.ts in the capabilities folder. What code do I need to add and where in order to see my testVisualization in the PowerBIVisualsPlayground?? A step by step mini example would be appreciated.
Take a look at how I did it for my repo. The repo is somewhat behind the master branch, but you should see all the changes I made to make it work. Look at the changes to the files under the playground path. If you don't need a specific sample data view (I did) you can not make that part of the change.
https://github.com/Microsoft/PowerBI-visuals/compare/master...LukaszPawlowski-MS:master

Where do I put custom webpart code in sharepoint 2010?

I'm fairly new to Sharepoint, but it's vital to a current project I'm working on.
As part of the project, I need to use audience targeting to control who can see individual list entries.
I know there's no OOTB solution, but I found the following blog that looks like it's exactly what I need:
http://blogs.msdn.com/b/syedi/archive/2012/07/31/item-level-audience-targeting-in-xsltlistviewwebpart.aspx
My problem is that being new to Sharepoint (and MS-based dev entirely), I don't know what to do with the code. I think I need to create a customer web part, is that correct?
I've Googled and checked the few sharepoint references we have but everything I can find assumes a certain level of knowledge that I just don't have with SP2010. Can anyone give me a step by step to using the above code?