Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Community,
I am facing the following error while building a Profit & Loss report:
Underlying Error: rsQueryMemoryLimitExceeded
Resource Governance: This query uses more memory than the configured limit.
Consumed memory: 1024 MB, Memory limit: 1024 MB.
Dataset size is small (not a large fact table).
Using Import mode.
The visual is a Matrix with rows from a dimension table (e.g., Schedule Order / BS Order, Year and P&L Amount).
The measure uses a large SWITCH statement to return different financial measures based on selected description.
Solved! Go to Solution.
Hi @Raja10ram ,
Thanks for reaching out to Microsoft Fabric Community.
In addition to the suggestion shared by @AjiteshChurewal , since the error indicates that the query has reached the configured memory limit, please review the Query Memory Limit setting in the Admin Portal under Capacity settings.
If a specific percentage value is configured, you may reset it to 0 and re test the matrix visual. The default value is 0, which allows the maximum memory available for your current SKU.
You may also review the memory limits applicable to your Fabric or Premium capacity and upgrade your SKU to get higher query memory limit.
How to configure workloads in Power BI Premium - Microsoft Fabric | Microsoft Learn
From a DAX perspective, the large text based SWITCH statement combined with repeated REMOVEFILTERS calls can significantly increase query memory usage, especially in a matrix visual with multiple rows and years. You may consider simplifying the logic, reducing repeated context removal, and validating that the dimension table is properly related to the fact table so that aggregation flows through the model instead of being handled inside a single complex measure.
Please let us know if you need any further assistance.
Thank you.
Hi @Raja10ram ,
We wanted to kindly follow up regarding your query. If you need any further assistance, please reach out.
Thank you.
Hi @Raja10ram ,
Just wanted to check if the responses provided were helpful. If further assistance is needed, please reach out.
Thank you.
Hi @Raja10ram ,
Thanks for reaching out to Microsoft Fabric Community.
In addition to the suggestion shared by @AjiteshChurewal , since the error indicates that the query has reached the configured memory limit, please review the Query Memory Limit setting in the Admin Portal under Capacity settings.
If a specific percentage value is configured, you may reset it to 0 and re test the matrix visual. The default value is 0, which allows the maximum memory available for your current SKU.
You may also review the memory limits applicable to your Fabric or Premium capacity and upgrade your SKU to get higher query memory limit.
How to configure workloads in Power BI Premium - Microsoft Fabric | Microsoft Learn
From a DAX perspective, the large text based SWITCH statement combined with repeated REMOVEFILTERS calls can significantly increase query memory usage, especially in a matrix visual with multiple rows and years. You may consider simplifying the logic, reducing repeated context removal, and validating that the dimension table is properly related to the fact table so that aggregation flows through the model instead of being handled inside a single complex measure.
Please let us know if you need any further assistance.
Thank you.
Hi Raja,
Given what you are trying to accomplish, I would recommend linking the dimension table directly with the fact table using a common ID and retrieving the amount through the established relationship.
With an appropriate data model in place, the required values can be derived directly from the fact table aggregation. For this scenario, creating a complex SWITCH-based measure like the current one should not be necessary.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |