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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
WWC2024
Frequent Visitor

TOTAL ROW IS WRONG

Dear all, 

I am working on calculating the true sale performance, where the maximum actual sale should not exceed the set goal. However, after implementing the following measurement in Power BI, I am noticing discrepancies—the total numbers and percentages are incorrect.
Would you happen to know the reason for this issue? If possible, could you please help me resolve it?
I would really appreciate your insights.
Thank you in advance for your time and support! 

 

total actual sale adjustment =
IF(
    [total actual sale]>=[total goal],
    [total goal],
    [total actual sale]
)

 

WWC2024_1-1745467692928.png

WWC2024_2-1745467766836.png

 

 

 

1 ACCEPTED SOLUTION
mdaatifraza5556
Super User
Super User

Hi @WWC2024 

To Calculate total actual sale adjustment you can use the below DAX.

total actual sale adjustment =
SUMX (
    VALUES ( sales[program] ),
    IF (
       [total actual sale] >= [total goal],
        [total goal],
        [total actual sale]
    )
)
 
Screenshot 2025-04-24 102540.png

 

 
2.    To calculate Total Actual Sale Adjustment % use below DAX.
 
Total Actual Sale Adjustment % =
DIVIDE(
    [Total Actual Sale Adjustment],
    [Total Goal],
    0
)

 

Screenshot 2025-04-24 102700.png

 

If this answers your questions, kindly accept it as a solution and give kudos.

View solution in original post

2 REPLIES 2
mdaatifraza5556
Super User
Super User

Hi @WWC2024 

To Calculate total actual sale adjustment you can use the below DAX.

total actual sale adjustment =
SUMX (
    VALUES ( sales[program] ),
    IF (
       [total actual sale] >= [total goal],
        [total goal],
        [total actual sale]
    )
)
 
Screenshot 2025-04-24 102540.png

 

 
2.    To calculate Total Actual Sale Adjustment % use below DAX.
 
Total Actual Sale Adjustment % =
DIVIDE(
    [Total Actual Sale Adjustment],
    [Total Goal],
    0
)

 

Screenshot 2025-04-24 102700.png

 

If this answers your questions, kindly accept it as a solution and give kudos.

Dear friend, 

I've tested the formula, and it works— Super ! ! !

Thanks for your assist

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.