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
-- If the structure is: -- Employee[CompanyID] * : 1 Company[CompanyID] -- Company[RegionID] * : 1 Region[RegionID], -- then: [Avg Employee Age] = AVERAGE( Employee[EmployeeAge] ) -- This measure calculates the average age -- of all employees that work in companies -- that belong to regions that are visible -- in the current context. For instance, -- if one employee has been selected, then -- it'll return the average age for the -- region to which the company of the employee -- belongs. [Avg Age for Regions] = var __visibleRegions = SUMMARIZE( Employee, Region[RegionId] ) var __avgForVisibleRegions = CALCULATE( [Avg Employee Age], ALL( Company ), __visibleRegions ) return __avgForVisibleRegions
This measure honors all the filters that have been put on the Empolyee table itself.
Best
Darek
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |