Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello all,
I am calculating the CTC of X employees per month. But I'd like to calculate only until their employment end date.
sample Data:
Employee__r.Name | Compensation_Start_Date__c | Compensation End Date | Employment_End_Date__c | Total CTC |
Hersheys Adams | 6/1/2021 | 8/17/2021 | 7,525 | |
Gino Park | 7/5/2021 | 9/2/2021 | 8,813 |
I have this formula:
Date | Employee__r.Name | Compensation_Start_Date__c | Compensation End Date | Employment_End_Date__c | CTC |
Jun 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Jul 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Aug 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Sep 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Oct 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Nov 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Dec 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Jul 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Aug 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Sep 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Oct 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Nov 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Dec 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 |
I'm expecting something like
Date | Employee__r.Name | Compensation_Start_Date__c | Compensation End Date | Employment_End_Date__c | CTC |
Jun 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Jul 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Aug 2021 | Hersheys Adams | 6/1/2021 | 8/30/2021 | 7525 | |
Jul 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Aug 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 | |
Sep 2021 | Gino Park | 7/5/2021 | 9/30/2021 | 8813 |
Any help is much appreciated!
Solved! Go to Solution.
IF(MIN('Date'[Date]) > EmpEndDate