Forum Discussion

sahabatsuria's avatar
sahabatsuria
Frequent Visitor
3 months ago
Solved

Does byPath work with Live Connection report?

I have a PBIP report that is connected to a different semantic model as a live connection report. Based on CICD best practice, I read that I should use the following byPath, "byPath": { "path...
  • Kagiyama_yutaka's avatar
    3 months ago

    byPath is for PBIP‑local models, not for pointing at an already‑published one. for live‑connect reports u keep byConnection and just swap workspace/model IDs with deployment rules.

  • v-veshwara-msft's avatar
    3 months ago

    Hi sahabatsuria ,

     

    Thanks for reaching out to Microsoft Fabric Community.

    Kagiyama_yutaka  is right -- byPath is not meant for cross-workspace live connect scenarios. Keep byConnection in your definition.pbir and use deployment pipeline rules to swap the connection string across your dev/test/prod stages.

     

    On the measure editing issue you ran into -- the docs actually cover this. You can maintain two .pbir files in the same project, one with byPath for opening locally in Desktop when you need to work on report-level measures, and one with byConnection for deployment. That way both sides work without conflicting with each other.

     

    Reference: Power BI Desktop project report folder - Power BI | Microsoft Learn

     

    Hope this helps. Please reach out for further assistance.
    Thank you.