Hi all,
I'm writing a calculated column for ranking that's giving me the standard "There's not enough memory to complete this operation. Please try again later when there may be more memory available." message.
I have two versions, one referencing a measure, one with the measure built into the calculation as a VAR. Both are having the same issue.
rank = VAR x =
CALCULATE(SUM('Sales'[Sales Quantity])) /
CALCULATE(SUM('Sales'[Sales Quantity]),ALL('Sales')) RETURN rankx( all('Product'), x)
The Sales table has about 7M rows, the Product table only 400. I'm running 20GB of memory on this machine, so I've never had any memory issues before with loading or refreshing data, or creating caluations. Any tips?
Hi @RMDNA,
I suggest you could create a calculated column with
CALCULATE(SUM('Sales'[Sales Quantity])) / CALCULATE(SUM('Sales'[Sales Quantity]),ALL('Sales'))
then create the rank measure to optimize the calculation. you could have a try.
In addition, you could have a reference of this similar thread to get other tips.
Best Regards,
Cherry
User | Count |
---|---|
467 | |
207 | |
115 | |
58 | |
57 |
User | Count |
---|---|
488 | |
254 | |
145 | |
78 | |
74 |