Following is the procedure to provide access to your excel file present in your OneDrive account in Power BI services:
Set up parameters and connections in Power BI file by following this article.
In the Power BI services, click on "OneLake data hub" and click on your dataset.
Go to File on top and click on Settings as shown below:
Go to the Data source credential under dataset and select edit credential:
Select oAuth2 as authentication method and Organizational as privacy level and sign in with your credential to access the Excel file: