Forum Discussion
Reuse Semantic Model Logic in Power BI
Hi, I’d like to ask about duplicating a semantic model in Power BI. Here’s my case:
I have two partner categories, Partner A and Partner B. Each partner has its own data source.
I’ve already created calculated columns and tables for Partner A, and now I want to apply the same calculations to Partner B. The logic of the calculations is exactly the same, only the data source is different.
How can I duplicate these calculations for Partner B without having to recreate everything from scratch?
Hi syairdafiq ,
To effectively reuse your semantic model logic for Partner A and Partner B with different data sources, you can create a parameterized data source in Power BI. This involves creating a parameter in Power Query to represent the partner name or data path, and then using that parameter in your query's source step. By doing so, you can dynamically switch between data sources without rebuilding your model. All calculated columns, measures, and visuals built on this query will automatically adapt when the parameter value changes.
Power Query - Using parameters
6 Replies
- lbendlinSuper User
If the table and column names are the same you can copy/paste between the reports. If you want a copy of the semantic model then save it under a different name.
- danextianSuper User
You can save a copy of pbix containing the model and report rename it. That aside, why not use RLS? I'm thinking ahead here. Duplicating a model is one thing but trying to sync the changes between the two is another.
- manvishah17Solution Supplier
Hi syairdafiq ,
To effectively reuse your semantic model logic for Partner A and Partner B with different data sources, you can create a parameterized data source in Power BI. This involves creating a parameter in Power Query to represent the partner name or data path, and then using that parameter in your query's source step. By doing so, you can dynamically switch between data sources without rebuilding your model. All calculated columns, measures, and visuals built on this query will automatically adapt when the parameter value changes.
Power Query - Using parameters - v-sgandrathiCommunity Support
Hi syairdafiq
Has your issue been resolved?If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.
If yes, kindly accept the useful reply as a solution and give us Kudos. It would be appreciated.
Thank you for your understanding!
Thank oyu.
- v-sgandrathiCommunity Support
Hi syairdafiq ,
We wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If my answer resolved your query, please mark it as "Accept Answer" and give Kudos if it was helpful.
If you need any further assistance, feel free to reach out.
Thank you for being a valued member of the Microsoft Fabric Community Forum!
- v-sgandrathiCommunity Support
Hi syairdafiq ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Thank you.