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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
nemo189
Frequent Visitor

OLE DB error

I have been trying to run this measure , however its giving OLE DB memmory issue .I tried some methods but everytime i am getting this issue.


method 1 :
Measure = CALCULATE(
IF ( 
    MAX('Purchase Order Line'[End Date Time]) <= TODAY(), 
    0, 
    IF ( 
        ('Purchase Details'[Received Amount]) = 0,
        0,
        ('Purchase Details'[Received Amount]) - ('Purchase Details'[Billed Amount])
    ) 
))


Method 2:
Measure = 
Switch(
   True(),
   MAX('Purchase Order Line'[End Date Time])<=TODAY(),0,
    'Purchase Details'[Received Amount] = 0,0,
     TRUE(),'Purchase Details'[Received Amount] - 'Purchase Details'[Billed Amount]
)

Please Help. Thankyou.

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @nemo189 ,

 

Can you provide some further info please:

-1- An example of the data in each of the tables referenced in your measure.

-2- Number of rows are in each of these tables.

-3- Any relationships that affect these tables and the cardinality (1:1, 1:Many etc.).

 

Thanks,

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




cardinality is 1:many bidrectional . purchase order line(1): purchase details(many).
purchase order line has 4.5million rows, and purchase details has 7.5 million rows.
Running in direct query mode. Its saying needed memory is 1038, limit is 1024.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.