Forum Discussion

imran_uridetech's avatar
imran_uridetech
Frequent Visitor
3 years ago

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.