ErrorIn DAX3 causes · The Report Doctor detects 1.

Cannot find table '[name]'

Power BI

The message, with the parts that change in brackets:

Query ([line], [column]) Cannot find table '[name]'.

What it means

DAX named a table that the model it ran against does not have. In DAX query view the message starts with Query (line, column), the place in the query where the name is.

Usually
A table was renamed, and a saved query still uses the old nameThe model the query runs against does not have the table yetA text value is in single quotes
Fix
Go to the line and column the message gives, and read the table name there.

It opens the Report Doctor with this message filled in. Nothing is uploaded.

On this page

How the message appears

Copied exactly from each source. A name in square brackets replaced one from someone else's project.

Resolve the error to see results
Query (236, 130) Cannot find table 'FactSales'.
Desktop run: Power BI Desktop 2.159.883.0, Studio fixture F13c. Seen 2026-10-23.[1]Typed from a screenshot
2 more reports of this message
Query (13, 52) Cannot find table '[table name]'.
Microsoft forum: Run a query against a dataset Error - Cannot find table. Read 2026-10-23.[2]Identifiers replaced
Cannot find table '[text value]'.
Microsoft forum: Cannot find table. Read 2026-10-23.[3]Identifiers replacedTyped from a screenshot

What causes it

  1. A table was renamed, and a saved query still uses the old name

    Power BI Desktop saves each DAX query view tab as a file in DAXQueries/. When we renamed the table FactSales to Sales, Desktop rewrote the name everywhere in the model: measures, relationships, field parameters and visuals. It left the saved query tab alone. Running the tab gave this message. Query (236, 130) is the line and the column in the saved file, counted from 1, and it points at the old name.

    Source: Power BI Desktop 2.159.883.0, Studio fixture F13c[1].

    The Report Doctor can't detect this, because the saved query tabs are in DAXQueries/, which the Report Doctor does not read.
  2. The model the query runs against does not have the table yet

    In the quoted thread a DAX query ran from Power Automate against the published semantic model. The table was in the poster's Power BI Desktop file, but that version had not been published. Publishing it fixed the error.

    Source: Run a query against a dataset Error - Cannot find table[2].

    The Report Doctor can't detect this, because the query ran against the published model, not the project files.
  3. A text value is in single quotes

    In the quoted thread a measure compared a column with a text value in single quotes, and the message named that value as a table. The poster's fix was the quotation marks. In DAX, a name in single quotes is a table, and text goes in double quotes.

    Source: Cannot find table[3].

    The Report Doctor finds this. It reports “DAX names something the model does not have”, with the file and line.

The fix

Go to the line and column the message gives, and read the table name there. Change it to the table's current name, or publish the model that has the table. If the name is a text value, put it in double quotes.

In DAXQueries/acceptance.dax:

After the rename
DISTINCTCOUNT ( FactSales[InvoiceLineID] )

Line 1: delete Fact.

Fixed
DISTINCTCOUNT ( Sales[InvoiceLineID] )

Line 236 of our saved query tab. Power BI Desktop renamed the table everywhere in the model, but not here.

The Power BI Report Doctor finds a text value in single quotes, which DAX reads as a table name, and gives the file and line. It does not read saved DAX query tabs, so it cannot find an old table name there. Nothing is uploaded.

When you rename a table, Check a change in Power BI Studio reminds you that saved DAX queries are not changed, so you can fix them yourself.

Other messages that stop a project opening, by the file that causes each: Power BI Desktop can't open a PBIP.

Worth knowing

  • Power BI Desktop saves DAX query view tabs in DAXQueries/ and TMDL view scripts in TMDLScripts/. A rename in Desktop changes neither, so check them after you rename a table.

Sources

  • [1]Desktop run: Power BI Desktop 2.159.883.0, Studio fixture F13c. Our run on Wide World Importers open data: we renamed the table FactSales to Sales, saved, and ran the saved DAX query tab. The message is typed from our screenshot. Seen 2026-10-23.
  • [2]Microsoft forum: Run a query against a dataset Error - Cannot find table. The original post, and the poster's own reply marked as the solution. Read 2026-10-23.
  • [3]Microsoft forum: Cannot find table. The screenshot in the original post, and the poster's own reply marked as the solution. Read 2026-10-23.

Did this page help?

It tells us which pages to fix first.

What you put into the tools never leaves your browser. We count page views and keep them for 90 days. Accept and we also remember this browser, so a return visit is not counted as new. Privacy policy