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
tebtim19
Helper IV
Helper IV

Replace from date to empty

Is there anyway I can replace my data from blank, 

I have a terminate date which is set to 5555.12.31 for permanent employees and I want to replace that data to blank so I don't have any problem getting.

 

Active Employee

terminated Employee

New Joiner Employee. 

 

It's a bit complicated as I use date slicer. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@tebtim19 , In DAX a new column

T date = if([termination date] = date(5555,12,31), blank(), [termination date])

 

and use

 

or use this formula with my blog

 

Current Employees = CALCULATE(COUNTx(FILTER(Employee,Employee[Start Date]<=max('Date'[Date]) && (Employee[End Date] = (5555,12,31) || Employee[End Date]>max('Date'[Date]))),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None))

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@tebtim19 , In DAX a new column

T date = if([termination date] = date(5555,12,31), blank(), [termination date])

 

and use

 

or use this formula with my blog

 

Current Employees = CALCULATE(COUNTx(FILTER(Employee,Employee[Start Date]<=max('Date'[Date]) && (Employee[End Date] = (5555,12,31) || Employee[End Date]>max('Date'[Date]))),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None))

 

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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.