Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I am trying to calculate the difference between chronological rows in my table but I'm getting a memory error whenever I try to execute the DAX command. The table (AAP - exits) is 45000 rows and the other table referenced (AAP) is 80000. AAP - exits is just a filtered version of AAP but if I change the references to all be to AAP - exits I get a circular reference error. My machine has 8 GB RAM.
Solved! Go to Solution.
Hi @Anonymous ,
I suggest you to try this code to create a calcualted column,
Column 2 =
CALCULATE (
MAX ( AAP[Timestamp] ),
FILTER (
AAP,
AAP[IMO] = EARLIER ( 'AAP - exits'[IMO] )
&& AAP[Timestamp] < EARLIER ( 'AAP - exits'[Timestamp] )
)
)
If you code will still return memory error, please refer to this offical blog to optmize your data model.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I suggest you to try this code to create a calcualted column,
Column 2 =
CALCULATE (
MAX ( AAP[Timestamp] ),
FILTER (
AAP,
AAP[IMO] = EARLIER ( 'AAP - exits'[IMO] )
&& AAP[Timestamp] < EARLIER ( 'AAP - exits'[Timestamp] )
)
)
If you code will still return memory error, please refer to this offical blog to optmize your data model.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, this worked!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 31 | |
| 30 | |
| 27 | |
| 24 | |
| 16 |
| User | Count |
|---|---|
| 54 | |
| 37 | |
| 27 | |
| 24 | |
| 20 |