It you’re seeing similar screens to below, when refreshing data in Power BI Desktop?
Try the following steps…
Home Tab > Transform Data (image below).
In the new Window that opens:
Refresh Preview > Refresh All (image below).
One the refresh has completed, Close & Apply (image below).
Once the window has closed, test it works by Refreshing as shown in the image below.