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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Memory Error

Hi @v-juanli-msft ,

 

This is in continuation to the solution you provided for my post:

https://community.powerbi.com/t5/Desktop/Can-we-have-this-Dynamic-instead-of-Hard-code/m-p/747278#M3...

 

your code worked well when we have a small data.  

I now added the similar other critierias in the same code which went really very long since we have multiple criterias in this. I now get this Memory error:

Capture123.PNG

Since my Material type is alwasys going to be ZHWA, can we have it common somewhere instead of repeating it several times.?

I believe this should solve the memory error.

 

Or any other alternative would be  greatly appreacited!

 

Thanks,

Tejaswi

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at the links below.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at the links below.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-chuncz-msft ,

 

These documents are indeed very helpful. 

Using Var function resolved my memory issue.

 

Thanks,

Tejaswi

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.