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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I hope someone can help me by suggesting DAX formula for this scenario. I have this column in Excel that I need to replicate in PowerBI
Any idea how this can be achieved?Thanks in advance for your help.
Solved! Go to Solution.
@Anonymous , You need some kind of index on the tabled, based that we can get max index and do the operation
Power Query- Index Column: https://youtu.be/NS4esnCDqVw
But across to means you have sum all column (DAX example)
new column =
var _max(Table[Index])
Var _secondLast = sumc(filter(Table, Table[index] = _max -1 ), [Col1]+[Col2]+[col3])
Var _Last = sumc(filter(Table, Table[index] = _max ), [col3])
Var _ThirdLast = sumc(filter(Table, Table[index] = _max ), [col3])
return
_ThirdLast + _secondLast -_Last
@Anonymous , You need some kind of index on the tabled, based that we can get max index and do the operation
Power Query- Index Column: https://youtu.be/NS4esnCDqVw
But across to means you have sum all column (DAX example)
new column =
var _max(Table[Index])
Var _secondLast = sumc(filter(Table, Table[index] = _max -1 ), [Col1]+[Col2]+[col3])
Var _Last = sumc(filter(Table, Table[index] = _max ), [col3])
Var _ThirdLast = sumc(filter(Table, Table[index] = _max ), [col3])
return
_ThirdLast + _secondLast -_Last
I was able to figure it out using your formula,thank you a lot!🤗
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 18 | |
| 16 | |
| 15 | |
| 9 |