Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Clampazzo
Resolver I
Resolver I

Can't load the data for this visual, internal error

I have a rather simple model.  A fact query that is a direct query and then I have a time dimension that is created via PowerQuery and is joined onto the fact table by a seconds column that is an integer.  

 

When I create a visual with Date, Hour, and a measure (Number of Open Cases) the visual works.  

However, if I use the filters on the right to try and filter on the values (IE:  where open cases is greater than 0).  I get the following error.

Clampazzo_0-1689111933488.png

Can someone tell me what this is and how to fix it?

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi ,  @Clampazzo 

According to your description, you are using direct query mode in Power BI Desktop.

And when you filter the visual you encounter the error code "Internal error: An expression services limit has been reached. Please look for potentially complex expressions in your query, and try to simplify them.".

 

First of all, when we use Direct Query mode to connect to the sql server, then all queries on the visual object, including the measure you write, will be converted into corresponding SQL statements and sent to the data source for query. And this error message is the error message on the SQL SERVER side's limitation:
This issue occurs because SQL Server limits the number of identifiers and constants that can be contained in a single expression of a query. This limit is 65,535. For example, the following query only has one expression.

For this , you can refer to :
MSSQLSERVER_8632 - SQL Server | Microsoft Learn

 

So, for your problem, the only solution is to simplify your dax, or reduce your data size.

And you can also try to see the query from your sql server profile when you load a visual in your power bi desktop.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi ,  @Clampazzo 

According to your description, you are using direct query mode in Power BI Desktop.

And when you filter the visual you encounter the error code "Internal error: An expression services limit has been reached. Please look for potentially complex expressions in your query, and try to simplify them.".

 

First of all, when we use Direct Query mode to connect to the sql server, then all queries on the visual object, including the measure you write, will be converted into corresponding SQL statements and sent to the data source for query. And this error message is the error message on the SQL SERVER side's limitation:
This issue occurs because SQL Server limits the number of identifiers and constants that can be contained in a single expression of a query. This limit is 65,535. For example, the following query only has one expression.

For this , you can refer to :
MSSQLSERVER_8632 - SQL Server | Microsoft Learn

 

So, for your problem, the only solution is to simplify your dax, or reduce your data size.

And you can also try to see the query from your sql server profile when you load a visual in your power bi desktop.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors