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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I need your help creating a correct Compensation End date for my data.
| Employee Id | Employee Name | Compensation Start Date |
| 100010 | David Mayer | 01/01/2020 |
| 100010 | David Mayer | 12/14/2020 |
| 100010 | David Mayer | 02/01/2021 |
| 100010 | David Mayer | 07/01/2021 |
| 100290 | Jessi Park | 06/08/2020 |
| 100290 | Jessi Park | 05/01/2021 |
I created a calculated column:
| Employee Id | Employee Name | Compensation Start Date | Compensation End Date | Expected Compensation End Date |
| 100010 | David Mayer | 01/01/2020 | 06/302021 | 12/13/2020 |
| 100010 | David Mayer | 12/14/2020 | 06/302021 | 01/31/2020 |
| 100010 | David Mayer | 02/01/2021 | 06/30/2021 | 06/30/2021 |
| 100010 | David Mayer | 07/01/2021 | ||
| 100290 | Jessi Park | 06/08/2020 | 04/30/2021 | 04/30/2021 |
| 100290 | Jessi Park | 05/01/2021 |
Solved! Go to Solution.
Hi,
Perhaps this:
Compensation End Date =
VAR NextDate =
CALCULATE (
MIN ( Compensation[Compensation Start Date] ),
FILTER (
Compensation,
Compensation[Employee Id] = EARLIER ( Compensation[Employee Id] )
&& Compensation[Compensation Start Date]
> EARLIER ( Compensation[Compensation Start Date] )
)
)
RETURN
IF ( NextDate = 0, BLANK (), NextDate - 1 )Regards
You're very welcome!
Cheers
Hi,
Perhaps this:
Compensation End Date =
VAR NextDate =
CALCULATE (
MIN ( Compensation[Compensation Start Date] ),
FILTER (
Compensation,
Compensation[Employee Id] = EARLIER ( Compensation[Employee Id] )
&& Compensation[Compensation Start Date]
> EARLIER ( Compensation[Compensation Start Date] )
)
)
RETURN
IF ( NextDate = 0, BLANK (), NextDate - 1 )Regards
@Jos_Woolley It worked perfectly!! Thank you so so much for taking the time to solve my problem! 😊
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 19 | |
| 16 | |
| 10 |