web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Conditional custom column

Posted on by
I am trying to get the number of years and months an employee has been with our district.  I have this code working if the employee is still active.   The issue I am having is when an employee is terminated I need to subtract the term date from the current date but if they are still active I have to subtract the hire date from the term date and place the results in the same column. 
 
Does anyone out there know how to accomplish this using Power Query? I have attempted an If statement but it will not work. Any assistance is greatly appreciated 

Serena 

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics