Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
Solved! Go to Solution.
What is the measurement you are try to made, it is not clear? Your % are massive because you * 100.
This?
DIVIDE(
'System Users'[Total Est Share],
'System Users'[Target]
,0
)
Or are you looking for the overall % achieved
DIVIDE(
sum( 'System Users'[Total Est Share] ),
sum ('System Users'[Target] )
,0
)
What is the measurement you are try to made, it is not clear? Your % are massive because you * 100.
This?
DIVIDE(
'System Users'[Total Est Share],
'System Users'[Target]
,0
)
Or are you looking for the overall % achieved
DIVIDE(
sum( 'System Users'[Total Est Share] ),
sum ('System Users'[Target] )
,0
)
Thank you, I actually figured it out on Friday. I had to change it from % to whole number.
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 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
Proud to be a Super User! |
|
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.
User | Count |
---|---|
16 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
9 |