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
I've read a blog by Alberto Ferrari saying that Earlier () should not be used and instead a variable should be created, but I cannot get it to work.
Here is the working code using Earlier to find the start date in the next row:
Solved! Go to Solution.
Try deleting the .[Date] in red font below
StartDateNextStep_with_variable = var CurrentCreatedOn = 'Workflow ActivityHistory'[CreatedOn].[Date]var CurrentDocumentInstanceId = 'Workflow ActivityHistory'[DocumentInstanceId] RETURN Calculate(min('Workflow ActivityHistory'[CreatedOn]), filter('Workflow ActivityHistory', 'Workflow ActivityHistory'[DocumentInstanceId] = CurrentDocumentInstanceId && 'Workflow ActivityHistory'[CreatedOn] > CurrentCreatedOn ) )
Try deleting the .[Date] in red font below
StartDateNextStep_with_variable = var CurrentCreatedOn = 'Workflow ActivityHistory'[CreatedOn].[Date]var CurrentDocumentInstanceId = 'Workflow ActivityHistory'[DocumentInstanceId] RETURN Calculate(min('Workflow ActivityHistory'[CreatedOn]), filter('Workflow ActivityHistory', 'Workflow ActivityHistory'[DocumentInstanceId] = CurrentDocumentInstanceId && 'Workflow ActivityHistory'[CreatedOn] > CurrentCreatedOn ) )
Removing .[date] worked, thank you. I didn't even notice that intellisense had added this.
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 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |