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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Euro0681
Helper II
Helper II

Correct Totals for Measure

I have created a measure that contains an "IF" Condition....

Amount = IF( [Quantity] <= 0 || [Price] <= 0 || [Fixed Price] = 0 , 0 , [Price] - [Fixed Price] )

row by row the number are correct, the issue is my total is incorrect.
I've tried using "SumX" to fix the total but i get the error "The Visual Has Exceeded Available Resources" 
Is there any work arounds here or any other suggestions.

FixAmount = SUMX('TABLE',[AMOUNT]) 
(Second Measure for Reference)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Euro0681 ,

According to the error message, it seems that the visual request to query too much data and has exceeded the available resources. Please refer the following blog to solve your problem.

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

And please try to update the formula of measure [FixAmount] as below and check if you can get the visual working...

FixAmount = SUMX ( VALUES ( 'TABLE'[category field] ), [AMOUNT] )

 

In addition, you can refer the following links to fix the incorrect total values issue...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Euro0681 ,

According to the error message, it seems that the visual request to query too much data and has exceeded the available resources. Please refer the following blog to solve your problem.

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

And please try to update the formula of measure [FixAmount] as below and check if you can get the visual working...

FixAmount = SUMX ( VALUES ( 'TABLE'[category field] ), [AMOUNT] )

 

In addition, you can refer the following links to fix the incorrect total values issue...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.