Hello @ranjandutta ,
Is each defect linked to only one story/issue? If each defect has only one parent issue, we could create a custom hierarchy in eazyBI advanced settings that would make these calculations much simpler.
With a proper custom hierarchy, your measures would automatically roll up correctly from defects to stories to features without requiring complex MDX formulas.
See more here in this community article with step-by-step instructions: