Forum Discussion
timmmmeh
4 years agoNew Member
Unexpected Formula Results...
Calculating absenteeism % KPI - using simple calculation as Absenteeism / Expected hours. I see the three members of the associated dimensions correctly. When we do the inverse of this - Showrate - ...
Anonymous
4 years agoNot applicable
timmmmeh I would look again more closely to ensure you're filtering out or returning blank in any instances where absenteeism and expected hour are 0 or blank.
You could consider implementing something like:
Showrate =
IF (
AND ( [Absenteeism] > 0, [Expected Hour] > 0 ),
1 - DIVIDE ( [Absenteeism], [Expected Hour] )
)
timmmmeh
4 years agoNew Member
This changes my result set to now have 0% for the sites I don't expect - and the correct values for entities I do expect.
Even with DAX Studio tracing queries - I'm still not certain this snowflake is returning the right join conditions.
Thanks for the tip though -I appreciate it.