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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Roll Forward / Use existing Model for new model

Hi

 

I have developed a generic model in Visual Studio (Tabular Model). I would like to use this as base as far as possible in order to apply it for other clients. The other clients would same server, but different DW DB's and excel files as source.

 

The DB's have the same structure so I would like to save the time having to import model, create same measures and same relationships for each new client I am creating a model for. 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, import the new model into the existing pbix. In this case, it can only be connected in Direct Query or Live connection mode.

For how to import models created in visual studio into powerbi, please refer to the following blog:

Phil Seamark on DAX

Working with Power BI Data Models in Visual Studio Code (sqlshack.com)

 

After successfully importing the model, you can create measure and relationships in PowerBI. 

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @v-henryk-mstf 

 

Not sure if I was unclear.

I was referring to essentially creating a copy of the MODEL.bim file for the new MODEL and then changing the DB source for the new model. This opposed to just changing the source of the tabular model source inside the PBIT file..

What would be the easiest way to "COPY the existing model"? Create a new project in VS, copy the code from the existing model and change the source DB name in the code before saving the changes to the code in the new model file?

@amitchandak  - any ideas here?

when I refer to VIEW CODE, I mean this:

nikilouwgmail_0-1617875126983.png

 





v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

According to your description, import the new model into the existing pbix. In this case, it can only be connected in Direct Query or Live connection mode.

For how to import models created in visual studio into powerbi, please refer to the following blog:

Phil Seamark on DAX

Working with Power BI Data Models in Visual Studio Code (sqlshack.com)

 

After successfully importing the model, you can create measure and relationships in PowerBI. 

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.