Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

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 3
HotChilli
Super User
Super User

It won't be the index that is causing the problem.  It is the combination of the ALLEXCEPT and the context transition.  Do you want to post a data sample (not a picture) showing the desired result and we can attempt a re-write?

Anonymous
Not applicable

Can you explain more on that error? This site is not letting me post in a table and it seems to be an ongoing issue.

I have 4 columns:

  1. ItemId
  2. Warehouse
  3. Quantity
  4. Index
  5. CompanyId

I need a running total of the quantity based on the preceding line item grouped by the other 4 dimensions.

 

1 -> 15

2 -> 14

3 -> 12

4 -> 9

5 -> 5

 

But it needs to take into account the warehouse, item and company.

amitchandak
Super User
Super User

@Anonymous , refer if this can help

https://www.thebiccountant.com/speedperformance-aspects/

https://blog.crossjoin.co.uk/2020/01/20/visual-has-exceeded-the-available-resources-error-power-bi/

 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.