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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CBO2404
Helper II
Helper II

Delete tablename in Powerbi layout definition of a report with live connection to a dataset.

I have a Power BI report with a live connection to a dataset. My Power BI PBIX file contains a (reference to a) table, but that table no longer exists in my dataset. In the desktop application, I can’t find it anywhere except in the layout JSON file. It appears approximately 90 times. (I think it was a visual filter on a year in the past.)

How can I remove all occurrences at once? It is present in multiple visual definitions. This is one of the sections in JSON:

"selector": {
"data": [
{
"scopeId": {
"Comparison": {
"ComparisonKind": 0,
"Left": {
"Column": {
"Expression": {
"SourceRef": {
"Entity": "Unused Table"
}
},
"Property": "reverse"
}
},
"Right": {
"Literal": {
"Value": "'aug2023'"
}
}
}
}
}
],
"metadata": "_Measures.CalculateSUM"
}

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @CBO2404 ,

 

The definition of the fields are different from visualization to visualization and also depending  where you are using it, believe the best option is to save your model has a PBIP format and then using visual studio code you can check inside the folder where that specific table is being used and delete those occurrances.

 

https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-overview

 

The new PBIP format savbes each of your pages and visualizations in specific files making it easier to work in a batch manner, and the format is much more readable than the Json Format.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
CBO2404
Helper II
Helper II

Thanks for your response. I saw this as well, but I had hoped there would be a cleaning tool. However, as I understand it, this has to be done manually.

MFelix
Super User
Super User

Hi @CBO2404 ,

 

The definition of the fields are different from visualization to visualization and also depending  where you are using it, believe the best option is to save your model has a PBIP format and then using visual studio code you can check inside the folder where that specific table is being used and delete those occurrances.

 

https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-overview

 

The new PBIP format savbes each of your pages and visualizations in specific files making it easier to work in a batch manner, and the format is much more readable than the Json Format.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors