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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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