Forum Discussion
amahmoud
6 months agoNew Member
Incremental refresh
Hi I have created a new Power BI report based on an existing report; I have added a new tab and the new report has been configured to use incremental refresh.. Also both reports are currently pub...
- 6 months ago
A report is replaced only when you publish over the same report object in the workspace. If you publish to the same workspace but Power BI can’t match it to an existing report, it will always create a new one. So instead of re-publishing your report try rebinding your report tho your new semantic model using the code below with NoteBook:
%pip install semantic-link-labsimport sempy_labs.report as rep # List of reports to rebind reports = [ 'ReportName' ] # Rebind operation for each report for report in reports: rep.report_rebind( report = report, dataset = 'NewSemanticModelName', report_workspace = 'WorkspaceName', dataset_workspace = 'WorkspaceName' ) print(f"✓ {report} successfully rebound")
cengizhanarslan
6 months agoSuper User
A report is replaced only when you publish over the same report object in the workspace. If you publish to the same workspace but Power BI can’t match it to an existing report, it will always create a new one. So instead of re-publishing your report try rebinding your report tho your new semantic model using the code below with NoteBook:
%pip install semantic-link-labsimport sempy_labs.report as rep
# List of reports to rebind
reports = [
'ReportName'
]
# Rebind operation for each report
for report in reports:
rep.report_rebind(
report = report,
dataset = 'NewSemanticModelName',
report_workspace = 'WorkspaceName',
dataset_workspace = 'WorkspaceName'
)
print(f"✓ {report} successfully rebound")