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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hiba_aziz
Frequent Visitor

OLE DB or ODBC error: something is wrong with one or two fields

Hello All,

 

I'm getting this error, when trying to create a calculated columns.

 

hiba_aziz_0-1708970585366.png

 

I'm connected to two data sources: a live connection to Analysis service and an imported table.

 

here  is the dax that is causing the issue:

CALCULATE(
SUM(table 1 [cost]),
table 1 [ID] = CurrentID,
table 1 [date] >= datecurrent,
table 1 [date] <= FirstDateOverCostAB
)

 

 

Note: Table 1 has over 10 million IDs.

 

Appreciate your help!

 

2 REPLIES 2
PijushRoy
Super User
Super User

Hi @hiba_aziz 

I am not sure about CurrentID, datecurrent, FirstDateOverCostAB you are using, are these variable in DAX
Please create a PBIX with few sample record and share the google drive or dropbox or onedrive link




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





hiba_aziz
Frequent Visitor

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.