Hi Ahmed
I'm AnnaThomas and I'd happily help you with your question. In this Forum, we are Microsoft consumers just like yourself.
To change the connection source for a Power Pivot table, you can use the Power Pivot add-in to edit the connection information. Here are the steps you can follow:
In the Power Pivot window, click Home > Connections > Existing Connections. Select the current database connection and click Edit. In the Table Import Wizard that opens, you can change the connection information such as the file, feed, or database used as a source, its properties, or other provider-specific connection options
Learn more: https://support.microsoft.com/office/9cb508d3-1a83-4d83-a944-700ce41332b6
I hope this helps ;-), let me know if this is contrary to what you need, I would still be helpful to answer more of your questions.
Best Regards,
AnnaThomas
Give back to the community. Help the next person with this problem by indicating whether this answer solved your problem. Click Yes or No at the bottom.