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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
imran_uridetech
Frequent Visitor

DAX Calculated Column (in Excel Power Pivot) Returns not enough memory for calculations

Hi There,

 

I am trying to create a calculated column to identify certain records in my Dax database in excel PowerPivot.

 

The calculated column function as follows:

 

ColumnName = SWITCH(TRUE(),
        CALCULATE(COUNTROWS(fData_Al_Time),
                    FILTER(fData_Al_Time,fData_Al_Time[Calced_Class]="Successful"),
                    FILTER(fData_Al_Time,fData_Al_Time[ID]=EARLIER([ID])),
FILTER(fData_Al_Time,fData_Al_Time[Completed Time]<=(EARLIER([Completed Time])+Time(8,0,0)))||
FILTER(fData_Al_Time,fData_Al_Time[Completed Time]>=(EARLIER([Completed Time])-Time(8,0,0))))>0,"Yes","No")
 
There are couple problems in this function,
first the error of True / False inside calculate & also the processing time is very slow as I have around 2 million rows.
 
Any help is appreciated.
 

 

3 REPLIES 3
DimaMD
Solution Sage
Solution Sage

hi @imran_uridetech Can you provide sample data?


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

@DimaMD The sample file has been shared as a link.
Did you manage to have a look.

https://www.dropbox.com/scl/fi/ong5ww9evf2ezkseac83t/SampleData.xlsx?dl=0&rlkey=axqoyxti3kr1wf8s1wmdxbwuf 

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.