Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Cubist
Advocate II
Advocate II

How is fast iteration coding done with a PBI Custom Visual?

Say you have developed a custom visual, how can you make an update and see the results quickly?

 

The approach below seems too slow for practical rapid interation and development.

 

The only way I know how to update a visual is:

  1. Open the visual's code file (visual.ts), make some changes, save the code file
  2. Open pbiviz.json
  3. Make up a fake guid, use it to replace the existing guid, then save pbiviz.json
  4. From the commmand line run "pbiviz package"
  5. In PBI Desktop delete the visual, which causes auto deletion of everything in the designer, and of course also causes auto deletion of any data bindings or property settings.
  6. In PBI Desktop import the visual again.
  7. Create again the auto deleted visual instances, bindings, and properties needed to test the updated visual.

For reference, the people in the linked posts below also seem to have struggled with the update process after a code change is made.

 

I hope code change iterations are not really this cumbersome!  

 

Thank you -

 

1/27/2017 Modified Power BI custom visual and generated new pbiviz file, but not seeing changes
https://community.powerbi.com/t5/Developer/Modified-Power-BI-custom-visual-and-generated-new-pbiviz-...

 

12/23/2016 Tweaking custom visual: change doesn't save
http://community.powerbi.com/t5/Developer/Tweaking-an-existing-Custom-Visual-the-change-is-successfu...

 

4/28/2018 Problems updating Custom Visuals in Power BI Desktop
https://community.powerbi.com/t5/Developer/Problems-updating-Custom-Visuals-in-Power-BI-Desktop/td-p...

5 REPLIES 5
v-chuncz-msft
Community Support
Community Support

@Cubist,

 

Thanks for your feedback. You may submit an idea or leave a comment on GitHub.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Sam (@v-chuncz-msft),

 

Can you please clarify which one of these is implied by your response?

  1. The steps in my original post are currently the only way to iterate through code change cycles for custom visuals.
  2. You don't actually know one way or another, but wanted to post a token reply to boost your stats.

 

I don't mean to be cynical, but to be frank (1) seems hard to believe.  Consider that in everyday web development, when a code change is merely typed, the change can be automatically saved, compiled, and refreshed for display within a few seconds. 

 

Thank you -

 

 

 

 

 

@Cubist,

 

I'm not one of the developers. I mean the way I know to update an exising custom visual is to run command pbiviz package by using the PowerBI command line tools (recommended). For custom visuals that are not developed by new tools, you may try to rename the .pbiviz file to a .zip file, and change .css and .js file accordingly.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So I take it your answer is choice #2.

What I don't understand is, if you aren't a developer, why post replies to a developer question on a developer forum?

It may boost your stats to fire off a generic post saying, hey, why don't you make a feature suggestion?

However for everyone else it just wastes time and has no benefit.

If you recall, no one asked for a new feature.

@Cubist,

 

I wanted to provide timely response. Though there are currently a few limitations, we can see the progress regularly, so stay tuned.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors