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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
HI I have a table that looks something like this
| Person ID | Date |
| A | 12/31/2019 |
| A | 12/1/2019 |
| A | 10/2/2019 |
| A | 6/1/2019 |
| B | 12/10/2019 |
| B | 10/1/2019 |
| C | 6/12/2019 |
| C | 3/1/2019 |
| C | 2/19/2019 |
For each row, I want to calculate what the previous date was, for that person.
For example:
| Person ID | Date | Previous |
| A | 12/31/2019 | 12/1/2019 |
| A | 12/1/2019 | 10/2/2019 |
| A | 10/2/2019 | 6/1/2019 |
| A | 6/1/2019 | |
| B | 12/10/2019 | 10/1/2019 |
| B | 10/1/2019 | |
| C | 6/12/2019 | 3/1/2019 |
| C | 3/1/2019 | 2/19/2019 |
| C | 2/19/2019 |
How can I do this?
Solved! Go to Solution.
In case you want a column
new column = maxx(filter(table, table[personID]=earlier(table[personID]) && table[Date]<earlier(table[Date])),table[Date])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |