To retrieve data from a specific SharePoint folder with Power BI, you can use the SharePoint folder connector in Power Query
Here are the steps to follow:
1.Open Power Query and select Get Data.
2.Select SharePoint folder and paste the URL of the SharePoint site that contains your folder in the Site URL text box.
3.If this is your first time visiting this site, select the appropriate authentication method and enter your credentials.
4.When you select the SharePoint folder you want to use, the file information about all of the files in that SharePoint folder are displayed. In addition, file information about any files in any subfolders is also displayed.
5.Select Combine & Transform Data to combine the data in the files of the selected SharePoint folder and load the data into the Power Query Editor for editing. Or select Combine & Load to load the data from all of the files in the SharePoint folder directly into your app.
For more detailed steps and screenshots, please refer to this document: https://learn.microsoft.com/en-us/power-query/connectors/sharepoint-folder