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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
glee1207
Regular Visitor

Resources error

Hi All,

 

I am currently using a DAX measure for Count which is working fine, but when I change it DistinctCount, I get the following error after 5-10 seconds.

 

Error Message:

The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.. The exception was raised by the IDbCommand interface.

 

Hope you can help me with this.

 

For reference: My data source connection is through Direct Query on a SQL Server with data all the way back from 2006.

 

 

Thanks and Regards

Glee

1 REPLY 1
glee1207
Regular Visitor

I have tried Countrows with Values and Distinct and even used summarize, but still landing on the same error.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors