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
I have the below table with 3 columns ID, Index and TeamName. I am trying to create a new column for previous row. I tried below DAX but its only giving me partial result. Please help.
| ID | Index | TeamName | Previous Row(expected) |
| 1 | 1 | ||
| 1 | 2 | Team1 | |
| 1 | 3 | Team2 | Team1 |
| 1 | 4 | Team2 | |
| 1 | 5 | Team1 | |
| 1 | 6 | Team1 | |
| 1 | 7 | Team3 | |
| 1 | 8 | Team3 | |
| 1 | 9 | Team4 | |
| 1 | 10 | Team4 | |
| 1 | 11 | Team2 | |
| 1 | 12 | Team4 | Team2 |
| 1 | 13 | Team4 | |
| 1 | 14 | ||
| 1 | 15 | ||
| 1 | 16 | Team2 | |
| 1 | 17 | Team2 |
Solved! Go to Solution.
Column = MAXX(FILTER(t1,t1[Index]=EARLIER(t1[Index])-1),t1[TeamName])
Column = MAXX(FILTER(t1,t1[Index]=EARLIER(t1[Index])-1),t1[TeamName])
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 |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 100 | |
| 39 | |
| 29 | |
| 29 |