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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard

Featured topics