Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
I'm having diffulty creating a calculated column that would add the Quantity from the current row value and the next row's value. Please see table below with expected result vs actual result:
| Expected Result | Actual Result | ||
| Index | Quantity | Qty + next row | Qty + next row |
| 1 | 14 | 21 | 14 |
| 2 | 7 | 21 | 14 |
| 3 | 14 | 24 | 14 |
| 4 | 10 | 46 | 14 |
| 5 | 36 | 40 | 14 |
| 6 | 4 | 4 | 14 |
| 7 | 0 | 10 | 14 |
| 8 | 10 | 20 | 14 |
| 9 | 10 | 25 | 14 |
| 10 | 15 | 54 | 14 |
| 11 | 39 | 42 | 14 |
| 12 | 3 | 269 | 14 |
| 13 | 266 | 433 | 14 |
| 14 | 167 | 167 | 14 |
This is my logic:
Solved! Go to Solution.
@JeanMariePBI Maybe:
row plus one column =
VAR __Index = [Index]
VAR __Quantity = [Quantity]
VAR __Quantity1 = MAXX(FILTER('Table',[Index] = __Index + 1),[Quantity])
RETURN
__Quantity + __Quantity1
@JeanMariePBI Maybe:
row plus one column =
VAR __Index = [Index]
VAR __Quantity = [Quantity]
VAR __Quantity1 = MAXX(FILTER('Table',[Index] = __Index + 1),[Quantity])
RETURN
__Quantity + __Quantity1
Thank you, Greg_Deckler!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |