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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
BaldAccountant
Helper II
Helper II

Help with Query has exceeded available sources error

I am trying to run the following measure in a visual and I am getting the Query has exceeded the available resources message.

 

Here is the measure:

Current Units PVM =
SWITCH(Selected[PVM Selected Current],
"Current",[Cases],
"Current YTD",TOTALYTD([Cases],Dates[Date]),
"Prior YTD",CALCULATE(TOTALYTD([Cases],Dates[Date]),SAMEPERIODLASTYEAR(Dates[Date])),
"YTD Avg",DIVIDE(TOTALYTD([Cases],Dates[Date]),MONTH(MAX(Dates[Date])),0),0)
 
I am only getting the error message when I choose the "YTD Avg" option.  The others work fine.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @BaldAccountant 

Thanks for AnkitaaMishra's reply. The issue occurs when a visual has attempted to query too much data for the server to complete the result with the available resources.

As suggested in the error, you may need to try filtering the visual to reduce the amount of data in the result currently. there is limit. Apply data-point limits and strategies by visual type 

 

And you can follow the tips to optimize your report:

1.Do not expose in a view a column that is not necessary in the Power BI data model.

2.Optimize the DAX calculation used in this visual to use less memory and return faster or change what the visual displays.

3.Remove unnecessary precision or split granularity values to reduce cardinality(Significantly reduce highly unique datetime values by splitting the date and time into separate columns. )

 

This is the related document, you can view this content:

The “Visual Has Exceeded The Available Resources” Error In Power BI

Visual has exceeded the available resources - Table Visual

Error: Resource Governing - Microsoft Power BI Community

resources exceeded - Microsoft Power BI Community

only Premium capacity can increase the per-query memory limit, you can refer to these articles if you need:  What is Power BI Premium?  How to purchase Power BI Premium

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @BaldAccountant 

Thanks for AnkitaaMishra's reply. The issue occurs when a visual has attempted to query too much data for the server to complete the result with the available resources.

As suggested in the error, you may need to try filtering the visual to reduce the amount of data in the result currently. there is limit. Apply data-point limits and strategies by visual type 

 

And you can follow the tips to optimize your report:

1.Do not expose in a view a column that is not necessary in the Power BI data model.

2.Optimize the DAX calculation used in this visual to use less memory and return faster or change what the visual displays.

3.Remove unnecessary precision or split granularity values to reduce cardinality(Significantly reduce highly unique datetime values by splitting the date and time into separate columns. )

 

This is the related document, you can view this content:

The “Visual Has Exceeded The Available Resources” Error In Power BI

Visual has exceeded the available resources - Table Visual

Error: Resource Governing - Microsoft Power BI Community

resources exceeded - Microsoft Power BI Community

only Premium capacity can increase the per-query memory limit, you can refer to these articles if you need:  What is Power BI Premium?  How to purchase Power BI Premium

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

BaldAccountant
Helper II
Helper II

If it helps any, I use this measure in a half dozen other measures to get to a PVM analysis.  If I put all of those measures in a table visual it gives me this error, and it runs fine for Current period and the YTD, but not for the YTD average.   If I take some of the measures off, this calcuation and other remaining measures calculate just fine.

AnkitaaMishra
Super User
Super User

Hi @BaldAccountant , 
Try creating base measures and then use it in your SWITCH statement. 
Example : Create a measure for :
_TotalYTD = TOTALYTD([Cases],Dates[Date])
Then modify the switch statement as : 

Current Units PVM =
SWITCH(Selected[PVM Selected Current],
"Current",[Cases],
"Current YTD",_TotalYTD,
"Prior YTD",CALCULATE(_TotalYTD,SAMEPERIODLASTYEAR(Dates[Date])),
Ankita

Sorry but that did not change the outcome.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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