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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HxH
Helper II
Helper II

Not enough memory to complete this operation - column creation

Hi guys, 

this is a follow up to another topic when a user kindly provided a measure to calculate time not working in a table
This is the measure: 

Time not working =
var currentUser= 'TABLE'[UserID]
var currentdate = 'TABLE'[Date]
var currentlog = 'TABLE'[logs]
var currenttime = 'TABLE'[Datetime]
var nexttime = IF(currentlog=0,CALCULATE(MIN('TABLE'[Datetime]),ALL('TABLE'),'TABLE'[Datetime]>currenttime,'TABLE'[UserID]=currentUser,'TABLE'[Date]=currentdate,'TABLE'[logs]=1))
var timenotworking = DATEDIFF(currenttime,nexttime,MINUTE)
return
timenotworking

The table has 107k rows and 9 columns. It keeps telling me that there is not enough memory to perform the operation. The point is: i can create as much columns as I want in the table, this is the only one that won't work for memory problems. Could PBI be referring to another kind of problem with the wrong message error? Do you know what's happening? I tried looking at previous threads but in all the other situations the problem seems justified (there's people with millions of rows, other trying to load 57 tables and so on), my case is weird because I can create as much columns as I want beside this one so I can't figure it out. 

I've already done the standard stuff like disabling auto/date time and allow data preview to dowload in background

Thanks 
1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @HxH 

 

Replicate you calculation in Query Editor or check in Task Manager your memory behavior when you trying to calculate this column.

 

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski



View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @HxH 

 

Replicate you calculation in Query Editor or check in Task Manager your memory behavior when you trying to calculate this column.

 

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski



Memory in use goes up to 96-97% and then it gives me the error message. Looks like I will need to do some work in power query to improve the model or change the measure. Thanks 

Mariusz
Community Champion
Community Champion

Hi @HxH 

 

How much RAM do you have?

 

Best Regards,
Mariusz

Please feel free to connect with me.
Mariusz Repczynski

 

8 GB 

Mariusz
Community Champion
Community Champion

Hi @HxH 

 

If you do a lot of work in power bi, you probably want to upgrade as that's where your model is being stored.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.