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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
dwallerius
Frequent Visitor

DAX Formula to capture Total Sales vs. Target Goal to get % Achieved

Help! I am trying to get the % of Goal Achieved, but the result of my calculation is giving me a whacked out %.  What is causing this?

 

dwallerius_0-1741958018336.png

 

1 ACCEPTED SOLUTION
Deku
Community Champion
Community Champion

What is the measurement you are try to made, it is not clear? Your % are massive because you * 100.

 

This? 

Deku_0-1741990530572.png

 

DIVIDE(
    'System Users'[Total Est Share],
    'System Users'[Target]
    ,0
)

 

 

Or are you looking for the overall % achieved

Deku_1-1741990703391.png

 

DIVIDE(
    sum( 'System Users'[Total Est Share] ),
    sum ('System Users'[Target] )
    ,0
)

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

6 REPLIES 6
Deku
Community Champion
Community Champion

What is the measurement you are try to made, it is not clear? Your % are massive because you * 100.

 

This? 

Deku_0-1741990530572.png

 

DIVIDE(
    'System Users'[Total Est Share],
    'System Users'[Target]
    ,0
)

 

 

Or are you looking for the overall % achieved

Deku_1-1741990703391.png

 

DIVIDE(
    sum( 'System Users'[Total Est Share] ),
    sum ('System Users'[Target] )
    ,0
)

 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Thank you, I actually figured it out on Friday.  I had to change it from % to whole number.

techies
Solution Supplier
Solution Supplier

Hi @dwallerius please try this

 

% Achieved =
SUMX(
'System Users',
DIVIDE('System Users'[Total Est. Share], 'System Users'[Target], 0) * 100
)

Unfortunately, that didn't work either.  Different result, but still wacked.

dwallerius_0-1741975568049.png

 

bhanu_gautam
Super User
Super User

@dwallerius To calculate the percentage of goal achieved for each row, you can use calculated column instead of a measure

% Achieved = DIVIDE('System Users'[Total Est. Share], 'System Users'[Target], 0) * 100

 

If you want to use a measure, ensure that the context is correctly set. Here’s a revised measure that should work correctly in a table or matrix visualization:

% Achieved =
VAR TotalEstShare = SUM('System Users'[Total Est. Share])
VAR Target = SUM('System Users'[Target])
RETURN DIVIDE(TotalEstShare, Target, 0) * 100




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Unfortunately, this gave me the same exact result. It produces 3400% for each person.

 

Could this be a relationship issue?  I did bring over the estimated share and target columns from other tables.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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