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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors