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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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