Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 10 | |
| 10 | |
| 8 | |
| 8 |