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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
14 | |
12 | |
10 | |
9 |