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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
BishwaR
Helper V
Helper V

Memory fail

I am not able to save the calculation in the model because the memory is not enough. I have 128 GB memory still it is not able to perform the calculation for column which is derived through a measure.

 

Do I have to upgrade the memory ? Or try to rewrite the DAX. 

I have used Distinct in the Calculate function and I can use Values in place of Distinct. Does it make any difference ?

 

Or should I restrict the number of rows.

 

Thanks

2 REPLIES 2
Anonymous
Not applicable

Hi @BishwaR ,

First, you can find out what consumes memory by looking inside the two links below.

Are Your Power BI Performance Issues Due To High Memory Consumption?

Understanding memory used by Power BI
Then, refer to the following blog to reduce your model size and optimize the DAX:

Optimize/Reduce model:

Data reduction techniques for Import modeling

DirectQuery model guidance in Power BI Desktop

Optimize DAX:

DAX Best Practice Guide

In addition, the following one is the thread with similar problem to yours, check out the solution. Hope he can help you.

Optimize memory

yingyinr_0-1632292030255.png

Best Regards

amitchandak
Super User
Super User

@BishwaR , Try rewrite distinct as

Countx(values(Table[Column]), calculate(Max(Table[Column])))

 

or

countx(summarize(Table[Column]), [Column])

 

Also, Increase data cache management to 16GB

 

Load Setting.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors