Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |