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
Check out new user group experience and if you are a leader please create your group
100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.
User | Count |
---|---|
432 | |
180 | |
101 | |
86 | |
60 |
User | Count |
---|---|
451 | |
196 | |
142 | |
108 | |
87 |