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
Hello,
I have a set of data where a certain value appears multiple times. I want to know the date that the previous value appeared to the current date. Example below of data.
| Name | Date |
| Blue | 1/1/2022 |
| Red | 8/4/2021 |
| Blue | 5/1/2021 |
| Blue | 4/2/2021 |
| Green | 4/1/2021 |
| Green | 2/3/2021 |
Example of what I need for results:
| Name | Date | Previous Date |
| Blue | 1/1/2022 | 5/1/2021 |
| Red | 8/4/2021 | null |
| Blue | 5/1/2021 | 4/2/2021 |
| Blue | 4/2/2021 | null |
| Green | 4/1/2021 | 2/3/2021 |
| Green | 2/3/2021 | null |
Any help would be greatly appreciated. Thank you in advance!
Solved! Go to Solution.
A new column
maxx(filter(Table, [Name] =earlier([Name]) && [Date] <earlier([Date]) ) , [Date])
A new column
maxx(filter(Table, [Name] =earlier([Name]) && [Date] <earlier([Date]) ) , [Date])
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 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |