Miscellaneous topics that do not fit into specific categories.
Thanks Allan! That worked.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am using Windows 11 Home and Power BI Desktop and trying to refresh some CSV files in my dashboard. When I hit refresh, Power BI hangs saying "Detecting Relationships...". Does someone know what the issue is and how to resolve it?
greenda4
Miscellaneous topics that do not fit into specific categories.
Thanks Allan! That worked.
Hello @Delroy Green
Since Power BI Desktop is stopping at “Detecting Relationships…”, I would first test whether automatic relationship detection is what's causing the refresh to appear hung.
Power BI Desktop can automatically scan newly loaded tables and try to identify relationships based on the columns and data. Microsoft confirms that this behavior can be controlled under the Data Load relationship settings.
Try the following:
File → Options and settings → Options → Current File → Data Load
Under Relationships, temporarily clear:
Autodetect new relationships after data is loaded
Then select OK, close/reopen the PBIX if necessary, and try Refresh again.
If the refresh completes normally after disabling that option, the CSV files themselves probably aren't the primary problem. Power BI was spending the time evaluating potential relationships in the model.
You can then manage the required relationships manually from:
Modeling → Manage relationships
Microsoft specifically supports manually creating relationships when automatic detection can't reliably determine them.
Why this can happen after a CSV change
I'd also compare the CSV files with the previous versions that refreshed successfully.
Look particularly for changes to columns that participate in relationships, such as:
CustomerID, ProductID, OrderID, Date, and EmployeeID
Check for:
For example, if Power BI previously treated:
Customer[CustomerID]
as the 1 side of a 1:* relationship but the refreshed CSV now contains duplicate CustomerID values, relationship/cardinality processing can become problematic.
Microsoft recommends checking relationship cardinality, matching columns, compatible data types, and values when troubleshooting model relationships.
Another useful isolation test
Open Transform data and refresh the queries individually.
If every CSV query previews and refreshes successfully in Power Query but Close & Apply subsequently stalls at:
Detecting Relationships...
that's another strong indication that the problem occurs during model processing, rather than while Power BI is reading the CSV files.
You could also create a new blank PBIX and import one of the affected CSV files. Then progressively add the others.
If:
CSV 1 -> works
CSV 1 + CSV 2 -> works
CSV 1 + CSV 2 + 3 -> Detecting Relationships hangs
you've narrowed the issue to either the third table or the relationship Power BI is trying to infer from it.
I wouldn't reinstall Power BI as the first troubleshooting step.
First try disabling Autodetect new relationships after data is loaded. Given the exact stage where your refresh stops, that's the quickest way to determine whether the problem is relationship detection rather than CSV import.
If it still hangs with automatic relationship detection disabled, please provide:
Also check Help → About and make sure Power BI Desktop is current.
One final note: Windows 11 Home itself shouldn't normally be the cause of Power BI stopping specifically at relationship detection.
Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.