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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Custom Visuals: Building a Custom Template

I'm looking at building a template for custom visuals, my plan is to build a generator using Yeoman that will run the pbiviz new CLI command and then update the output and add any files I want as part of my template.

 

I can see that the CLI already has a templating option, is there anyway I can utilise this to build a custom template?

 

Or does anyone know of something similar being done for Power BI Custom Visuals? I've searched and searched but can't find anyone trying to do this specific task.

 

Many thanks

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous,

You can fork the powerbi-visuals-tools repository and add your own template to the list, and even request for it to be pulled into the main repo, if you feel it's going to help other developers.

For a while, I've worked with the idea of setting up a template repository on GitHub and I used this for a number of visual projects. You can create a new repo from this template repository and this is quite a neat shortcut. I haven't updated it in a while, as I've been working on a new architecture pattern for my own visuals, which I haven't quite perfected yet (at which point I most likely will do), but here's my repository if you want to take a look.

Good luck!

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

1 REPLY 1
dm-p
Super User
Super User

Hi @Anonymous,

You can fork the powerbi-visuals-tools repository and add your own template to the list, and even request for it to be pulled into the main repo, if you feel it's going to help other developers.

For a while, I've worked with the idea of setting up a template repository on GitHub and I used this for a number of visual projects. You can create a new repo from this template repository and this is quite a neat shortcut. I haven't updated it in a while, as I've been working on a new architecture pattern for my own visuals, which I haven't quite perfected yet (at which point I most likely will do), but here's my repository if you want to take a look.

Good luck!

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.