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! It's time to submit your entry. Live now!
Hello,
I have the table below and the following situation, please help me!
I tried to use MAXX with Filter, but with no success. Please, show me the way for solving this!!!
| (Expected Result) | ||||
| ID | Sub ID | Total | Assessment | Reduction |
| 1 | 1 | 6 | Initial | 0 |
| 1 | 5 | 5 | Post | 1 |
| 1 | 12 | 4 | Post | 1 |
| 1 | 17 | 2 | Post | 2 |
| 2 | 2 | 8 | Initial | 0 |
| 2 | 6 | 7 | Post | 1 |
| 2 | 18 | 2 | Post | 5 |
| 3 | 8 | 5 | Initial | 0 |
| 3 | 15 | 2 | Post | 3 |
Solved! Go to Solution.
@MrAnderson72 , Create a new column
new column =
var _min = maxx(filter(Table, [ID] =earlier([ID]) && [Sub ID] < earlier([Sub ID])),[Sub ID])
var _2 =maxx(filter(Table, [ID] =earlier([ID]) && [Sub ID] =_min),[Total])
return
if(isblank(_2), 0,_2-[Total])
@MrAnderson72 , Create a new column
new column =
var _min = maxx(filter(Table, [ID] =earlier([ID]) && [Sub ID] < earlier([Sub ID])),[Sub ID])
var _2 =maxx(filter(Table, [ID] =earlier([ID]) && [Sub ID] =_min),[Total])
return
if(isblank(_2), 0,_2-[Total])
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 131 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |