Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Power BI index creating memory issues

I created a Index through power query (the index function) and it is causing some memory issues.


I need my dax to look at the previous row and this is what I have so far:

Quantity test1 =
CALCULATE(
SUM(Table[Quantity]),
FILTER(ALLEXCEPT(Table,Table[ItemId],Table[CompanyId],Table[Warehouse]
)
,Table[Index] <= MIN(Table[Index])
)
)
I am loading ~30,000 rows into my power bi which is working fine, but once I try to add the measure into my table visual, it is taking up ~24gb of memory before I have to kill it.
 
Is there a way to optimize this so it will not take as much memory to run?

3 Replies