Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
-- 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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |