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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
manoj_0911
Kudo Collector
Kudo Collector

PROD Workspace Query Memory Limit

Power BI Pro - Report Loads but Visual Queries Fail with rsQueryMemoryLimitExceeded (1331 MB Memory Limit)

 

Hi Team,

We are experiencing a query memory issue in a Power BI Pro (Shared Capacity) workspace.

Environment

  • Workspace Type: Power BI Pro (Shared Capacity)
  • Dataset Mode: Import
  • Refresh Status: Successful
  • Data Source: Amazon Athena

Issue

The dataset refresh completes successfully without errors.

However, when users open the report in the Power BI Service, some visuals fail with the following error:

rsQueryMemoryLimitExceeded

Technical details:

  • Consumed memory: 1331 MB
  • Memory limit: 1331 MB

Observations

  • Dataset refresh completes successfully.
  • Dataset is available in the Service.
  • Only report visuals fail while executing queries.
  • Desktop works without issues.
  • The issue occurs only in the Power BI Service.

Questions

  1. How can we determine which visual or DAX query is consuming the excessive memory?
  2. Are there Microsoft tools or diagnostics available to identify the expensive query?
  3. Is this memory limit fixed for Power BI Pro Shared Capacity?
  4. Are there recommended DAX optimization techniques or report design best practices to reduce query memory consumption?
  5. Would moving the workspace to Fabric/Premium be the only solution if optimization is insufficient?

Any guidance would be appreciated.

Thank you.

1 ACCEPTED SOLUTION
powerbidev123
Solution Sage
Solution Sage

Hi @manoj_0911 

rsQueryMemoryLimitExceeded in Power BI Service usually means one visual’s query exceeded the per-query memory limit of shared capacity.

What this means

Your refresh is fine, the dataset is available, but when a user opens the report:

  • a visual triggers a DAX query,
  • the query becomes too expensive in memory,
  • Power BI Service cancels it.

Because Desktop works, the issue is often:

  • Desktop is more permissive during testing, or
  • the Service/shared capacity limit is lower than what the Desktop session effectively experiences.

Answers to your questions

1) How can we determine which visual or DAX query is consuming the excessive memory?

Use Performance Analyzer in Power BI Desktop to identify the slow/heavy visual.

How

  • Open the report in Desktop
  • Go to View > Performance Analyzer
  • Start recording
  • Refresh visuals one at a time
  • Find the visual with the longest query time / most expensive DAX

Then:

  • copy the DAX query
  • inspect the measure logic
  • simplify iterators, filters, and cross joins

Microsoft doc:


2) Are there Microsoft tools or diagnostics available to identify the expensive query?

Yes.

Best Microsoft tools


3) Is this memory limit fixed for Power BI Pro Shared Capacity?

Yes, effectively fixed.
In shared capacity, query memory limits are not something you can tune like Premium. If a visual exceeds the limit, the query is canceled.

Microsoft docs related to visual query limits:


4) Recommended DAX optimization techniques or report design best practices

Yes — these are the main ones:

DAX optimization

  • Avoid heavy iterators like SUMX, FILTER, RANKX unless necessary
  • Reduce row-by-row calculations
  • Push aggregation into the model where possible
  • Prefer simple measures over nested complex measures
  • Avoid repeated logic in multiple measures
  • Use variables (VAR) to avoid recalculating the same expression
  • Reduce cardinality in group-by columns

Report design optimization

  • Reduce the number of fields in a visual
  • Avoid overly dense matrices with many row/column combinations
  • Split large visuals into smaller ones
  • Reduce the number of visuals per page
  • Avoid using many high-cardinality slicers together
  • Use summary tables or aggregation tables for top-level visuals
  • Hide unused columns/measures from report view

Microsoft guidance:


5) Would moving the workspace to Fabric/Premium be the only solution if optimization is insufficient?

Yes, in practice that is the main path if the report genuinely needs more query memory than shared capacity allows.

Premium/Fabric can provide:

  • higher query memory limits,
  • better capacity management,
  • more room for expensive visuals and complex DAX.

So the progression is usually:

  1. Optimize visual and DAX
  2. Reduce model complexity
  3. If still failing, move to Fabric/Premium



View solution in original post

1 REPLY 1
powerbidev123
Solution Sage
Solution Sage

Hi @manoj_0911 

rsQueryMemoryLimitExceeded in Power BI Service usually means one visual’s query exceeded the per-query memory limit of shared capacity.

What this means

Your refresh is fine, the dataset is available, but when a user opens the report:

  • a visual triggers a DAX query,
  • the query becomes too expensive in memory,
  • Power BI Service cancels it.

Because Desktop works, the issue is often:

  • Desktop is more permissive during testing, or
  • the Service/shared capacity limit is lower than what the Desktop session effectively experiences.

Answers to your questions

1) How can we determine which visual or DAX query is consuming the excessive memory?

Use Performance Analyzer in Power BI Desktop to identify the slow/heavy visual.

How

  • Open the report in Desktop
  • Go to View > Performance Analyzer
  • Start recording
  • Refresh visuals one at a time
  • Find the visual with the longest query time / most expensive DAX

Then:

  • copy the DAX query
  • inspect the measure logic
  • simplify iterators, filters, and cross joins

Microsoft doc:


2) Are there Microsoft tools or diagnostics available to identify the expensive query?

Yes.

Best Microsoft tools


3) Is this memory limit fixed for Power BI Pro Shared Capacity?

Yes, effectively fixed.
In shared capacity, query memory limits are not something you can tune like Premium. If a visual exceeds the limit, the query is canceled.

Microsoft docs related to visual query limits:


4) Recommended DAX optimization techniques or report design best practices

Yes — these are the main ones:

DAX optimization

  • Avoid heavy iterators like SUMX, FILTER, RANKX unless necessary
  • Reduce row-by-row calculations
  • Push aggregation into the model where possible
  • Prefer simple measures over nested complex measures
  • Avoid repeated logic in multiple measures
  • Use variables (VAR) to avoid recalculating the same expression
  • Reduce cardinality in group-by columns

Report design optimization

  • Reduce the number of fields in a visual
  • Avoid overly dense matrices with many row/column combinations
  • Split large visuals into smaller ones
  • Reduce the number of visuals per page
  • Avoid using many high-cardinality slicers together
  • Use summary tables or aggregation tables for top-level visuals
  • Hide unused columns/measures from report view

Microsoft guidance:


5) Would moving the workspace to Fabric/Premium be the only solution if optimization is insufficient?

Yes, in practice that is the main path if the report genuinely needs more query memory than shared capacity allows.

Premium/Fabric can provide:

  • higher query memory limits,
  • better capacity management,
  • more room for expensive visuals and complex DAX.

So the progression is usually:

  1. Optimize visual and DAX
  2. Reduce model complexity
  3. If still failing, move to Fabric/Premium



Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors