Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
14 | |
12 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
18 |