Forum Discussion

BaldAccountant's avatar
BaldAccountant
Helper III
1 year ago
Solved

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.

4 Replies