Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have created a DAX formula that works in logic. However, when I run it, the error message appears:
"There is not enough memory available to perform this operation. Try again later when more memory may be available."
The problem is with the DAX formula and I would like to make it more efficient. Would it be enough to add a date filtering or does anyone see a concrete improvement possibility to make the DAX formula run faster?
DAX formula:
Solved! Go to Solution.
@Anonymous Couple things to try:
OrdersZSOPA1 =
VAR __MCS = DISTINCT('Sales Invoice Header'[Auftrag MCS])
VAR __Table = FILTER('Sales Invoice Line',[Artike] = "ZSOPA" && [Auftrag MCS] IN __MCS)
VAR __Count = COUNTROWS(__Table) + 0
RETURN
IF(__Count = 0, 1, 0) // assumes headers table is connecte via a column called Auftrag MCS
or try something like:
OrdersZSOPA1 =
VAR __Table =
CALCULATETABLE(
'Sales Invoice Line',
ALLEXCEPT('Sales Invoice Header','Sales Invoice Header'[Auftrag MCS]),
'Sales Invoice Line'[Artikel]="ZSOPA"
)
VAR __Count = COUNTROWS(__Table) + 0
RETURN
IF(__Count = 0, 1, 0)
@Anonymous How many rows of data are you dealing with here?
@Anonymous Couple things to try:
OrdersZSOPA1 =
VAR __MCS = DISTINCT('Sales Invoice Header'[Auftrag MCS])
VAR __Table = FILTER('Sales Invoice Line',[Artike] = "ZSOPA" && [Auftrag MCS] IN __MCS)
VAR __Count = COUNTROWS(__Table) + 0
RETURN
IF(__Count = 0, 1, 0) // assumes headers table is connecte via a column called Auftrag MCS
or try something like:
OrdersZSOPA1 =
VAR __Table =
CALCULATETABLE(
'Sales Invoice Line',
ALLEXCEPT('Sales Invoice Header','Sales Invoice Header'[Auftrag MCS]),
'Sales Invoice Line'[Artikel]="ZSOPA"
)
VAR __Count = COUNTROWS(__Table) + 0
RETURN
IF(__Count = 0, 1, 0)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |