Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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)
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
8 | |
7 |