Skip to content
Advertisement

Last_Value returning the current value

I am not able to get the last value, rather it is just returning the same value with my code below in snowflake – does anyone have any idea? Is there something glaring wrong?

Advertisement

Answer

I think what you actually want is to LAG the value from the previous MNTH:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement