Skip to main content
Question

Dear community, Trying to look for min value before the current date. Can someone suggest the possible query to get the below desired column?

  • March 25, 2024
  • 1 reply
  • 6 views

Date         Value  Expected Column

2023-01-01   25      25

2023-02-01  30      25

2023-03-01  32      25

2023-04-01  22      22

 

1 reply

janpeter.van.d
Level 12
Forum|alt.badge.img+26

Hi @kamalisri.narra12,

 

I think the 'MOVING_MIN' function is exactly what you need: https://docs.celonis.com/en/moving_min.html.

 

Best regards,

Jan-peter