Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |