Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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])
User | Count |
---|---|
141 | |
70 | |
70 | |
53 | |
53 |
User | Count |
---|---|
208 | |
95 | |
64 | |
61 | |
57 |