Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
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
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 7 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 15 | |
| 13 | |
| 11 | |
| 9 |