Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am trying the get the previous status of ovens on the day before. Example.
How can I create the "Previous day status" collum?
| Oven | Daily status | Day | Previous day status |
| Oven 1 | Operating | 01/01/22 | |
| Oven 2 | Operating | 01/01/22 | |
| Oven 3 | Stop | 01/01/22 | |
| Oven 1 | Stop | 01/02/22 | Operating |
| Oven 2 | Operating | 01/02/22 | Operating |
| Oven 3 | Stop | 01/02/22 | Stop |
Solved! Go to Solution.
@guilhermemedin1 , a new column
new column =
var _max = Maxx(filter(Table, Table[Oven] =earlier(Table[Oven]) && [Day] < earlier([Day])-1),[Day])
return
Maxx(filter(Table, Table[Oven] =earlier(Table[Oven]) && [Day] = _max),[status])
@guilhermemedin1 , a new column
new column =
var _max = Maxx(filter(Table, Table[Oven] =earlier(Table[Oven]) && [Day] < earlier([Day])-1),[Day])
return
Maxx(filter(Table, Table[Oven] =earlier(Table[Oven]) && [Day] = _max),[status])
Thanks a lot!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |