Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
BhaveshSavla
Frequent Visitor

Average Age for Male and Female for active employees

I am unable to add filter condition to calculate the avergae age for Male Employee (Active employee) in Visual Card

 

I have [Gender}, [Age], [Joing Date] and [Left Date] in table 'Sheet1'

and

[Date] in table 'FY'

Male Avg Age = CALCULATE(AVERAGE('Sheet1'[Age]),
FILTER(VALUES('Sheet1'[Joining Date]),'Sheet1'[Joining Date] <= MAX('FY'[Date])),
FILTER(VALUES('Sheet1'[Left Date]),OR ('Sheet1'[Left Date] > MAX('FY'[Date]),
ISBLANK(('Sheet1'[Left Date])))))
 
 
2 REPLIES 2
BhaveshSavla
Frequent Visitor

@amitchandak I checked the file but didnt get any measure to claculate Average age with Filters and with active employees. 

amitchandak
Super User
Super User

@BhaveshSavla , Check the age measure in this file can help

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.