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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
AlvinLy
Helper II
Helper II

OLE DB or ODBC error: Specified column in the 'SUMMARIZE' function as not found in the input table

Hello,

 

I have an odd situation here.

 

So I have a direct query fact table (connected to our data warehouse) and several dimension tables in my Power BI setup. This is the error I get when I put this measure into my visual

AlvinLy_0-1714082311860.png

 

Here are some more information on this measure. The code of this measure is as follows:

 

Sch Start Period Measure = 
VAR CP = SELECTEDVALUE(Fact_Table[Control Point Number])
VAR DelID = SELECTEDVALUE(Fact_Table[Deliverable ID])
VAR enddate = SELECTEDVALUE(Fact_Table[Schedule Date])
VAR startdate = 
IF( CP > 1,
    CALCULATE(
        MIN(Fact_Table[Schedule Date]),
        Filter(ALL(Fact_Table), Fact_Table[Deliverable ID] = DelID),
        Filter(All(Fact_Table), Fact_Table[Control Point Number] = CP-1)
    ),
    enddate
)
RETURN
CALCULATE(
    Min(Date_Table[Period End Date]),
    Filter(Date_Table, Date_Table[Period End Date] > startdate)
)

//startdate

 

 

If you notice i have //startdate at the bottom. I was testing if anywhere else in my code there were issues and there wasn't (ie the startdate formula in the measure works as intended). The only part that seems to be giving me an error is the calculate after the RETURN.  

 

Note that the table names were altered and the error was partially redacted for privacy concerns

 

Any ideas on what might be causing this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AlvinLy 

 

Your DAX measure is quite complex and combines data from different contexts. In DirectQuery mode, not all filtering actions behave as they would in an in-memory model (Import mode). Here are some points to consider:

Complex Filters: The filters and calculations you're applying might be too complex or might result in a query that SQL Server (or whatever your backend is) cannot process efficiently or at all. In DirectQuery mode, each DAX expression translates into a SQL query executed on the database, and some SQL servers have limitations on subqueries or complex joins.

Filter() Function Over DirectQuery: Using 'Filter(ALL(...))' in DirectQuery mode can sometimes lead to performance issues or limitations because it requires scanning the entire table. The combination of these filters might be generating a query that is not supported or is too complex.

 

 

 

 

Best Regards,

Jayleny

 

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
Anonymous
Not applicable

Hi @AlvinLy 

 

Your DAX measure is quite complex and combines data from different contexts. In DirectQuery mode, not all filtering actions behave as they would in an in-memory model (Import mode). Here are some points to consider:

Complex Filters: The filters and calculations you're applying might be too complex or might result in a query that SQL Server (or whatever your backend is) cannot process efficiently or at all. In DirectQuery mode, each DAX expression translates into a SQL query executed on the database, and some SQL servers have limitations on subqueries or complex joins.

Filter() Function Over DirectQuery: Using 'Filter(ALL(...))' in DirectQuery mode can sometimes lead to performance issues or limitations because it requires scanning the entire table. The combination of these filters might be generating a query that is not supported or is too complex.

 

 

 

 

Best Regards,

Jayleny

 

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

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors