Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |