Showing results for 
Search instead for 
Did you mean: 
New 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 - as "1 - (Absenteeism / Expected Hour)" as a percentage. I see ALL members of the associated dimensions - expressing all the unexpected sites as 100%.  


The logical joins are making seemingly the correct Inner join on the model - I've added filters to ensure that only values where Absenteeism > 0 appear on the visual. I'm not quite sure else how to phrase "what is going on?"

Super User
Super User

@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] )


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.

Helpful resources

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!