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

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.

Reply
Anonymous
Not applicable

Lack of computational power (memory)

Hi.

I have tried to make a calcauated collumn for a 200 hour rolling average. 

The code is running fine and return the expected results in my test set of 2,000 rows. 
However, when I implement it on the complete data set of +100,000 rows, i lact memory, (I have 16 gb).

I used the following code:

RollingAvg =
VAR _HourStep = 1 / 24
VAR _CutOffTime = Table1[Date/time] - ( _HourStep * 200 )
RETURN
    CALCULATE (
        AVERAGE ( Table1[Msteam] );
        Table1[Date/time] > _CutOffTime;
            Table1[Date/time] <= _CutOffTime + ( _HourStep * 200 ) ;
        ALL(Table1)
    )
1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Actually, I think 200 hours range are too large to calculate.
When you use calculated column, it will calculate on each row with matched rows(e.g. 10k rows matched), the total calculate amount on your calculated column will increase to 1M * 10k.(it calculated when data model updated)

I'd like to suggest you use measure formula to instead, it calculated when you use it on visuals.

Ten Techniques for Optimising Memory Usage in Microsoft Power BI

Power BI performance best practices

If measure still spend huge amount of memory, you can consider to add more conditions on filters on table to reduce rows which calculated in measure expression.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.