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
uif19085
Helper III
Helper III

Not enough Memory Error over a New Column

Hello, i'm trying to create a column to get the first day when a status is changing and flag it with TRUE, i've tried it
with less data and it works fine but when using over big data it gets me an memeory error, i only have 16GB RAM, what i'm thinking is to find a way to make this formula optimized or maybe if someone can helo me with some other solution. Thank you

Is First Day in State =
ISBLANK (CALCULATE (
    COUNTROWS ( FCA_Test ),
        ALLEXCEPT ( FCA_Test, FCA_Test[id] ),
        FCA_Test[updated] < EARLIER ( FCA_Test[updated] ),
        FCA_Test[status] = EARLIER ( FCA_Test[status] )
))

uif19085_0-1671462414413.png

 

1 REPLY 1
amitchandak
Super User
Super User

@uif19085 , Try to create rank first list this

Rankx(filter(FCA_Test, FCA_Test[id] = earlier(FCA_Test[id]) && FCA_Test[status] = EARLIER ( FCA_Test[status] )),FCA_Test[updated], ,asc,dense)

 

if needed use another column

 

or rank =1 can be used as filter

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.