Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have table that have employee name, position, department and training hours
Now i already create several measures
Solved! Go to Solution.
You could also do it like this.
Department Average Duration/Staff 2 =
IF (
NOT ISBLANK ( [Total Employee] ),
CALCULATE ( [Average Training Hours/Staff], ALLSELECTED ( 'Training Table' ) )
)
You could also do it like this.
Department Average Duration/Staff 2 =
IF (
NOT ISBLANK ( [Total Employee] ),
CALCULATE ( [Average Training Hours/Staff], ALLSELECTED ( 'Training Table' ) )
)
Hi,
This measure works
Measure = if(ISBLANK([Training Duration]),BLANK(),CALCULATE([Average Training Hours/Staff],ALLSELECTED(Department[Department]),all('Training Table'[Position])))
Hope this helps.
@laurent_rio , That means it is not using department filter in context
Try measure like
Department Average Duration/Staff = CALCULATE([Average Training Hours/Staff],filter(allselected('Training Table')))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!