Power BI Tip #22

Your copy of the report opens the shared model for editing

A copy of a report folder keeps the relative model reference in definition.pbir, and byPath opens that model in full edit mode - so the model behind a copy is one folder other reports read too.

You copy a report folder to build a variant - a different audience for the same data - and you open the copy to add a measure. Both items now read the same model folder.

The copy is only a copy of the report. Its definition.pbir still carries the reference to the model:

"datasetReference": { "byPath": { "path": "../Shared.Dataset" } }

That path is relative to the report folder, so the copy resolves to the same model the original does. In Microsoft’s own sample, twelve report folders under src/power-bi/ all carry "path": "../Shared.Dataset", six to each of two model folders: the reports are separate, the models are not.

The page documenting the file says what byPath does with that model:

byPath - Specifies a relative path to the target semantic model folder. Absolute paths aren’t supported. A forward slash (/) is used as a folder separator. When used, Power BI Desktop also opens the semantic model in full edit mode.

Full edit mode is what makes this matter: the copy opens the folder the other reports read, for change. The model is not part of the copy.

Give the variant its own model: copy the model folder beside the report copy, then set the copy’s datasetReference.byPath.path to it ("../<YourModel>.Dataset"). If the variant should read the shared model without opening it for edit, point it at that model in its Fabric workspace with a byConnection reference - Desktop does not open the model in edit mode for one.