It would be very useful to have the possibility to do it directly in TX.
It must be taken into account that to hide the table so that it cannot be seen from PBI it must be set:
IsHidden = true
IsPrivate = true
In addition, it is necessary to hide all table measures and columns to ensure that PBI does not see the table.