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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 33 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 126 | |
| 115 | |
| 85 | |
| 69 | |
| 69 |