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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.