Power BI Hangs when Refreshing Data

Delroy Green 0 Reputation points
2026-08-08T21:03:07.97+00:00

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

Microsoft 365 and Office | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Delroy Green 0 Reputation points
    2026-08-10T17:59:05.64+00:00

    Thanks Allan! That worked.

    Was this answer helpful?


  2. Allan Solomon Mejia 11,055 Reputation points
    2026-08-08T23:01:33.6633333+00:00

    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:

    • duplicate values in a column expected to be unique;
    • blank/null key values;
    • changed column names;
    • changed data types;
    • text values appearing in previously numeric key columns;
    • substantially more rows than before.

    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:

    • Power BI Desktop version:
    • Number of CSV files:
    • Approximate CSV sizes/row counts:
    • Did the refresh previously work?
    • Does each query refresh successfully in Power Query?

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.